Home
last modified time | relevance | path

Searched refs:dirname (Results 1 – 25 of 67) sorted by relevance

123

/system/extras/simpleperf/scripts/
Dupdate.py25 THIS_DIR = os.path.realpath(os.path.dirname(__file__))
164 dirname = os.path.dirname(install_path)
165 if not os.path.isdir(dirname):
166 os.makedirs(dirname)
Dinferno.sh2 SCRIPTPATH=$(dirname "$0")
Dutils.py33 return os.path.dirname(os.path.realpath(__file__))
111 dirname = os.path.join(get_script_dir(), 'bin')
117 dirname = os.path.join(dirname, 'windows')
121 dirname = os.path.join(dirname, 'darwin')
123 dirname = os.path.join(dirname, 'linux')
124 dirname = os.path.join(dirname, 'x86_64' if sys.maxsize > 2 ** 32 else 'x86')
125 binary_path = os.path.join(dirname, binary_name)
Dtest.py254 def check_exist(self, filename=None, dirname=None): argument
257 if dirname:
258 self.assertTrue(os.path.isdir(dirname), dirname)
345 self.check_exist(dirname="binary_cache")
347 def check_file_under_dir(self, dirname, filename): argument
348 self.check_exist(dirname=dirname)
349 for _, _, files in os.walk(dirname):
353 self.fail("Failed to call check_file_under_dir(dir=%s, file=%s)" % (dirname, filename))
402 self.check_exist(dirname="binary_cache")
419 self.check_exist(dirname="annotated_files")
[all …]
/system/libufdt/tests/
Dverify_dto_inc.sh46 OVERLAY_DTS_DIR=`dirname "$OVERLAY_DTS"`
53 BASE_DTS_DIR=`dirname "$BASE_DTS"`
/system/core/rootdir/
Dueventd.rc6 dirname /dev/graphics
10 dirname /dev/dri
14 dirname /dev/input
18 dirname /dev/snd
/system/tools/aidl/
Dio_delegate.cpp203 static void add_list_files(const string& dirname, vector<string>* result) { in add_list_files() argument
205 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(dirname.c_str()), closedir); in add_list_files()
212 result->emplace_back(dirname + OS_PATH_SEPARATOR + ent->d_name); in add_list_files()
214 add_list_files(dirname + OS_PATH_SEPARATOR + ent->d_name, result); in add_list_files()
/system/netd/server/
DInterfaceController.cpp106 const char* dirname, const char* subdirname, const char* basename, in writeValueToPath() argument
108 std::string path(StringPrintf("%s/%s/%s", dirname, subdirname, basename)); in writeValueToPath()
114 const std::string& dirname, in forEachInterface() argument
117 fn(dirname, "default"); in forEachInterface()
118 DIR* dir = opendir(dirname.c_str()); in forEachInterface()
120 ALOGE("Can't list %s: %s", dirname.c_str(), strerror(errno)); in forEachInterface()
131 fn(dirname, ent->d_name); in forEachInterface()
136 void setOnAllInterfaces(const char* dirname, const char* basename, const char* value) { in setOnAllInterfaces() argument
140 forEachInterface(dirname, fn); in setOnAllInterfaces()
/system/extras/postinst/
Dpostinst.sh53 my_dir=$(dirname "$0")
/system/core/toolbox/
Dgetevent.c280 const char *dirname = "/sys/kernel/debug/hid"; in print_hid_descriptor() local
290 dir = opendir(dirname); in print_hid_descriptor()
295 snprintf(filename, sizeof(filename), "%s/%s/rdesc", dirname, de->d_name); in print_hid_descriptor()
431 static int read_notify(const char *dirname, int nfd, int print_flags) in read_notify() argument
450 strcpy(devname, dirname); in read_notify()
473 static int scan_dir(const char *dirname, int print_flags) in scan_dir() argument
479 dir = opendir(dirname); in scan_dir()
482 strcpy(devname, dirname); in scan_dir()
/system/bt/gd/cert/
Dset_up_and_run_device_cert.sh3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
61 echo $(dirname "$rc")
/system/tools/hidl/test/format_test/
DAndroid.bp23 … "cp $$(dirname $(in) | uniq)/Android.bp $(genDir)/system/tools/hidl/test/format_test/1.0 && " +
24 "diff -r -C3 $(genDir)/system/tools/hidl/test/format_test/1.0 $$(dirname $(in) | uniq)",
/system/core/adb/coverage/
Dshow.sh5 OUTPUT_DIR=$(realpath $(dirname "$0"))
Dreport.sh5 OUTPUT_DIR=$(realpath $(dirname "$0"))
/system/core/trusty/storage/proxy/
Dstorage.h42 int storage_init(const char *dirname);
Dstorage.c468 int storage_init(const char *dirname) in storage_init() argument
476 ssdir_fd = open(dirname, O_RDONLY); in storage_init()
479 dirname, strerror(errno)); in storage_init()
482 ssdir_name = dirname; in storage_init()
/system/sepolicy/build/
Dfile_utils.py28 parent_dir = os.path.dirname(file_path)
/system/extras/systrace_analysis/
Danalyze_trace.py30 this_script_path = os.path.dirname(os.path.realpath(__file__))
/system/tools/hidl/
Dupdate-makefiles-helper.sh38 find . -type f -name \*.hal -exec dirname {} \; | sort -u | \
/system/bt/test/
Drun_host_unit_tests.py45 def check_dir_exists(dir, dirname): argument
47 print "Couldn't find %s (%s)!" % (dirname, dir)
/system/linkerconfig/
Drundiff.sh21 cd $(dirname $0)
/system/extras/tests/workloads/
Dfeedly-chrome.sh14 CMDDIR=$(dirname $0 2>/dev/null)
/system/linkerconfig/testdata/
Dprepare_root.sh89 cd $(dirname $0)
/system/extras/simpleperf/scripts/inferno/
Dinferno.py40 SCRIPTS_PATH = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
157 with open(os.path.join(os.path.dirname(__file__), local_path), 'r') as f:
/system/extras/latencytop/
Dlatencytop.c201 char dirname[MAX_FILENAME]; in read_process_stats() local
207 sprintf(dirname, "/proc/%d/task", pid); in read_process_stats()
208 dir = opendir(dirname); in read_process_stats()

123