Home
last modified time | relevance | path

Searched refs:rfind (Results 1 – 25 of 30) sorted by relevance

12

/system/libbase/
Dparsenetaddress.cpp38 if (address.rfind("]:") == std::string::npos) { in ParseNetAddress()
43 port_str = address.substr(address.rfind("]:") + 2); in ParseNetAddress()
/system/incremental_delivery/incfs/
Dpath.cpp102 auto lastPos = result.rfind('/'); in normalize()
198 auto pos = path.rfind('/'); in baseName()
201 pos = path.rfind('/'); in baseName()
216 const auto pos = path.rfind('/'); in dirName()
/system/netd/libnetdutils/
DLog.cpp98 const size_t endFuncName = pretty_function.rfind('('); in prettyFunction()
99 const size_t precedingSpace = pretty_function.rfind(' ', endFuncName); in prettyFunction()
102 const size_t beginFuncName = pretty_function.rfind("::", endFuncName); in prettyFunction()
104 const size_t previousNameBoundary = pretty_function.rfind("::", beginFuncName - 1); in prettyFunction()
/system/extras/preopt2cachename/
Dpreopt2cachename.cpp50 size_t file_location_start = file_location.rfind('/'); in ExtractAPKName()
54 size_t ext_start = file_location.rfind('.'); in ExtractAPKName()
/system/tools/aidl/
Dio_delegate_unittest.cpp40 EXPECT_TRUE(absolute_path.rfind("/foo") == absolute_path.length() - 4); in TEST()
Daidl.cpp311 if (line.rfind(';', end) != string::npos) { in ParsePreprocessedLine()
336 size_t dot_pos = type.rfind('.'); in ParsePreprocessedLine()
/system/core/bootstat/
Dbootstat.cpp599 size_t rfind(const std::string& needle) const { in rfind() function in __anon44f4d30b0111::pstoreConsole
600 size_t pos = console.rfind(needle); // exact match? in rfind()
804 if ((console.rfind("SysRq : Trigger a crash") != std::string::npos) || in addKernelPanicSubReason()
805 (console.rfind("PC is at sysrq_handle_crash+") != std::string::npos)) { in addKernelPanicSubReason()
810 auto pos = console.rfind(sysrqSubreason); in addKernelPanicSubReason()
816 if (console.rfind("Unable to handle kernel NULL pointer dereference at virtual address") != in addKernelPanicSubReason()
821 if (console.rfind("Kernel BUG at ") != std::string::npos) { in addKernelPanicSubReason()
827 auto pos = console.rfind(panic); in addKernelPanicSubReason()
1023 if (console.rfind("reboot: Power down") != std::string::npos) { in BootReasonStrToReason()
1032 size_t pos = console.rfind(cmd); in BootReasonStrToReason()
[all …]
/system/tools/aidl/tests/
Dtest_util.cpp53 *package = string{package_class, 0, package_class.rfind('.')}; in SplitPackageClass()
54 *class_name = string{package_class, package_class.rfind('.') + 1}; in SplitPackageClass()
/system/libvintf/libaidlvintf_test_helper/
DVintf.cpp25 size_t lastDot = descriptor.rfind('.'); in getAidlHalInstanceNames()
/system/core/adb/client/
Dmdns_utils.cpp69 auto pos = name.rfind("."); in mdns_parse_instance_name()
Dbugreport.cpp150 size_t idx1 = line.rfind(BUGZ_PROGRESS_PREFIX) + strlen(BUGZ_PROGRESS_PREFIX); in ProcessLine()
151 size_t idx2 = line.rfind(BUGZ_PROGRESS_SEPARATOR); in ProcessLine()
Dincremental.cpp246 const auto end_itr = stdout_str.rfind("]"); in wait_for_installation()
/system/extras/simpleperf/scripts/
Dbinary_cache_builder.py94 index = binary.rfind('/')
196 filename = device_path[device_path.rfind('/')+1:]
Ddebug_unwind_reporter.py347 break_pos = line.rfind('(', 0, line.rfind('('))
349 break_pos = line.rfind('(')
/system/tools/sysprop/
DJavaGen.cpp285 return module.substr(0, module.rfind('.')); in GetJavaPackageName()
290 return module.substr(module.rfind('.') + 1); in GetJavaClassName()
DCommon.cpp286 return module.substr(module.rfind('.') + 1); in GetModuleName()
/system/libhidl/transport/
DServiceManagement.cpp95 size_t idx = cmdline.rfind('/'); in binaryName()
121 size_t lastDot = descriptor.rfind('.'); in tryShortenProcessName()
123 size_t secondDot = descriptor.rfind('.', lastDot - 1); in tryShortenProcessName()
356 if (line.rfind('@') == std::string::npos) continue; in fetchPidsForPassthroughLibraries()
358 auto spacePos = line.rfind(' '); in fetchPidsForPassthroughLibraries()
/system/memory/lmkd/tests/
Dlmkd_test.cpp94 (start_pos = text.rfind('\n', start_pos)) != std::string::npos) { in getTextAround()
98 start_pos = text.rfind('\n', start_pos); in getTextAround()
/system/update_engine/payload_generator/
Dmapfile_filesystem.cc97 while ((delim = line.rfind(' ', last_delim - 1)) != string::npos) { in GetFiles()
/system/core/init/
Dblock_dev_initializer.cpp81 size_t base_idx = uevent.path.rfind('/'); in HandleUevent()
Ddevices.cpp204 auto last_slash = path.rfind('/'); in FindPlatformDevice()
373 auto last_slash = uevent.path.rfind('/'); in GetBlockDeviceSymlinks()
/system/security/keystore/
Dgrant_store.cpp33 auto pos = grantAlias.rfind(kKeystoreGrantInfix); in parseGrantAlias()
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp281 auto other_suffix = sanitized_partition_name.rfind("_other"); in AvbPartitionToDevicePatition()
308 auto found = partition_name.rfind(ab_suffix); in DeriveAvbPartitionName()
313 auto found = partition_name.rfind(ab_other_suffix); in DeriveAvbPartitionName()
Davb_ops.cpp114 auto found = partition_name.rfind(ab_suffix); in DeriveMountPoint()
/system/media/camera/docs/
Dmetadata_helpers.py923 lastdot = target.rfind('.')
1022 lastdot = target.rfind('.')

12