Home
last modified time | relevance | path

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

12

/system/core/base/
Dparsenetaddress.cpp38 if (address.rfind("]:") == std::string::npos) { in ParseNetAddress()
43 port_str = address.substr(address.rfind("]:") + 2); in ParseNetAddress()
/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/core/bootstat/
Dbootstat.cpp465 size_t rfind(const std::string& needle) const { in rfind() function in __anon236637740111::pstoreConsole
466 size_t pos = console.rfind(needle); // exact match? in rfind()
670 if ((console.rfind("SysRq : Trigger a crash") != std::string::npos) || in addKernelPanicSubReason()
671 (console.rfind("PC is at sysrq_handle_crash+") != std::string::npos)) { in addKernelPanicSubReason()
676 auto pos = console.rfind(sysrqSubreason); in addKernelPanicSubReason()
682 if (console.rfind("Unable to handle kernel NULL pointer dereference at virtual address") != in addKernelPanicSubReason()
687 if (console.rfind("Kernel BUG at ") != std::string::npos) { in addKernelPanicSubReason()
693 auto pos = console.rfind(panic); in addKernelPanicSubReason()
888 if (console.rfind("reboot: Power down") != std::string::npos) { in BootReasonStrToReason()
897 size_t pos = console.rfind(cmd); in BootReasonStrToReason()
[all …]
/system/tools/aidl/
Dio_delegate_unittest.cpp40 EXPECT_TRUE(absolute_path.rfind("/foo") == absolute_path.length() - 4); in TEST()
Daidl.cpp365 if (line.rfind(';', end) != string::npos) { in ParsePreprocessedLine()
390 size_t dot_pos = type.rfind('.'); in ParsePreprocessedLine()
Dast_java.cpp429 size_t pos = name.rfind('.'); in Write()
/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/core/adb/client/
Dbugreport.cpp148 size_t idx1 = line.rfind(BUGZ_PROGRESS_PREFIX) + strlen(BUGZ_PROGRESS_PREFIX); in ProcessLine()
149 size_t idx2 = line.rfind(BUGZ_PROGRESS_SEPARATOR); in ProcessLine()
/system/extras/simpleperf/scripts/
Dbinary_cache_builder.py94 index = binary.rfind('/')
198 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/
DCommon.cpp260 size_t last_slash = path.rfind('/'); in CreateDirectories()
294 return module.substr(module.rfind('.') + 1); in GetModuleName()
DJavaGen.cpp268 return module.substr(0, module.rfind('.')); in GetJavaPackageName()
273 return module.substr(module.rfind('.') + 1); in GetJavaClassName()
/system/libhidl/transport/
DServiceManagement.cpp93 size_t idx = cmdline.rfind('/'); in binaryName()
119 size_t lastDot = descriptor.rfind('.'); in tryShortenProcessName()
121 size_t secondDot = descriptor.rfind('.', lastDot - 1); in tryShortenProcessName()
316 if (line.rfind('@') == std::string::npos) continue; in fetchPidsForPassthroughLibraries()
318 auto spacePos = line.rfind(' '); in fetchPidsForPassthroughLibraries()
/system/core/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/security/keystore/
Dgrant_store.cpp33 auto pos = grantAlias.rfind(kKeystoreGrantInfix); in parseGrantAlias()
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp231 auto other_suffix = sanitized_partition_name.rfind("_other"); in AvbPartitionToDevicePatition()
258 auto found = partition_name.rfind(ab_suffix); in DeriveAvbPartitionName()
263 auto found = partition_name.rfind(ab_other_suffix); in DeriveAvbPartitionName()
Davb_ops.cpp114 auto found = partition_name.rfind(ab_suffix); in DeriveMountPoint()
/system/core/init/
Ddevices.cpp216 auto last_slash = path.rfind('/'); in FindPlatformDevice()
380 auto last_slash = uevent.path.rfind('/'); in GetBlockDeviceSymlinks()
/system/extras/simpleperf/
Devent_type.cpp180 size_t comm_pos = event_type_str.rfind(':'); in ParseEventType()
/system/media/camera/docs/
Dmetadata_helpers.py923 lastdot = target.rfind('.')
1022 lastdot = target.rfind('.')
/system/core/fastboot/device/
Dvariables.cpp399 slotless_name = name.substr(0, name.rfind("_")); in GetAllPartitionArgsNoSlot()
/system/tools/hidl/utils/
DFQName.cpp480 size_t pos = s1.rfind(s2); in endsWith()
/system/extras/perfprofd/scripts/
Dperf_proto_stack.py272 i = s.rfind('+')

12