/aosp14/frameworks/base/tools/bit/ |
H A D | adb.cpp | 370 if (!found) { in find_penultimate_entry() 392 *found = true; in get_bundle_string() 395 *found = false; in get_bundle_string() 411 *found = true; in get_bundle_int() 414 *found = false; in get_bundle_int() 430 *found = true; in get_bundle_float() 433 *found = false; in get_bundle_float() 449 *found = true; in get_bundle_double() 452 *found = false; in get_bundle_double() 468 *found = true; in get_bundle_long() [all …]
|
H A D | adb.h | 41 string get_bundle_string(const ResultsBundle& bundle, bool* found, ...); 42 int32_t get_bundle_int(const ResultsBundle& bundle, bool* found, ...); 43 float get_bundle_float(const ResultsBundle& bundle, bool* found, ...); 44 double get_bundle_double(const ResultsBundle& bundle, bool* found, ...); 45 int64_t get_bundle_long(const ResultsBundle& bundle, bool* found, ...);
|
/aosp14/frameworks/base/cmds/incident_helper/src/ |
H A D | ih_util.cpp | 67 size_t found; in split() local 70 if (found != base) { in split() 76 if (found == line.npos) break; in split() 77 base = found + 1; in split() 212 auto found = line->find_first_of(cut); in behead() local 213 if (found == std::string::npos) { in behead() 219 while(line->at(found) == cut) found++; // trim more cut of the rest in behead() 220 line->assign(line->substr(found)); in behead() 316 uint64_t found = mFields[name]; in insertField() local 318 switch ((found & FIELD_COUNT_MASK) | (found & FIELD_TYPE_MASK)) { in insertField() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
H A D | ListSetSelectionTest.java | 73 boolean found = false; in testSetSelection() 78 found = true; in testSetSelection() 82 assertTrue("Selected item not visible in list", found); in testSetSelection() 104 boolean found = false; in testSetSelectionFromTop() 110 found = true; in testSetSelectionFromTop() 114 assertTrue("Selected item not visible in list", found); in testSetSelectionFromTop() 139 boolean found = false; in testSetSelection0() 144 found = true; in testSetSelection0() 148 assertTrue("Selected item not visible in list", found); in testSetSelection0()
|
/aosp14/system/core/init/ |
H A D | block_dev_initializer.cpp | 49 bool found = false; in InitMiscDevice() local 50 auto dm_callback = [this, &dm_path, &found](const Uevent& uevent) { in InitMiscDevice() 53 found = true; in InitMiscDevice() 59 if (!found) { in InitMiscDevice() 65 if (!found) { in InitMiscDevice() 135 bool found = false; in InitDmDevice() local 137 auto uevent_callback = [&device_name, &device, this, &found](const Uevent& uevent) { in InitDmDevice() 141 found = true; in InitDmDevice() 148 if (!found) { in InitDmDevice() 154 if (!found) { in InitDmDevice()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/flags/ |
H A D | FeatureFlagsServiceTest.java | 133 boolean found = false; in testSyncFlags_noOverrides() 136 found = true; in testSyncFlags_noOverrides() 160 boolean found = false; in testSyncFlags_withSomeOverrides() 163 found = true; in testSyncFlags_withSomeOverrides() 197 boolean found = false; in testSyncFlags_twoCallsWithDifferentDefaults() 200 found = true; in testSyncFlags_twoCallsWithDifferentDefaults() 208 .that(found).isTrue(); in testSyncFlags_twoCallsWithDifferentDefaults() 224 boolean found = false; in testQueryFlags_onlyOnce() 227 found = true; in testQueryFlags_onlyOnce() 255 boolean found = false; in testQueryFlags_twoCallsWithDifferentDefaults() [all …]
|
/aosp14/system/core/fs_mgr/ |
H A D | fs_mgr_boot_config.cpp | 36 auto found = base; in fs_mgr_parse_cmdline() local 37 while (((found = cmdline.find_first_of(" \"", found)) != cmdline.npos) && in fs_mgr_parse_cmdline() 38 (cmdline[found] == quote)) { in fs_mgr_parse_cmdline() 40 if ((found = cmdline.find(quote, found + 1)) == cmdline.npos) break; in fs_mgr_parse_cmdline() 41 ++found; in fs_mgr_parse_cmdline() 44 auto source = cmdline.substr(base, found - base); in fs_mgr_parse_cmdline() 56 if (found == cmdline.npos) break; in fs_mgr_parse_cmdline() 57 base = found + 1; in fs_mgr_parse_cmdline()
|
/aosp14/system/core/libcutils/ |
H A D | canned_fs_config.cpp | 114 const Entry* found = nullptr; variable 118 found = &entry; 124 if (found == nullptr) { 129 *uid = found->uid; 130 *gid = found->gid; 131 *mode = found->mode; 132 *capabilities = found->capabilities;
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ForegroundServicesUserState.java | 56 final boolean found; in removeOp() 59 found = false; in removeOp() 61 found = keys.remove(op); in removeOp() 66 return found; in removeOp() 102 final boolean found; in removeNotification() 105 found = false; in removeNotification() 107 found = keys.remove(key); in removeNotification() 112 return found; in removeNotification()
|
/aosp14/frameworks/base/cmds/incidentd/tests/ |
H A D | Reporter_test.cpp | 88 map<int, int>::const_iterator found = startSections.find(sectionId); in sectionStarted() local 89 if (found != startSections.end()) { in sectionStarted() 90 return found->second; in sectionStarted() 97 map<int, int>::const_iterator found = finishSections.find(sectionId); in sectionFinished() local 98 if (found != finishSections.end()) { in sectionFinished() 99 return found->second; in sectionFinished()
|
/aosp14/frameworks/base/tools/streaming_proto/ |
H A D | string_utils.cpp | 96 size_t base = 0, found = 0; in split() local 98 found = str.find_first_of(delimiter, base); in split() 99 if (found != base) { in split() 100 string part = str.substr(base, found - base); in split() 105 if (found == str.npos) break; in split() 106 base = found + 1; in split()
|
/aosp14/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/ |
H A D | WifiClientTest.java | 126 boolean found = false; in testAddRemoveNetwork() 129 found = true; in testAddRemoveNetwork() 132 assertTrue(found); in testAddRemoveNetwork() 140 found = false; in testAddRemoveNetwork() 143 found = true; in testAddRemoveNetwork() 147 assertFalse(found); in testAddRemoveNetwork() 221 boolean found = false; in testSaveConfig() 224 found = true; in testSaveConfig() 227 assertTrue(found); in testSaveConfig()
|
/aosp14/system/core/debuggerd/libdebuggerd/test/ |
H A D | open_files_list_test.cpp | 39 bool found = false; in TEST() local 43 found = true; in TEST() 47 EXPECT_TRUE(found); in TEST()
|
/aosp14/frameworks/base/cmds/incidentd/src/ |
H A D | Broadcaster.cpp | 132 map<ReportId,ReportStatus>::const_iterator found = mHistory.find(ReportId(id, pkg, cls)); in clearBroadcasts() local 133 if (found != mHistory.end()) { in clearBroadcasts() 134 if (found->second.listener != nullptr) { in clearBroadcasts() 137 ics->cancelAuthorization(found->second.listener); in clearBroadcasts() 140 mHistory.erase(found); in clearBroadcasts() 271 map<ReportId,ReportStatus>::const_iterator found = mHistory.find(ReportId(id, pkg, cls)); in was_approval_sent() local 272 if (found != mHistory.end()) { in was_approval_sent() 273 return found->second.approval_sent; in was_approval_sent() 288 map<ReportId,ReportStatus>::const_iterator found = mHistory.find(ReportId(id, pkg, cls)); in was_ready_sent() local 289 if (found != mHistory.end()) { in was_ready_sent() [all …]
|
/aosp14/system/core/fs_mgr/libfs_avb/ |
H A D | fs_avb_util.cpp | 79 bool found = false; in GetHashDescriptor() local 92 for (size_t n = 0; n < num_descriptors && !found; n++) { in GetHashDescriptor() 111 found = true; in GetHashDescriptor() 116 if (found) break; in GetHashDescriptor() 119 if (!found) { in GetHashDescriptor()
|
H A D | avb_util.cpp | 121 bool found = false; in GetHashtreeDescriptor() local 134 for (size_t n = 0; n < num_descriptors && !found; n++) { in GetHashtreeDescriptor() 154 found = true; in GetHashtreeDescriptor() 159 if (found) break; in GetHashtreeDescriptor() 162 if (!found) { in GetHashtreeDescriptor() 242 auto found = partition_name.rfind(ab_suffix); in DeriveAvbPartitionName() local 243 if (found != std::string::npos) { in DeriveAvbPartitionName() 244 partition_name.erase(found); // converts system_a => system in DeriveAvbPartitionName() 247 auto found = partition_name.rfind(ab_other_suffix); in DeriveAvbPartitionName() local 248 if (found != std::string::npos) { in DeriveAvbPartitionName() [all …]
|
/aosp14/frameworks/base/tools/aapt2/ |
H A D | ResourceTable.cpp | 84 const bool found = iter != entries.end() && name == (*iter)->name; in FindElementsRunAction() local 85 return action(found, iter); in FindElementsRunAction() 109 name, packages, [&](bool found, auto& iter) { return found ? iter->get() : nullptr; }); in FindPackage() argument 123 return action(found, iter); in FindTypeRunAction() 133 [&](bool found, auto& iter) { return found ? iter->get() : nullptr; }); in FindType() argument 137 return FindTypeRunAction(type, types, [&](bool found, auto& iter) { in FindOrCreateType() argument 150 name, entries, [&](bool found, auto& iter) { return found ? iter->get() : nullptr; }); in FindEntry() argument 316 bool found = in LowerBound() local 318 return std::make_pair(found, it); in LowerBound() 322 auto [found, it] = LowerBound(el, value); in Insert() [all …]
|
/aosp14/frameworks/base/media/jni/soundpool/ |
H A D | StreamManager.cpp | 315 const ssize_t found = removeFromQueues_l(stream, activeStreamIDToMatch); in moveToRestartQueue_l() local 316 if (found < 0) return false; in moveToRestartQueue_l() 318 LOG_ALWAYS_FATAL_IF(found > 1, "stream on %zd > 1 stream lists", found); in moveToRestartQueue_l() 327 size_t found = 0; in removeFromQueues_l() local 331 ++found; in removeFromQueues_l() 336 if (found == 0 && activeStreamIDToMatch > 0) { in removeFromQueues_l() 343 ++found; in removeFromQueues_l() 347 found += mAvailableStreams.erase(stream); in removeFromQueues_l() 351 return (ssize_t)found; in removeFromQueues_l()
|
H A D | Android.bp | 48 // "modernize-use-auto", // found in StreamManager.h, debatable - auto can obscure type 54 // "modernize-use-nodiscard", // found in SteamManager.h 61 //"modernize-use-using", // found in SoundManager.h 69 "-google-explicit-constructor", // found in StreamManager.h 70 "-misc-non-private-member-variables-in-classes", // found in SoundManager.h 71 "-performance-unnecessary-value-param", // found in StreamManager.h
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
H A D | GridTouchSetSelectionTest.java | 71 boolean found = false; in testSetSelection() 76 found = true; in testSetSelection() 80 assertTrue("Selected item not visible in list", found); in testSetSelection()
|
/aosp14/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/ |
H A D | AutofillTestHelper.java | 73 final ViewNode found = findNodeByResourceId(node.getChildAt(i), id); in findNodeByResourceId() local 74 if (found != null) { in findNodeByResourceId() 75 return found; in findNodeByResourceId()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | RemoteInputController.java | 131 boolean found = pruneWeakThenRemoveAndContains( in addRemoteInput() 135 found /* isRemoteInputFound */); in addRemoteInput() local 136 if (!found) { in addRemoteInput() 258 boolean found = false; in pruneWeakThenRemoveAndContains() 271 found = true; in pruneWeakThenRemoveAndContains() 275 return found; in pruneWeakThenRemoveAndContains()
|
/aosp14/frameworks/base/services/people/java/com/android/server/people/data/ |
H A D | ContactsQueryHelper.java | 118 boolean found = false; in queryContact() 151 found = true; in queryContact() 158 if (found && lookupKey != null && hasPhoneNumber) { in queryContact() 161 return found; in queryContact()
|
/aosp14/frameworks/base/test-runner/src/android/test/ |
H A D | ViewAsserts.java | 351 boolean found = false; in assertGroupContains() 354 if (!found) { in assertGroupContains() 355 found = true; in assertGroupContains() 362 assertTrue("group does not contain " + child, found); in assertGroupContains()
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | ViewRootRectTracker.java | 53 boolean found = false; in updateRectsForView() 64 found = true; in updateRectsForView() 69 if (!found && view.isAttachedToWindow()) { in updateRectsForView()
|