Home
last modified time | relevance | path

Searched refs:rfind (Results 1 – 25 of 39) 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/include/
Dpath.h64 auto pos = path.rfind('/'); in baseName()
67 pos = path.rfind('/'); in baseName()
83 const auto pos = path.rfind('/'); in dirName()
/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.cpp46 EXPECT_TRUE(absolute_path.rfind("/foo") == absolute_path.length() - 4); in TEST()
/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/analyze_matrix/
Dhals_for_release.py248 spacePos = instance.rfind(" ")
251 dotPos = instance.rfind(".")
252 spacePos = instance.rfind(" ")
256 spacePos = instance.rfind(" ")
299 dotPos = instance.rfind(".")
/system/core/bootstat/
Dbootstat.cpp630 size_t rfind(const std::string& needle) const { in rfind() function in __anon44f4d30b0111::pstoreConsole
631 size_t pos = console.rfind(needle); // exact match? in rfind()
835 if ((console.rfind("SysRq : Trigger a crash") != std::string::npos) || in addKernelPanicSubReason()
836 (console.rfind("PC is at sysrq_handle_crash+") != std::string::npos)) { in addKernelPanicSubReason()
841 auto pos = console.rfind(sysrqSubreason); in addKernelPanicSubReason()
847 if (console.rfind("Unable to handle kernel NULL pointer dereference at virtual address") != in addKernelPanicSubReason()
852 if (console.rfind("Kernel BUG at ") != std::string::npos) { in addKernelPanicSubReason()
858 auto pos = console.rfind(panic); in addKernelPanicSubReason()
1052 if (console.rfind("reboot: Power down") != std::string::npos) { in BootReasonStrToReason()
1061 size_t pos = console.rfind(cmd); in BootReasonStrToReason()
/system/libvintf/libaidlvintf_test_helper/
DVintf.cpp49 size_t lastDot = descriptor.rfind('.'); in getAidlHalInstanceNames()
/system/update_engine/payload_generator/
Dmapfile_filesystem.cc96 while ((delim = line.rfind(' ', last_delim - 1)) != string::npos) { in GetFiles()
/system/memory/lmkd/tests/
Dlmkd_test.cpp95 (start_pos = text.rfind('\n', start_pos)) != std::string::npos) { in getTextAround()
99 start_pos = text.rfind('\n', start_pos); in getTextAround()
/system/tools/sysprop/
DJavaGen.cpp347 return module.substr(0, module.rfind('.')); in GetJavaPackageName()
352 return module.substr(module.rfind('.') + 1); in GetJavaClassName()
DCommon.cpp288 return module.substr(module.rfind('.') + 1); in GetModuleName()
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp215 auto other_suffix = sanitized_partition_name.rfind("_other"); in AvbPartitionToDevicePatition()
242 auto found = partition_name.rfind(ab_suffix); in DeriveAvbPartitionName()
247 auto found = partition_name.rfind(ab_other_suffix); in DeriveAvbPartitionName()
Davb_ops.cpp114 auto found = partition_name.rfind(ab_suffix); in DeriveMountPoint()
/system/libhidl/transport/
DServiceManagement.cpp87 size_t idx = cmdline.rfind('/'); in binaryName()
113 size_t lastDot = descriptor.rfind('.'); in tryShortenProcessName()
115 size_t secondDot = descriptor.rfind('.', lastDot - 1); in tryShortenProcessName()
474 if (line.rfind('@') == std::string::npos) continue; in fetchPidsForPassthroughLibraries()
476 auto spacePos = line.rfind(' '); in fetchPidsForPassthroughLibraries()
/system/extras/simpleperf/
Dreport_utils.cpp80 if (auto left_brace_pos = s.rfind('(', arrow_pos); left_brace_pos != s.npos) { in ParseMethod()
81 if (auto space_pos = s.rfind(' ', left_brace_pos); space_pos != s.npos) { in ParseMethod()
155 if (auto split_pos = obfuscated_name.rfind('.'); split_pos != obfuscated_name.npos) { in DeObfuscateJavaMethods()
Ddso.cpp241 auto space_pos = name.rfind(' '); in FunctionName()
434 size_t pos = path_.rfind('/'); in IsForJavaMethod()
923 if (auto pos = symbol_name.rfind(' '); pos != std::string::npos) { in CalculateMinVaddr()
/system/core/init/
Dblock_dev_initializer.cpp81 size_t base_idx = uevent.path.rfind('/'); in HandleUevent()
Ddevices.cpp243 auto last_slash = path.rfind('/'); in FindPlatformDevice()
441 auto last_slash = uevent.path.rfind('/'); in GetBlockDeviceSymlinks()
/system/extras/simpleperf/scripts/
Dbinary_cache_builder.py128 filename = device_path[device_path.rfind('/')+1:]
169 index = path.rfind('/')
/system/incremental_delivery/incfs/
Dpath.cpp102 auto lastPos = result.rfind('/'); in normalize()
/system/core/fs_mgr/libsnapshot/
Dsnapshotctl.cpp194 auto npos = patchfile.rfind(".patch"); in PrepareUpdate()
276 auto npos = patchfile.rfind(".patch"); in ApplyUpdate()
632 auto npos = patchfile.rfind(".patch"); in MapPrecreatedSnapshots()
/system/hardware/interfaces/wifi/keystore/1.0/default/test/
DWifiLegacyKeystoreIntegrationTest.cpp278 ASSERT_EQ(blob_str.rfind("-----BEGIN CERTIFICATE-----", 0), 0); in TEST_P()
/system/media/camera/docs/
Dmetadata_helpers.py964 lastdot = target.rfind('.')
1067 lastdot = target.rfind('.')
/system/hardware/interfaces/wifi/keystore/1.0/vts/functional/
DVtsHalWifiKeystoreV1_0TargetTest.cpp396 EXPECT_EQ(cert.rfind("-----BEGIN CERTIFICATE-----", 0), 0); in TEST_P()

12