Home
last modified time | relevance | path

Searched refs:pathname (Results 1 – 24 of 24) sorted by relevance

/packages/modules/UprobeStats/src/bpf/syscall_wrappers/include/
DBpfSyscallWrappers.h120 inline int bpfFdPin(const BPF_FD_TYPE map_fd, const char* pathname) { in bpfFdPin() argument
122 .pathname = ptr_to_u64(pathname), in bpfFdPin()
127 inline int bpfFdGet(const char* pathname, uint32_t flag) { in bpfFdGet() argument
129 .pathname = ptr_to_u64(pathname), in bpfFdGet()
169 inline int mapRetrieveLocklessRW(const char* pathname) { in mapRetrieveLocklessRW() argument
170 return bpfFdGet(pathname, 0); in mapRetrieveLocklessRW()
173 inline int mapRetrieveExclusiveRW(const char* pathname) { in mapRetrieveExclusiveRW() argument
174 return bpfLock(mapRetrieveLocklessRW(pathname), F_WRLCK); in mapRetrieveExclusiveRW()
177 inline int mapRetrieveRW(const char* pathname) { in mapRetrieveRW() argument
178 return bpfLock(mapRetrieveLocklessRW(pathname), F_RDLCK); in mapRetrieveRW()
[all …]
/packages/modules/Connectivity/bpf/syscall_wrappers/include/
DBpfSyscallWrappers.h117 inline int bpfFdPin(const borrowed_fd& map_fd, const char* pathname) { in bpfFdPin() argument
119 .pathname = ptr_to_u64(pathname), in bpfFdPin()
124 inline int bpfFdGet(const char* pathname, uint32_t flag) { in bpfFdGet() argument
126 .pathname = ptr_to_u64(pathname), in bpfFdGet()
159 inline int mapRetrieveLocklessRW(const char* pathname) { in mapRetrieveLocklessRW() argument
160 return bpfFdGet(pathname, 0); in mapRetrieveLocklessRW()
163 inline int mapRetrieveExclusiveRW(const char* pathname) { in mapRetrieveExclusiveRW() argument
164 return bpfLock(mapRetrieveLocklessRW(pathname), F_WRLCK); in mapRetrieveExclusiveRW()
167 inline int mapRetrieveRW(const char* pathname) { in mapRetrieveRW() argument
168 return bpfLock(mapRetrieveLocklessRW(pathname), F_RDLCK); in mapRetrieveRW()
[all …]
/packages/modules/Connectivity/staticlibs/native/bpfmapjni/
Dcom_android_net_module_util_TcUtils.cpp55 ScopedUtfChars pathname(env, bpfProgPath); in com_android_net_module_util_TcUtils_tcFilterAddDevBpf() local
56 int error = tcAddBpfFilter(ifIndex, ingress, prio, proto, pathname.c_str()); in com_android_net_module_util_TcUtils_tcFilterAddDevBpf()
71 ScopedUtfChars pathname(env, bpfProgPath); in com_android_net_module_util_TcUtils_tcFilterAddDevIngressPolice() local
73 pathname.c_str()); in com_android_net_module_util_TcUtils_tcFilterAddDevIngressPolice()
109 ScopedUtfChars pathname(env, bpfProgPath); in com_android_net_module_util_TcUtils_isBpfProgramUsable() local
110 return bpf::usableProgram(pathname.c_str()); in com_android_net_module_util_TcUtils_isBpfProgramUsable()
Dcom_android_net_module_util_BpfMap.cpp37 ScopedUtfChars pathname(env, path); in com_android_net_module_util_BpfMap_nativeBpfFdGet() local
42 fd.reset(bpf::mapRetrieveRW(pathname.c_str())); in com_android_net_module_util_BpfMap_nativeBpfFdGet()
45 fd.reset(bpf::mapRetrieveRO(pathname.c_str())); in com_android_net_module_util_BpfMap_nativeBpfFdGet()
48 fd.reset(bpf::mapRetrieveWO(pathname.c_str())); in com_android_net_module_util_BpfMap_nativeBpfFdGet()
51 fd.reset(bpf::mapRetrieveExclusiveRW(pathname.c_str())); in com_android_net_module_util_BpfMap_nativeBpfFdGet()
/packages/services/BuiltInPrintService/jni/plugins/
Dplugin_pdf.c72 const char *pathname) { in _print_page() argument
86 if (pathname && strlen(pathname)) { in _print_page()
92 fd = open(pathname, O_RDONLY); in _print_page()
107 LOGI("dumped %d bytes of %s to printer", nbytes, pathname); in _print_page()
114 remove(pathname); in _print_page()
Dplugin_pcl.c278 const char *mime_type, const char *pathname) { in _setup_image_info() argument
286 if (pathname == NULL) { in _setup_image_info()
291 if (!strlen(pathname)) { in _setup_image_info()
296 imgfile = fopen(pathname, "r"); in _setup_image_info()
298 LOGE("_setup_image_info(): could not open %s", pathname); in _setup_image_info()
302 LOGD("_setup_image_info(): fopen succeeded on %s", pathname); in _setup_image_info()
305 wprint_image_init(image_info, pathname, job_params->page_num); in _setup_image_info()
363 const char *pathname) { in _print_page() argument
386 if ((result = _setup_image_info(job_params, image_info, mime_type, pathname)) == OK) { in _print_page()
479 image_row, wprint_image_get_height(image_info), job_params->page_num, pathname, in _print_page()
[all …]
/packages/services/BuiltInPrintService/jni/include/
Dlib_wprint.h295 const char *pathname);
298 const char *mime_type, const char *pathname);
352 const char *mime_type, const char *pathname, wprint_status_cb_t cb_fn,
/packages/modules/UprobeStats/src/bpf/headers/include/bpf/
DBpfMap.h75 explicit BpfMapRO<Key, Value>(const char* pathname) {
76 mMapFd.reset(mapRetrieveRO(pathname));
236 explicit BpfMap<Key, Value>(const char* pathname) {
237 mMapFd.reset(mapRetrieveRW(pathname));
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DSyscalls.cpp44 StatusOr<UniqueFd> open(const std::string& pathname, int flags, mode_t mode) const override { in open() argument
45 UniqueFd fd(::open(pathname.c_str(), flags, mode)); in open()
47 return statusFromErrno(errno, "open(\"" + pathname + "\"...) failed"); in open()
/packages/modules/Connectivity/bpf/headers/include/bpf/
DBpfMap.h107 explicit BpfMapRO<Key, Value>(const char* pathname) {
108 mMapFd.reset(mapRetrieveRO(pathname));
268 explicit BpfMap<Key, Value>(const char* pathname) {
269 mMapFd.reset(mapRetrieveRW(pathname));
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DFileSystemPermissionTest.java933 @Override public boolean accept(File pathname) { in getAllWritableFilesInDirAndSubDir()
934 return pathname.isDirectory(); in getAllWritableFilesInDirAndSubDir()
947 @Override public boolean accept(File pathname) { in getAllWritableFilesInDirAndSubDir()
948 return pathname.isFile(); in getAllWritableFilesInDirAndSubDir()
1154 @Override public boolean accept(File pathname) { in getAllInsecureDevicesInDirAndSubdir()
1155 return pathname.isDirectory(); in getAllInsecureDevicesInDirAndSubdir()
/packages/modules/Virtualization/android/virtualizationservice/aidl/android/system/virtualizationservice_internal/
DIGlobalVmContext.aidl26 void setHostConsoleName(@utf8InCpp String pathname); in setHostConsoleName() argument
/packages/modules/adb/
Dsysdeps.h474 static inline int adb_open_mode(const char* pathname, int options, int mode) { in adb_open_mode() argument
475 return TEMP_FAILURE_RETRY(open(pathname, options, mode)); in adb_open_mode()
485 static inline int adb_open(const char* pathname, int options) { in adb_open() argument
486 int fd = TEMP_FAILURE_RETRY(open(pathname, options)); in adb_open()
/packages/modules/Virtualization/android/virtualizationservice/aidl/android/system/virtualizationservice/
DIVirtualMachine.aidl73 void setHostConsoleName(in @utf8InCpp String pathname); in setHostConsoleName() argument
/packages/modules/Virtualization/libs/authfs_aidl_interface/com/android/virt/fs/
DIVirtFdService.aidl65 int openFileInDirectory(int dirFd, String pathname); in openFileInDirectory() argument
/packages/services/BuiltInPrintService/jni/lib/
DwprintJNI.c231 static bool _is_pdf_doc(const char *mime_type, const char *pathname) { in _is_pdf_doc() argument
232 if (mime_type == NULL || pathname == NULL) { in _is_pdf_doc()
258 static bool _get_pdf_page_count(const char *mime_type, int *page_count, const char *pathname) { in _get_pdf_page_count() argument
261 if (!_is_pdf_doc(mime_type, pathname)) { in _get_pdf_page_count()
266 *page_count = pdf_render_ifc->openDocument(pdf_render_ifc, pathname); in _get_pdf_page_count()
269 LOGI("pdf page count for %s: %d", pathname, *page_count); in _get_pdf_page_count()
438 duplex_t duplex, char *pathname, int num_index, int *pages_ary) { in _print_pdf_pages() argument
452 result = wprintPage(job_handle, *(pages_ary + page_index++), pathname, false, true, in _print_pdf_pages()
463 LOGD("_print_pdf_pages(), PRINTING PDF: %s, page: %d", pathname, in _print_pdf_pages()
465 result = wprintPage(job_handle, *(pages_ary + page_index--), pathname, false, true, in _print_pdf_pages()
Dlib_wprint.c143 char *pathname; member
455 _job_queue[index].pathname = ptr; in _get_handle()
1232 jq->pathname); in _job_thread()
2008 const char *mime_type, const char *pathname, wprint_status_cb_t cb_fn, in wprintStartJob() argument
2028 if (OK == stat(pathname, &stat_buf)) { in wprintStartJob()
2078 strncpy(jq->pathname, pathname, MAX_PATHNAME_LENGTH); in wprintStartJob()
2259 snprintf(page.filename, MAX_PATHNAME_LENGTH, "%s/%s", jq->pathname, filename); in wprintPage()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/
DMockSyscalls.h37 StatusOr<UniqueFd>(const std::string& pathname, int flags, mode_t mode));
DSyscalls.h45 virtual StatusOr<UniqueFd> open(const std::string& pathname, int flags,
/packages/modules/Virtualization/android/virtualizationservice/src/
Daidl.rs882 fn setHostConsoleName(&self, pathname: &str) -> binder::Result<()> { in setHostConsoleName()
883 self.instance.lock().unwrap().host_console_name = Some(pathname.to_string()); in setHostConsoleName()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java1259 public boolean accept(java.io.File pathname) { in getNumCpuCores() argument
1261 if (java.util.regex.Pattern.matches("cpu[0-9]+", pathname.getName())) { in getNumCpuCores()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...