Lines Matching refs:top
769 static int top_works(const char *top) in top_works() argument
771 if (top != NULL && adb_is_absolute_host_path(top)) { in top_works()
774 "%s" OS_PATH_SEPARATOR_STR SENTINEL_FILE, top); in top_works()
799 char *top = getenv("ANDROID_BUILD_TOP"); in find_top() local
800 if (top != NULL && top[0] != '\0') { in find_top()
801 if (!top_works(top)) { in find_top()
802 fprintf(stderr, "adb: bad ANDROID_BUILD_TOP value \"%s\"\n", top); in find_top()
806 top = getenv("TOP"); in find_top()
807 if (top != NULL && top[0] != '\0') { in find_top()
808 if (!top_works(top)) { in find_top()
809 fprintf(stderr, "adb: bad TOP value \"%s\"\n", top); in find_top()
813 top = NULL; in find_top()
817 if (top != NULL) { in find_top()
820 strcpy(path_buf, top); in find_top()
828 top = find_top_from(getcwd(dir, sizeof(dir)), path_buf); in find_top()
829 if (top == NULL) { in find_top()
834 top = find_top_from(dir, path_buf); in find_top()
836 return top; in find_top()
889 const char *top = find_top(top_buf); in find_product_out_path() local
890 if (top == NULL) { in find_product_out_path()
1012 top: in adb_commandline()
1220 goto top; in adb_commandline()