Lines Matching refs:top
953 static int top_works(const char *top) in top_works() argument
955 if (top != NULL && adb_is_absolute_host_path(top)) { in top_works()
958 "%s" OS_PATH_SEPARATOR_STR SENTINEL_FILE, top); in top_works()
983 char *top = getenv("ANDROID_BUILD_TOP"); in find_top() local
984 if (top != NULL && top[0] != '\0') { in find_top()
985 if (!top_works(top)) { in find_top()
986 fprintf(stderr, "adb: bad ANDROID_BUILD_TOP value \"%s\"\n", top); in find_top()
990 top = getenv("TOP"); in find_top()
991 if (top != NULL && top[0] != '\0') { in find_top()
992 if (!top_works(top)) { in find_top()
993 fprintf(stderr, "adb: bad TOP value \"%s\"\n", top); in find_top()
997 top = NULL; in find_top()
1001 if (top != NULL) { in find_top()
1004 strcpy(path_buf, top); in find_top()
1012 top = find_top_from(getcwd(dir, sizeof(dir)), path_buf); in find_top()
1013 if (top == NULL) { in find_top()
1018 top = find_top_from(dir, path_buf); in find_top()
1020 return top; in find_top()
1073 const char *top = find_top(top_buf); in find_product_out_path() local
1074 if (top == NULL) { in find_product_out_path()
1259 top: in adb_commandline()
1492 goto top; in adb_commandline()