Home
last modified time | relevance | path

Searched refs:npos (Results 1 – 25 of 81) sorted by relevance

1234

/aosp14/frameworks/base/cmds/idmap2/tests/
H A DPrettyPrintVisitorTests.cpp53 ASSERT_NE(stream.str().find("target path : "), std::string::npos); in TEST()
54 ASSERT_NE(stream.str().find("overlay path : "), std::string::npos); in TEST()
57 std::string::npos); in TEST()
73 ASSERT_NE(stream.str().find("target path : "), std::string::npos); in TEST()
74 ASSERT_NE(stream.str().find("overlay path : "), std::string::npos); in TEST()
75 ASSERT_NE(stream.str().find("0x7f020000 -> 0x7f020000 (\?\?\? -> \?\?\?)\n"), std::string::npos); in TEST()
H A DIdmap2BinaryTests.cpp137 std::string::npos) in TEST_F()
141 std::string::npos) in TEST_F()
145 std::string::npos) in TEST_F()
149 std::string::npos) in TEST_F()
160 ASSERT_NE(result.stdout_str.find("00000000: 504d4449 magic"), std::string::npos); in TEST_F()
197 ASSERT_NE(result.stdout_str.find("overlay-1"), std::string::npos); in TEST_F()
198 ASSERT_EQ(result.stdout_str.find("overlay-1-sv"), std::string::npos); in TEST_F()
209 ASSERT_NE(result.stdout_str.find("overlay-1"), std::string::npos); in TEST_F()
210 ASSERT_EQ(result.stdout_str.find("overlay-1-sv"), std::string::npos); in TEST_F()
221 ASSERT_NE(result.stdout_str.find("overlay-1-sv"), std::string::npos); in TEST_F()
H A DCommandLineOptionsTests.cpp229 std::string::npos); in TEST()
230 ASSERT_NE(s.find("--aa arg description-aa"), std::string::npos); in TEST()
231 ASSERT_NE(s.find("--ff description-ff"), std::string::npos); in TEST()
233 std::string::npos); in TEST()
/aosp14/system/core/bootstat/
H A Dbootstat.cpp607 return std::string::npos; in numError()
622 if (pos != std::string::npos) return pos; in rfind()
626 if (needle.length() > pos) return std::string::npos; in rfind()
634 return std::string::npos; in rfind()
646 return std::string::npos; in find()
661 if (pos == std::string::npos) break; in correctForBitError()
832 if (pos != std::string::npos) { in addKernelPanicSubReason()
838 std::string::npos) { in addKernelPanicSubReason()
849 if (pos != std::string::npos) { in addKernelPanicSubReason()
1024 if (reason.find("sec") != std::string::npos) { in BootReasonStrToReason()
[all …]
/aosp14/system/core/fs_mgr/
H A Dfs_mgr_boot_config.cpp37 while (((found = cmdline.find_first_of(" \"", found)) != cmdline.npos) && in fs_mgr_parse_cmdline()
40 if ((found = cmdline.find(quote, found + 1)) == cmdline.npos) break; in fs_mgr_parse_cmdline()
48 if (equal_sign == piece.npos) { in fs_mgr_parse_cmdline()
56 if (found == cmdline.npos) break; in fs_mgr_parse_cmdline()
71 if (equal_sign == line.npos) { in fs_mgr_parse_proc_bootconfig()
/aosp14/frameworks/base/tools/bit/
H A Daapt.cpp139 if (className.find('.') == string::npos) { in full_class_name()
152 return packageName + "/" + string(className, pn, string::npos); in pretty_component_name()
197 if (colon == string::npos) { in inspect_apk()
201 element->name.assign(str, colon+1, string::npos); in inspect_apk()
222 if (colon == string::npos) { in inspect_apk()
226 attr.name.assign(str, colon+1, string::npos); in inspect_apk()
/aosp14/system/core/init/
H A Dreboot_utils.cpp50 if (cmdline.find(kInitFatalPanicParamString) == std::string::npos) { in SetFatalRebootTarget()
60 init_fatal_panic = cmdline.find(kInitFatalPanicString) != std::string::npos; in SetFatalRebootTarget()
70 if (start_pos == std::string::npos) { in SetFatalRebootTarget()
84 auto size = end_pos == std::string::npos ? -1 : end_pos - start_pos; in SetFatalRebootTarget()
H A Dfirst_stage_console.cpp37 if (pos == std::string::npos) return false; in KernelConsolePresent()
113 if (pos != std::string::npos) { in FirstStageConsole()
125 if (pos != std::string::npos) { in FirstStageConsole()
H A Ddevices.cpp72 if (end == std::string::npos) return false; in FindPciDevicePrefix()
75 if (end == std::string::npos) return false; in FindPciDevicePrefix()
103 if (end == std::string::npos) return false; in FindVbdDevicePrefix()
146 if (wildcard_position != std::string::npos) { in Permissions()
166 if (name().find(subsystem) != std::string::npos) { in MatchWithSubsystem()
242 if (last_slash == std::string::npos) return false; in FindPlatformDevice()
366 while ((pos = string->find_first_not_of(accept, pos)) != std::string::npos) { in SanitizePartitionName()
H A Dmount_handler.cpp77 if (blockdev.find('/') != std::string::npos) return {}; in GetDiskPart()
94 if (blockdev.find('/') != std::string::npos) return {}; in GetRootDisk()
186 if (buf_string.find("/emulated") != std::string::npos) { in MountHandlerFunction()
H A Dbootchart.cpp129 if (open != std::string::npos && close != std::string::npos) { in log_processes()
H A Dfirst_stage_init.cpp107 return bootconfig.find("androidboot.force_normal_boot = \"1\"") != std::string::npos || in ForceNormalBoot()
108 cmdline.find("androidboot.force_normal_boot=1") != std::string::npos; in ForceNormalBoot()
327 bootconfig.find("androidboot.load_modules_parallel = \"true\"") != std::string::npos; in FirstStageMain()
/aosp14/frameworks/base/services/incremental/
H A Dpath.cpp112 for (; end != path.npos; start = end + 1) { in normalize()
124 if (lastPos == result.npos) { in normalize()
150 if (pos == path.npos) { in basename()
167 if (pos == path.npos) { in dirname()
/aosp14/frameworks/base/tools/streaming_proto/
H A Dstring_utils.cpp67 if (start == string::npos) { in file_base_name()
73 if (end == string::npos) { in file_base_name()
105 if (found == str.npos) break; in split()
/aosp14/frameworks/base/cmds/incident_helper/src/
H A Dih_util.cpp35 if (head == std::string::npos) return ""; in trim()
76 if (found == line.npos) break; in split()
103 if (lastIndex == std::string::npos) { in getColumnIndices()
138 while (idx < lineSize && delimiters.find(line[idx++]) == std::string::npos); in parseRecordByColumns()
171 if (head == std::string::npos) return false; in stripPrefix()
192 if (tail == std::string::npos) return false; in stripSuffix()
213 if (found == std::string::npos) { in behead()
/aosp14/system/core/libprocessgroup/
H A Dcgroup_map.cpp129 if (start_pos == std::string::npos) { in GetTaskGroup()
135 if (end_pos == std::string::npos) { in GetTaskGroup()
136 *group = content.substr(start_pos, std::string::npos); in GetTaskGroup()
/aosp14/system/core/fastboot/
H A Dtcp_test.cpp61 EXPECT_NE(std::string::npos, error.find("Failed to send initialization message")); in TEST()
71 EXPECT_NE(std::string::npos, error.find("No initialization message received")); in TEST()
81 EXPECT_NE(std::string::npos, error.find("Unrecognized initialization message")); in TEST()
/aosp14/frameworks/base/tools/aapt2/java/
H A DAnnotationProcessor.cpp68 if (comment.find(sDeprecated) != std::string::npos) { in AppendCommentLine()
74 if (idx != std::string::npos) { in AppendCommentLine()
H A DManifestClassGenerator.cpp36 if (pos != std::string::npos) { in ExtractJavaIdentifier()
41 if (result.find('-') != std::string::npos) { in ExtractJavaIdentifier()
/aosp14/frameworks/base/startop/view_compiler/
H A Dutil.cc27 if (start == string::npos) { in FindLayoutNameFromFilename()
/aosp14/frameworks/base/core/jni/
H A Dfilesystem_utils.h35 return supported.find(fsType + "\n") != std::string::npos; in IsFilesystemSupported()
H A Dfd_utils.cpp137 android::base::EndsWith(path, kApkSuffix) && path.find("/../") == std::string::npos) { in IsAllowed()
145 android::base::EndsWith(path, kApkSuffix) && path.find("/../") == std::string::npos) { in IsAllowed()
153 path.find("/../") == std::string::npos) { in IsAllowed()
161 path.find("/../") == std::string::npos) { in IsAllowed()
/aosp14/system/core/trusty/storage/proxy/
H A Dcheckpoint_handling.cpp72 if (checkpointPos == std::string::npos) { in is_data_checkpoint_active()
/aosp14/system/core/llkd/
H A Dlibllkd.cpp240 if (pos != std::string::npos) { in llkProcGetName()
257 if (pos == std::string::npos) { in llkProcGetUid()
695 if (found == s.npos) break; in llkSplit()
787 if (pos == std::string::npos) { in getSchedValue()
791 if (__predict_false(pos == std::string::npos)) { in getSchedValue()
822 if (kernel_stack.find(" cpu_worker_pools+0x") != std::string::npos) return false; in llkCheckStack()
828 if ((kernel_stack.find(" "s + stack + "+0x") != std::string::npos) || in llkCheckStack()
829 (kernel_stack.find(" "s + stack + ".cfi+0x") != std::string::npos)) { in llkCheckStack()
1053 auto frozen = cgroup.find(":freezer:/frozen") != std::string::npos; in llkCheck()
1347 if (pos == std::string::npos) { in llkInit()
/aosp14/frameworks/base/tools/aapt2/filter/
H A DAbiFilter.cpp41 if (abi_end == std::string::npos) { in Keep()

1234