Searched refs:maxSubdirs (Results 1 - 1 of 1) sorted by relevance

/frameworks/native/cmds/installd/
H A Dutils.cpp740 static int validate_path(const dir_rec_t* dir, const char* path, int maxSubdirs) { argument
747 if ((--maxSubdirs == 0) && strchr(subdir, '/') != NULL) {
887 * begin with a whitelisted prefix path and must be no deeper than |maxSubdirs| within
891 static int validate_apk_path_internal(const char *path, int maxSubdirs) { argument
903 if (maxSubdirs < 2) {
904 maxSubdirs = 2;
910 return validate_path(dir, path, maxSubdirs);
914 return validate_apk_path_internal(path, 1 /* maxSubdirs */);
918 return validate_apk_path_internal(path, 3 /* maxSubdirs */);

Completed in 182 milliseconds