/frameworks/compile/mclinker/include/mcld/Support/ |
D | CXADemangle.tcc | 34 const char* parse_type(const char* first, const char* last, C& db); 36 const char* parse_encoding(const char* first, const char* last, C& db); 38 const char* parse_name(const char* first, const char* last, C& db, 41 const char* parse_expression(const char* first, const char* last, C& db); 43 const char* parse_template_args(const char* first, const char* last, C& db); 45 const char* parse_operator_name(const char* first, const char* last, C& db); 47 const char* parse_unqualified_name(const char* first, const char* last, C& db); 49 const char* parse_decltype(const char* first, const char* last, C& db); 58 printf("{%s#%s}\n", s.first.c_str(), s.second.c_str()); in print_stack() 68 printf("{%s#%s}", s.first.c_str(), s.second.c_str()); in print_stack() [all …]
|
/frameworks/base/core/java/android/os/ |
D | BundleMerger.java | 221 public @Nullable Bundle merge(@Nullable Bundle first, @Nullable Bundle last) { in merge() argument 222 if (first == null && last == null) { in merge() 225 if (first == null) { in merge() 226 first = Bundle.EMPTY; in merge() 235 res.putAll(first); in merge() 239 conflictingKeys.addAll(first.keySet()); in merge() 244 final Object firstValue = first.get(key); in merge() 264 @Nullable Object first, @Nullable Object last) { in merge() argument 265 if (first == null) return last; in merge() 266 if (last == null) return first; in merge() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DeferredDisplayUpdater.java | 307 private boolean isPhysicalDisplayUpdated(@Nullable DisplayInfo first, in isPhysicalDisplayUpdated() argument 309 if (first == null || second == null) return true; in isPhysicalDisplayUpdated() 310 return !Objects.equals(first.uniqueId, second.uniqueId); in isPhysicalDisplayUpdated() 386 static int calculateDisplayInfoDiff(@Nullable DisplayInfo first, @Nullable DisplayInfo second) { in calculateDisplayInfoDiff() argument 389 if (Objects.equals(first, second)) return diff; in calculateDisplayInfoDiff() 390 if (first == null || second == null) return DIFF_EVERYTHING; in calculateDisplayInfoDiff() 392 if (first.layerStack != second.layerStack in calculateDisplayInfoDiff() 393 || first.flags != second.flags in calculateDisplayInfoDiff() 394 || first.type != second.type in calculateDisplayInfoDiff() 395 || first.displayId != second.displayId in calculateDisplayInfoDiff() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/ |
D | NotifUiAdjustment.kt | 63 first: List<Notification.Action>, in areDifferent() 66 first === second -> false in areDifferent() 67 first.size != second.size -> true in areDifferent() 68 else -> first.asSequence().zip(second.asSequence()).any { in areDifferent() 69 (!TextUtils.equals(it.first.title, it.second.title)) || in areDifferent() 70 (areDifferent(it.first.getIcon(), it.second.getIcon())) || in areDifferent() 71 (it.first.actionIntent != it.second.actionIntent) || in areDifferent() 72 (areDifferent(it.first.remoteInputs, it.second.remoteInputs)) in areDifferent() 76 private fun areDifferent(first: Icon?, second: Icon?): Boolean = when { in areDifferent() 77 first === second -> false in areDifferent() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
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() 40 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 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() 54 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 55 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 58 final SpannedString copied = new SpannedString(first, true /* ignoreNoCopySpan */); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() [all …]
|
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() 40 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 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() 54 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 55 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 58 final SpannedString copied = new SpannedString(first, true /* ignoreNoCopySpan */); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DeferredDisplayUpdaterDiffTest.java | 74 final DisplayInfo first = new DisplayInfo(); in testCalculateDisplayInfoDiff_allDifferent_returnsChanges() local 76 makeAllFieldsDifferent(first, second); in testCalculateDisplayInfoDiff_allDifferent_returnsChanges() 78 int diff = calculateDisplayInfoDiff(first, second); in testCalculateDisplayInfoDiff_allDifferent_returnsChanges() 88 generateWithSingleDifferentField((first, second, field) -> { in testCalculateDisplayInfoDiff_forEveryDifferentField_returnsChanges() argument 89 int diff = calculateDisplayInfoDiff(first, second); in testCalculateDisplayInfoDiff_forEveryDifferentField_returnsChanges() 100 generateWithSingleDifferentField((first, second, field) -> { in testCalculateDisplayInfoDiff_forEveryDifferentField_returnsMatchingChange() argument 101 boolean hasDeferrableFieldChange = hasDeferrableFieldChange(first, second); in testCalculateDisplayInfoDiff_forEveryDifferentField_returnsMatchingChange() 105 int diff = calculateDisplayInfoDiff(first, second); in testCalculateDisplayInfoDiff_forEveryDifferentField_returnsMatchingChange() 118 private static void makeAllFieldsDifferent(@NonNull DisplayInfo first, in makeAllFieldsDifferent() argument 122 setDifferentFieldValues(first, second, field); in makeAllFieldsDifferent() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationUiAdjustment.java | 83 @NonNull List<Notification.Action> first, @NonNull List<Notification.Action> second) { in areDifferent() 84 if (first == second) { in areDifferent() 87 if (first == null || second == null) { in areDifferent() 90 if (first.size() != second.size()) { in areDifferent() 93 for (int i = 0; i < first.size(); i++) { in areDifferent() 94 Notification.Action firstAction = first.get(i); in areDifferent() 116 private static boolean areDifferent(@Nullable Icon first, @Nullable Icon second) { in areDifferent() argument 117 if (first == second) { in areDifferent() 120 if (first == null || second == null) { in areDifferent() 123 return !first.sameAs(second); in areDifferent() [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | ViewAsserts.java | 124 static public void assertBaselineAligned(View first, View second) { in assertBaselineAligned() argument 126 first.getLocationOnScreen(xy); in assertBaselineAligned() 127 int firstTop = xy[1] + first.getBaseline(); in assertBaselineAligned() 142 static public void assertRightAligned(View first, View second) { in assertRightAligned() argument 144 first.getLocationOnScreen(xy); in assertRightAligned() 145 int firstRight = xy[0] + first.getMeasuredWidth(); in assertRightAligned() 161 static public void assertRightAligned(View first, View second, int margin) { in assertRightAligned() argument 163 first.getLocationOnScreen(xy); in assertRightAligned() 164 int firstRight = xy[0] + first.getMeasuredWidth(); in assertRightAligned() 179 static public void assertLeftAligned(View first, View second) { in assertLeftAligned() argument [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
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() 68 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testChangeFocusWithinItem() local 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() [all …]
|
/frameworks/av/include/media/ |
D | Interpolator.h | 54 std::pair<S, T> first() const { in first() function 80 return high->first == x ? high->second : low->second; in findY() 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() 92 if (mMemo.count(low->first) != 0) { in findY() 93 const S t = (x - low->first) / interval; in findY() 95 const auto &memo = mMemo[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() [all …]
|
/frameworks/base/core/java/android/util/ |
D | Pair.java | 31 public final F first; field in Pair 40 public Pair(F first, S second) { in Pair() argument 41 this.first = first; in Pair() 59 return Objects.equals(p.first, first) && Objects.equals(p.second, second); in equals() 69 return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode()); in hashCode() 74 return "Pair{" + String.valueOf(first) + " " + String.valueOf(second) + "}"; in toString()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationCoreApiTest.kt | 65 assertion = { first, second -> in <lambda>() method 66 assertAll<DomainVerificationRequest, Set<String>>(first, second, in <lambda>() 84 assertion = { first, second -> in <lambda>() method 85 assertAll<DomainVerificationInfo, UUID>(first, second, in <lambda>() 88 assertAll<DomainVerificationInfo, String>(first, second, in <lambda>() 91 assertAll<DomainVerificationInfo, Map<String, Int?>>(first, second, in <lambda>() 109 assertion = { first, second -> in <lambda>() method 110 assertAll<DomainVerificationUserState, UUID>(first, second, in <lambda>() 113 assertAll<DomainVerificationUserState, String>(first, second, in <lambda>() 116 assertAll<DomainVerificationUserState, UserHandle>(first, second, in <lambda>() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | TimeToLiveHelperTest.java | 109 NotificationRecord first = getRecord("testTimeoutFirst", 1); in testTimeoutExpires_twoEntries() local 112 mHelper.scheduleTimeoutLocked(first, 1); in testTimeoutExpires_twoEntries() 124 .isEqualTo(first.getKey()); in testTimeoutExpires_twoEntries() 135 NotificationRecord first = getRecord("testTimeoutFirst", 1); in testTimeout_earlierEntryAddedSecond() local 139 mHelper.scheduleTimeoutLocked(first, 1); in testTimeout_earlierEntryAddedSecond() 144 .isEqualTo(first.getKey()); in testTimeout_earlierEntryAddedSecond() 145 assertThat(mHelper.mKeys.first().second).isEqualTo(first.getKey()); in testTimeout_earlierEntryAddedSecond() 154 NotificationRecord first = getRecord("testTimeoutFirst", 1); in testTimeout_earlierEntryAddedFirst() local 157 mHelper.scheduleTimeoutLocked(first, 1); in testTimeout_earlierEntryAddedFirst() 161 assertThat(mHelper.mKeys.first().second).isEqualTo(first.getKey()); in testTimeout_earlierEntryAddedFirst() [all …]
|
/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
D | ChipsTest.java | 185 String first = (String) mTokenizer.terminateToken("FIRST"); in testSanitizeBetween() local 189 mEditable.append(first + extra + second); in testSanitizeBetween() 190 int firstStart = mEditable.toString().indexOf(first); in testSanitizeBetween() 191 int firstEnd = firstStart + first.trim().length(); in testSanitizeBetween() 199 assertEquals(editableString.indexOf(first), firstStart); in testSanitizeBetween() 201 assertEquals(editableString, (first + second)); in testSanitizeBetween() 207 mEditable.append(first); in testSanitizeBetween() 208 firstStart = mEditable.toString().indexOf(first); in testSanitizeBetween() 209 firstEnd = firstStart + first.length(); in testSanitizeBetween() 212 assertEquals(mEditable.toString(), first); in testSanitizeBetween() local [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/ |
D | PackageParsingDeferErrorTest.kt | 65 val first = activities.first() in <lambda>() constant 66 assertThat(first.name).isEqualTo(TEST_ACTIVITY) in <lambda>() 67 val intents = first.intents in <lambda>() 69 val intentFilter = intents.first().intentFilter in <lambda>() 87 val first = activities.first() in <lambda>() constant 88 assertThat(first.name).isEqualTo(TEST_ACTIVITY) in <lambda>() 89 val intents = first.intents in <lambda>() 91 val intentFilter = intents.first().intentFilter in <lambda>() 107 assertThat(permissions.first().name).isEqualTo(TEST_PERMISSION) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/shared/model/ |
D | BiometricModalitiesTest.kt | 44 ).first(), in hasUdfps() 64 ).first(), in hasSfps() 82 fingerprintProperties = fingerprintSensorPropertiesInternal().first(), in fingerprintOnly() 96 with(BiometricModalities(faceProperties = faceSensorPropertiesInternal().first())) { in faceOnly() 110 fingerprintProperties = fingerprintSensorPropertiesInternal(strong = false).first(), in faceStrength() 111 faceProperties = faceSensorPropertiesInternal(strong = true).first() in faceStrength() 119 fingerprintProperties = fingerprintSensorPropertiesInternal(strong = false).first(), in faceStrength() 120 faceProperties = faceSensorPropertiesInternal(strong = false).first() in faceStrength() 131 fingerprintProperties = fingerprintSensorPropertiesInternal().first(), in faceAndFingerprint() 132 faceProperties = faceSensorPropertiesInternal().first(), in faceAndFingerprint()
|
/frameworks/base/core/java/android/text/style/ |
D | LeadingMarginSpan.java | 47 public int getLeadingMargin(boolean first); in getLeadingMargin() argument 71 boolean first, Layout layout); in drawLeadingMargin() argument 109 public Standard(int first, int rest) { in Standard() argument 110 mFirst = first; in Standard() 150 public int getLeadingMargin(boolean first) { in getLeadingMargin() argument 151 return first ? mFirst : mRest; in getLeadingMargin() 158 boolean first, Layout layout) { in drawLeadingMargin() argument
|
/frameworks/base/tools/aapt2/link/ |
D | PrivateAttributeMover.cpp | 38 auto first = new_end; in move_if() local 39 ++first; in move_if() 41 for (; first != last; ++first) { in move_if() 42 if (bool(pred(*first))) { in move_if() 44 *result = std::move(*first); in move_if() 49 *new_end = std::move(*first); in move_if()
|
/frameworks/base/tools/aapt/ |
D | ResourceFilter.cpp | 33 val.writeTo(&entry.first); in parse() 34 } else if (!AaptConfig::parse(part, &entry.first)) { in parse() 39 entry.second = mDefault.diff(entry.first); in parse() 46 …"warning: ignoring flag -c %s. Use --preferred-density instead.\n", entry.first.toString().c_str()… in parse() 47 entry.first.density = 0; in parse() 110 uint32_t diff = entry.first.diff(config); in match() 127 config.language[0] == entry.first.language[0] && in match() 128 config.language[1] == entry.first.language[1] && in match() 129 scriptsMatch(config, entry.first)) { in match() 136 config.smallestScreenWidthDp < entry.first.smallestScreenWidthDp) { in match()
|
/frameworks/av/services/audioflinger/timing/tests/ |
D | monotonicframecounter_tests.cpp | 37 maxReceivedFrameCount = std::max(maxReceivedFrameCount, p.first); in TEST() 38 ASSERT_EQ(p.first, in TEST() 39 monotonicFrameCounter.updateAndGetMonotonicFrameCount(p.first, p.second)); in TEST() 54 maxReceivedFrameCount = std::max(maxReceivedFrameCount, p.first); in TEST() 56 monotonicFrameCounter.updateAndGetMonotonicFrameCount(p.first, p.second); in TEST() 79 maxReceivedFrameCount = std::max(maxReceivedFrameCount, p.first); in TEST() 81 monotonicFrameCounter.updateAndGetMonotonicFrameCount(p.first, p.second); in TEST()
|
/frameworks/base/telephony/java/android/telephony/emergency/ |
D | EmergencyNumber.java | 773 public static boolean areSameEmergencyNumbers(@NonNull EmergencyNumber first, in areSameEmergencyNumbers() argument 775 if (!first.getNumber().equals(second.getNumber())) { in areSameEmergencyNumbers() 778 if (!first.getCountryIso().equals(second.getCountryIso())) { in areSameEmergencyNumbers() 781 if (!first.getMnc().equals(second.getMnc())) { in areSameEmergencyNumbers() 785 if (first.getEmergencyServiceCategoryBitmask() in areSameEmergencyNumbers() 789 if (!first.getEmergencyUrns().equals(second.getEmergencyUrns())) { in areSameEmergencyNumbers() 795 if (first.isFromSources(EMERGENCY_NUMBER_SOURCE_TEST) in areSameEmergencyNumbers() 812 public static EmergencyNumber mergeSameEmergencyNumbers(@NonNull EmergencyNumber first, in mergeSameEmergencyNumbers() argument 814 if (areSameEmergencyNumbers(first, second, false)) { in mergeSameEmergencyNumbers() 815 int routing = first.getEmergencyCallRouting(); in mergeSameEmergencyNumbers() [all …]
|
/frameworks/av/media/libeffects/preprocessing/tests/ |
D | correlation.cpp | 129 for (unsigned i = 0; i < pairAutoCorr1.first.size() - 1; i++) { in main() 130 if (pairAutoCorr1.first[i + 1] - pairAutoCorr1.first[i] != in main() 131 pairAutoCorr2.first[i + 1] - pairAutoCorr2.first[i]) { in main() 151 for (unsigned i = 0; i < pairCrossCorr.first.size() - 1; i++) { in main() 152 if (pairAutoCorr1.first[i + 1] - pairAutoCorr1.first[i] != in main() 153 pairCrossCorr.first[i + 1] - pairCrossCorr.first[i]) { in main()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | TimeToLiveHelper.java | 63 mKeys = new TreeSet<>((left, right) -> Long.compare(left.first, right.first)); in TimeToLiveHelper() 100 final Long currentEarliestTime = mKeys.isEmpty() ? null : mKeys.first().first; in scheduleTimeoutLocked() 121 if (!mKeys.isEmpty() && key.equals(mKeys.first().second)) { in removeMatchingEntry() 125 mKeys.remove(mKeys.first()); in removeMatchingEntry() 143 final PendingIntent pi = getAlarmPendingIntent(mKeys.first().second, FLAG_CANCEL_CURRENT); in cancelFirstAlarm() 149 final PendingIntent piNewFirst = getAlarmPendingIntent(mKeys.first().second, in maybeScheduleFirstAlarm() 152 mKeys.first().first, piNewFirst); in maybeScheduleFirstAlarm() 165 Pair<Long, String> earliest = mKeys.first();
|
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/util/ |
D | StateFlowBridgeTest.kt | 39 val first = flow.firstWithTimeoutOrNull() in <lambda>() constant 40 assertThat(first).isNull() in <lambda>() 49 val first = stateFlowBridge.flow.firstWithTimeoutOrNull() in <lambda>() constant 50 assertThat(first).isEqualTo("A") in <lambda>() 61 val first = stateFlowBridge.flow.firstWithTimeoutOrNull() in <lambda>() constant 62 assertThat(first).isEqualTo("A") in <lambda>()
|