/aosp12/frameworks/compile/mclinker/include/mcld/Support/ |
H A D | CXADemangle.tcc | 97 for (; first != last; ++first) in print_state() 600 if (last - first >= 3 && first[0] == 'c' && first[1] == 'c') in parse_const_cast_expr() 626 if (last - first >= 3 && first[0] == 'd' && first[1] == 'c') in parse_dynamic_cast_expr() 652 if (last - first >= 3 && first[0] == 'r' && first[1] == 'c') in parse_reinterpret_cast_expr() 678 if (last - first >= 3 && first[0] == 's' && first[1] == 'c') in parse_static_cast_expr() 704 if (last - first >= 3 && first[0] == 's' && first[1] == 'p') in parse_pack_expansion() 719 if (last - first >= 3 && first[0] == 's' && first[1] == 't') in parse_sizeof_type_expr() 759 if (last - first >= 3 && first[0] == 's' && first[1] == 'Z' && first[2] == 'T') in parse_sizeof_param_pack_expr() 832 if (last - first >= 3 && first[0] == 's' && first[1] == 'Z' && first[2] == 'f') in parse_sizeof_function_param_pack_expr() 853 if (last - first >= 3 && first[0] == 't' && (first[1] == 'e' || first[1] == 'i')) in parse_typeid_expr() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
H A D | RecycleAccessibilityEventTest.java | 43 AccessibilityEvent first = in testAccessibilityEventViewTextChangedType() local 45 assertNotNull(first); in testAccessibilityEventViewTextChangedType() 47 first.setClassName(CLASS_NAME); in testAccessibilityEventViewTextChangedType() 49 first.getText().add(TEXT); in testAccessibilityEventViewTextChangedType() 50 first.setFromIndex(FROM_INDEX); in testAccessibilityEventViewTextChangedType() 53 first.setChecked(true); in testAccessibilityEventViewTextChangedType() 57 first.setEnabled(true); in testAccessibilityEventViewTextChangedType() 58 first.setPassword(true); in testAccessibilityEventViewTextChangedType() 60 first.recycle(); in testAccessibilityEventViewTextChangedType() 62 assertNotNull(first); in testAccessibilityEventViewTextChangedType() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | SpannedStringNoCopyTest.java | 38 final SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() local 39 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 41 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 44 final SpannedString copied = new SpannedString(first); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 53 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 55 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 71 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl() 73 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl() 85 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannedImpl() 87 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannedImpl() [all …]
|
H A D | SpannableStringNoCopyTest.java | 38 final SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() local 39 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 41 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 44 final SpannedString copied = new SpannedString(first); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 52 final SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() local 53 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 55 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 71 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl() 73 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl() 85 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannableImpl() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationUiAdjustment.java | 84 if (first == second) { in areDifferent() 87 if (first == null || second == null) { in areDifferent() 90 if (first.size() != second.size()) { in areDifferent() 117 if (first == second) { in areDifferent() 120 if (first == null || second == null) { in areDifferent() 123 return !first.sameAs(second); in areDifferent() 128 if (first == second) { in areDifferent() 131 if (first == null || second == null) { in areDifferent() 134 if (first.length != second.length) { in areDifferent() 153 if (first == second) { in areDifferent() [all …]
|
/aosp12/art/test/626-const-class-linking/ |
H A D | expected-stdout.txt | 2 first: Helper1 class loader: DelegatingLoader 4 first: Helper1 class loader: DelegatingLoader 7 first: Helper1 class loader: DelegatingLoader 12 first: Helper1 class loader: RacyLoader 14 first: Helper1 class loader: RacyLoader 16 first: Helper1 class loader: RacyLoader 18 first: Helper1 class loader: RacyLoader 24 first: Helper1 class loader: RacyLoader 26 first: Helper1 class loader: RacyLoader 28 first: Helper3 class loader: RacyLoader [all …]
|
/aosp12/frameworks/base/test-runner/src/android/test/ |
H A D | ViewAsserts.java | 126 first.getLocationOnScreen(xy); in assertBaselineAligned() 127 int firstTop = xy[1] + first.getBaseline(); in assertBaselineAligned() 144 first.getLocationOnScreen(xy); in assertRightAligned() 145 int firstRight = xy[0] + first.getMeasuredWidth(); in assertRightAligned() 163 first.getLocationOnScreen(xy); in assertRightAligned() 181 first.getLocationOnScreen(xy); in assertLeftAligned() 200 first.getLocationOnScreen(xy); in assertLeftAligned() 218 first.getLocationOnScreen(xy); in assertBottomAligned() 237 first.getLocationOnScreen(xy); in assertBottomAligned() 255 first.getLocationOnScreen(xy); in assertTopAligned() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
H A D | AndroidPackageParsingEquivalenceTest.kt | 42 val firstName = it.first?.packageName 50 .that(it.first?.dumpToString()) 76 val firstName = it.first?.packageName 91 .isEqualTo(it.first?.dumpToString()) 95 .isEqualTo(it.first?.applicationInfo?.dumpToString()) 108 .isEqualTo(it.first.dumpToString()) 120 it.first?.receivers?.zip(it.second?.receivers!!)?.forEach { 123 .isEqualTo(it.first.dumpToString()) 138 .isEqualTo(it.first.dumpToString()) 150 it.first?.services?.zip(it.second?.services!!)?.forEach { [all …]
|
/aosp12/frameworks/av/include/media/ |
H A D | Interpolator.h | 54 std::pair<S, T> first() const { in first() function 82 return ((high->first - x) * low->second + (x - low->first) * high->second) in findY() 83 / (high->first - low->first); in findY() 89 const S interval = high->first - low->first; in findY() 129 ? (low->second - low2->second) / (low->first - low2->first) in findY() 132 ? (high2->second - high->second) / (high2->first - high->first) in findY() 141 ? (high->second - low2->second) / (high->first - low2->first) in findY() 145 ? (high2->second - low->second) / (high2->first - low->first) in findY() 296 bool first = true; in toString() local 298 if (first) { in toString() [all …]
|
/aosp12/system/media/audio_utils/include/audio_utils/ |
H A D | LogPlot.h | 44 using T = decltype((*first).first); in audio_utils_log_plot() 52 const size_t size = last - first; in audio_utils_log_plot() 59 const auto result = std::minmax_element(first, last); in audio_utils_log_plot() 60 const T minVal = (*result.first).first; in audio_utils_log_plot() 61 const T maxVal = (*result.second).first; in audio_utils_log_plot() 92 auto it = size <= WIDTH_MAX ? first : first + size - WIDTH_MAX; in audio_utils_log_plot() 94 const T power = it->first; in audio_utils_log_plot() 146 double maxDelta = it->first; 150 if (it->first > maxDelta) { 151 maxDelta = it->first; [all …]
|
/aosp12/packages/modules/StatsD/statsd/tests/metrics/ |
H A D | ValueMetricProducer_test.cpp | 4037 ASSERT_EQ(1, it->first.getStateValuesKey().getValues().size()); in TEST() 4059 ASSERT_EQ(1, it->first.getStateValuesKey().getValues().size()); in TEST() 4067 ASSERT_EQ(1, it->first.getStateValuesKey().getValues().size()); in TEST() 4090 ASSERT_EQ(1, it->first.getStateValuesKey().getValues().size()); in TEST() 4098 ASSERT_EQ(1, it->first.getStateValuesKey().getValues().size()); in TEST() 4108 ASSERT_EQ(1, it->first.getStateValuesKey().getValues().size()); in TEST() 6398 ASSERT_EQ(1, valueProducer->mPastBuckets[it->first].size()); in TEST() 6425 ASSERT_EQ(1, valueProducer->mPastBuckets[it->first].size()); in TEST() 6441 ASSERT_EQ(1, valueProducer->mPastBuckets[it->first].size()); in TEST() 6453 ASSERT_EQ(1, valueProducer->mPastBuckets[it->first].size()); in TEST() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
H A D | ListItemFocusablesCloseTest.java | 50 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testPreconditions() local 54 first.getTop()); in testPreconditions() 56 first.getChildAt(0).isFocused()); in testPreconditions() 58 first.getHeight() < mListView.getHeight()); in testPreconditions() 69 final int topOfFirstItemBefore = first.getTop(); in testChangeFocusWithinItem() 72 first.getChildAt(2).isFocused()); in testChangeFocusWithinItem() 76 topOfFirstItemBefore, first.getTop()); in testChangeFocusWithinItem() 81 first.getChildAt(0).isFocused()); in testChangeFocusWithinItem() 83 topOfFirstItemBefore, first.getTop()); in testChangeFocusWithinItem() 89 final int topOfFirstItemBefore = first.getTop(); in testMoveDownToButtonInDifferentSelection() [all …]
|
/aosp12/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
H A D | DomainVerificationCoreApiTest.kt | 65 assertion = { first, second -> 84 assertion = { first, second -> 109 assertion = { first, second -> 120 first, second, { it.isLinkHandlingAllowed }, 124 first, second, { it.hostToStateMap }, 133 assertion = { first, second -> 135 first, second, 146 private val assertion: (first: T, second: T) -> Unit 149 fun assert(first: Any, second: Any) = assertion(first as T, second as T) 161 first: T, [all …]
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/ |
H A D | Utils.kt | 183 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) 185 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) 187 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) 189 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) 201 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) 203 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) 205 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) 207 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first)
|
/aosp12/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
H A D | ChipsTest.java | 188 mEditable.append(first + extra + second); in testSanitizeBetween() 206 mEditable.append(first); in testSanitizeBetween() 208 firstEnd = firstStart + first.length(); in testSanitizeBetween() 211 assertEquals(mEditable.toString(), first); in testSanitizeBetween() local 225 mEditable.append(first + second); in testSanitizeEnd() 252 mEditable.append(first+second+third); in testMoreChipPlainText() 303 mEditable.append(first+second+third); in testMoreChip() 443 mEditable.append(first+second+third); in testMoreChipSpecialChars() 530 mEditable.append(first + second + third); in testRemoveChip() 562 firstEnd = firstStart + first.length(); in testRemoveChip() [all …]
|
/aosp12/system/apex/apexd/ |
H A D | apex_database.h | 101 it = insert_it.first; in AddMountedApexLocked() 132 if (pkg_it->first.full_path == full_path && 156 if (pkg_it->first.full_path == full_path) { in SetLatestLocked() 181 if (pair.first.is_temp_mount == match_temp_mounts) { 182 handler(pair.first, pair.second); 194 if (pair.first.is_temp_mount == match_temp_mounts) { 195 handler(pkg.first, pair.first, pair.second); 249 CHECK_LE(count, 1u) << apex_set.first; in CheckAtMostOneLatest() 258 if (pair.first.loop_name != "") { in CheckUniqueLoopDm() 262 if (pair.first.device_name != "") { in CheckUniqueLoopDm() [all …]
|
/aosp12/hardware/interfaces/wifi/1.0/vts/functional/ |
H A D | wifi_chip_hidl_test.cpp | 108 return status_and_iface.first.code; in createP2pIface() 118 return status_and_iface.first.code; in createStaIface() 145 HIDL_INVOKE(wifi_chip_, getId).first.code); in TEST_P() 222 status_and_firmware_dump.first.code); in TEST_P() 252 status_and_ring_buffer_status.first.code); in TEST_P() 258 status_and_ring_buffer_status.first.code); in TEST_P() 272 status_and_ring_buffer_status.first.code); in TEST_P() 325 status_and_debug_wake_reason.first.code); in TEST_P() 328 status_and_debug_wake_reason.first.code); in TEST_P() 530 if (status_and_rtt_controller.first.code != in TEST_P() [all …]
|
/aosp12/frameworks/base/core/java/android/util/ |
H A D | Pair.java | 29 public final F first; field in Pair 38 public Pair(F first, S second) { in Pair() argument 39 this.first = first; in Pair() 57 return Objects.equals(p.first, first) && Objects.equals(p.second, second); in equals() 67 return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode()); in hashCode() 72 return "Pair{" + String.valueOf(first) + " " + String.valueOf(second) + "}"; in toString()
|
/aosp12/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_utilities_indexing.cpp | 36 void db_LeanPartitionOnPivot(double pivot,double *dest,const double *source,long first,long last,lo… in db_LeanPartitionOnPivot() argument 44 s_point=source+first; in db_LeanPartitionOnPivot() 46 d_bottom=dest+first; in db_LeanPartitionOnPivot() 61 long first=0; in db_LeanQuickSelect() local 76 for(;last-first>2;) in db_LeanQuickSelect() 78 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]); in db_LeanQuickSelect() 79 db_LeanPartitionOnPivot(pivot,dest,source,first,last,&first_equal,&last_equal); in db_LeanQuickSelect() 82 else if(last_equal<pos) first=last_equal+1; in db_LeanQuickSelect() 95 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]); in db_LeanQuickSelect()
|
/aosp12/system/extras/memtrack/ |
H A D | memtrack.cpp | 198 if (all_.count(it->first) == 0) { in scan() 200 all_[it->first].num_samples = 0; in scan() 201 all_[it->first].name = it->first; in scan() 202 all_[it->first].avg_pss_kb = 0; in scan() 203 all_[it->first].min_pss_kb = 0; in scan() 204 all_[it->first].max_pss_kb = 0; in scan() 211 all_[it->first].pids = it->second.pids; in scan() 217 if (all_[it->first].min_pss_kb == 0 || in scan() 225 all_[it->first].num_samples); in scan() 226 all_[it->first].num_samples++; in scan() [all …]
|
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
H A D | RawContactDeltaListTests.java | 398 assertDiffPattern(first, in testMergeDataLocalUpdateRemoteInsert() 423 assertDiffPattern(first, in testMergeDataLocalUpdateRemoteDelete() 449 assertDiffPattern(first, in testMergeDataLocalDeleteRemoteUpdate() 473 assertDiffPattern(first, in testMergeDataLocalInsertRemoteInsert() 503 first.add(joeContact); in testMergeRawContactLocalInsertRemoteInsert() 504 assertDiffPattern(first, in testMergeRawContactLocalInsertRemoteInsert() 523 final RawContactDeltaList first = buildSet( in testMergeRawContactLocalDeleteRemoteDelete() local 531 assertDiffPattern(first, in testMergeRawContactLocalDeleteRemoteDelete() 551 assertDiffPattern(first, in testMergeRawContactLocalUpdateRemoteDelete() 600 assertDiffPattern(first, in testMergeAfterEnsureAndTrim() [all …]
|
/aosp12/hardware/google/pixel/thermal/ |
H A D | thermal-helper.cpp | 287 sensor_status_map_[name_status_pair.first] = { in ThermalHelper() 310 cdev_status_map_[binded_cdev_pair.first][name_status_pair.first] = 0; in ThermalHelper() 319 cdev_status_map_[binded_cdev_pair.first][name_status_pair.first] = 0; in ThermalHelper() 341 name_status_pair.first, binded_cdev_pair.first, binded_cdev_pair.second, in ThermalHelper() 532 ? status.first in readTemperature() 877 LOG(ERROR) << cooling_device_info_pair.first in initializeCoolingDevices() 934 std::string_view sensor_name = sensor_info.first; in initializeTrip() 1006 if (readTemperature(name_info_pair.first, &temp, in fillTemperatures() 1055 << name_info_pair.first; in fillTemperatureThresholds() 1228 << name_status_pair.first; in thermalWatcherCallbackFunc() [all …]
|
/aosp12/packages/apps/StorageManager/robotests/src/com/android/storagemanager/utils/ |
H A D | PreferenceListCacheTest.java | 63 Preference first = createPreference("first"); in testCacheAndRestoreAllPreferences() local 66 Preference[] preferences = new Preference[] {first, second, third}; in testCacheAndRestoreAllPreferences() 70 assertEquals(first, mCache.getCachedPreference("first")); in testCacheAndRestoreAllPreferences() 80 Preference first = createPreference("first"); in testRestoreSomePreferences() local 83 Preference[] preferences = new Preference[] {first, second, third}; in testRestoreSomePreferences() 87 assertEquals(first, mCache.getCachedPreference("first")); in testRestoreSomePreferences() 98 Preference first = createPreference("first"); in testRestoreZeroPreferences() local 109 verify(mGroup).removePreference(eq(first)); in testRestoreZeroPreferences() 116 Preference first = createPreference("first"); in testKeyCollisionThrows() local 128 Preference first = createPreference(""); in testEmptyKeyThrows() local [all …]
|
/aosp12/art/libartbase/base/ |
H A D | bit_vector_test.cc | 182 EXPECT_EQ(0u, first.NumSetBits()); in TEST() 193 EXPECT_EQ(1u, first.NumSetBits()); in TEST() 195 EXPECT_TRUE(first.IsBitSet(64)); in TEST() 204 EXPECT_TRUE(first.IsSubsetOf(&second)); in TEST() 206 EXPECT_TRUE(first.IsSubsetOf(&second)); in TEST() 213 first.SetBit(5); in TEST() 223 first.SetBit(16); in TEST() 224 first.SetBit(32); in TEST() 225 first.SetBit(48); in TEST() 230 EXPECT_TRUE(first.IsSubsetOf(&second)); in TEST() [all …]
|
/aosp12/system/extras/tests/lib/testUtil/ |
H A D | testUtil.c | 100 struct timespec tsDelta(const struct timespec *first, in tsDelta() argument 105 assert(first != NULL); in tsDelta() 107 assert(first->tv_nsec >= 0 && first->tv_nsec < nSecsPerSec); in tsDelta() 109 rv.tv_sec = second->tv_sec - first->tv_sec; in tsDelta() 110 if (second->tv_nsec >= first->tv_nsec) { in tsDelta() 111 rv.tv_nsec = second->tv_nsec - first->tv_nsec; in tsDelta() 123 struct timeval tvDelta(const struct timeval *first, in tvDelta() argument 128 assert(first != NULL); in tvDelta() 130 assert(first->tv_usec >= 0 && first->tv_usec < uSecsPerSec); in tvDelta() 132 rv.tv_sec = second->tv_sec - first->tv_sec; in tvDelta() [all …]
|