/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/tests/coretests/src/android/view/accessibility/ |
D | RecycleAccessibilityEventTest.java | 43 AccessibilityEvent first = in testAccessibilityEventViewTextChangedType() local 45 assertNotNull(first); in testAccessibilityEventViewTextChangedType() 47 first.setClassName(CLASS_NAME); in testAccessibilityEventViewTextChangedType() 48 first.setPackageName(PACKAGE_NAME); in testAccessibilityEventViewTextChangedType() 49 first.getText().add(TEXT); in testAccessibilityEventViewTextChangedType() 50 first.setFromIndex(FROM_INDEX); in testAccessibilityEventViewTextChangedType() 51 first.setAddedCount(ADDED_COUNT); in testAccessibilityEventViewTextChangedType() 52 first.setRemovedCount(REMOVED_COUNT); in testAccessibilityEventViewTextChangedType() 53 first.setChecked(true); in testAccessibilityEventViewTextChangedType() 54 first.setContentDescription(CONTENT_DESCRIPTION); in testAccessibilityEventViewTextChangedType() [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/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/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | AndroidPackageParsingEquivalenceTest.kt | 42 val firstName = it.first?.packageName in applicationInfoEquality() 50 .that(it.first?.dumpToString()) in applicationInfoEquality() 76 val firstName = it.first?.packageName in packageInfoEquality() 91 .isEqualTo(it.first?.dumpToString()) in packageInfoEquality() 95 .isEqualTo(it.first?.applicationInfo?.dumpToString()) in packageInfoEquality() 97 val firstActivityNames = it.first?.activities?.map { it.name } ?: emptyList() in packageInfoEquality() 104 if (!it.first?.activities.isNullOrEmpty() && !it.second?.activities.isNullOrEmpty()) { in packageInfoEquality() 105 it.first?.activities?.zip(it.second?.activities!!)?.forEach { in packageInfoEquality() 108 .isEqualTo(it.first.dumpToString()) in packageInfoEquality() 112 val firstReceiverNames = it.first?.receivers?.map { it.name } ?: emptyList() in packageInfoEquality() [all …]
|
D | PackageParsingDeferErrorTest.kt | 77 val first = activities.first() in <lambda>() constant 78 assertThat(first.name).isEqualTo(TEST_ACTIVITY) in <lambda>() 79 val intents = first.intents in <lambda>() 81 assertThat(intents.first().hasCategory(TEST_CATEGORY)).isTrue() in <lambda>() 82 assertThat(intents.first().hasAction(TEST_ACTION)).isTrue() in <lambda>() 98 val first = activities.first() in <lambda>() constant 99 assertThat(first.name).isEqualTo(TEST_ACTIVITY) in <lambda>() 100 val intents = first.intents in <lambda>() 102 assertThat(intents.first().hasAction(TEST_ACTION)).isTrue() in <lambda>() 117 assertThat(permissions.first().name).isEqualTo(TEST_PERMISSION) in <lambda>()
|
/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 | 60 std::pair<S, T> first() const { in first() function 86 return high->first == x ? high->second : low->second; in findY() 88 return ((high->first - x) * low->second + (x - low->first) * high->second) in findY() 89 / (high->first - low->first); in findY() 95 const S interval = high->first - low->first; in findY() 98 if (mMemo.count(low->first) != 0) { in findY() 99 const S t = (x - low->first) / interval; in findY() 101 const auto &memo = mMemo[low->first]; in findY() 135 ? (low->second - low2->second) / (low->first - low2->first) in findY() 138 ? (high2->second - high->second) / (high2->first - high->first) in findY() [all …]
|
/frameworks/base/core/java/android/util/ |
D | Pair.java | 27 public final F first; field in Pair 36 public Pair(F first, S second) { in Pair() argument 37 this.first = first; in Pair() 55 return Objects.equals(p.first, first) && Objects.equals(p.second, second); in equals() 65 return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode()); in hashCode() 70 return "Pair{" + String.valueOf(first) + " " + String.valueOf(second) + "}"; in toString()
|
/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
D | ChipsTest.java | 184 String first = (String) mTokenizer.terminateToken("FIRST"); in testSanitizeBetween() local 188 mEditable.append(first + extra + second); in testSanitizeBetween() 189 int firstStart = mEditable.toString().indexOf(first); in testSanitizeBetween() 190 int firstEnd = firstStart + first.trim().length(); in testSanitizeBetween() 198 assertEquals(editableString.indexOf(first), firstStart); in testSanitizeBetween() 200 assertEquals(editableString, (first + second)); in testSanitizeBetween() 206 mEditable.append(first); in testSanitizeBetween() 207 firstStart = mEditable.toString().indexOf(first); in testSanitizeBetween() 208 firstEnd = firstStart + first.length(); in testSanitizeBetween() 211 assertEquals(mEditable.toString(), first); in testSanitizeBetween() local [all …]
|
/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().string(… 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/camera/libcameraservice/api2/ |
D | HeicEncoderInfoManager.cpp | 61 if (mHasHEIC && width >= mMinSizeHeic.first && in isSizeSupported() 62 height >= mMinSizeHeic.second && width <= mMaxSizeHeic.first && in isSizeSupported() 67 bool fullSizeSupportedByHevc = (width >= mMinSizeHevc.first && in isSizeSupported() 69 width <= mMaxSizeHevc.first && in isSizeSupported() 101 int32_t avgFps = (closestSize->second.first + closestSize->second.second)/2; in isSizeSupported() 103 (closestSize->first.first * closestSize->first.second); in isSizeSupported() 204 minSize->first = stoi(match[1]); in getCodecSizeRange() 206 maxSize->first = stoi(match[3]); in getCodecSizeRange() 208 if (minSize->first > maxSize->first || in getCodecSizeRange() 234 int32_t diff = abs(iter->first.first * iter->first.second - width * height); in findClosestSize() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | RoundRobinScheduler.java | 46 Filter first = null; in scheduleNextNode() local 51 if (first == null) { in scheduleNextNode() 53 first = filter; in scheduleNextNode() 65 if (first != null ) { in scheduleNextNode() 67 return first; in scheduleNextNode()
|
/frameworks/base/core/java/android/content/ |
D | ClipDescription.java | 308 boolean first = !toShortStringTypesOnly(b); in toShortString() 310 if (!first) { in toShortString() 313 first = false; in toShortString() 319 if (!first) { in toShortString() 322 first = false; in toShortString() 326 if (!first) { in toShortString() 329 first = false; in toShortString() 334 return !first; in toShortString() 339 boolean first = true; in toShortStringTypesOnly() 342 if (!first) { in toShortStringTypesOnly() [all …]
|
/frameworks/rs/ |
D | rsList.h | 30 List() : last(nullptr), first(&firstBuffer.data.typed), in List() 31 beginIterator(this, &firstBuffer, const_cast<T*>(first)), in List() 33 current = const_cast<T*>(first); in List() 38 List(InputIterator first, InputIterator last) : List() { in List() argument 39 for (InputIterator it = first; it != last; ++it) { in List() 109 bool empty() const { return current == first; } in empty() 111 T& front() const { return *const_cast<T*>(first); } in front() 122 const T* first; variable
|
/frameworks/base/telephony/java/android/telephony/emergency/ |
D | EmergencyNumber.java | 645 public static boolean areSameEmergencyNumbers(@NonNull EmergencyNumber first, in areSameEmergencyNumbers() argument 647 if (!first.getNumber().equals(second.getNumber())) { in areSameEmergencyNumbers() 650 if (!first.getCountryIso().equals(second.getCountryIso())) { in areSameEmergencyNumbers() 653 if (!first.getMnc().equals(second.getMnc())) { in areSameEmergencyNumbers() 656 if (first.getEmergencyServiceCategoryBitmask() in areSameEmergencyNumbers() 660 if (!first.getEmergencyUrns().equals(second.getEmergencyUrns())) { in areSameEmergencyNumbers() 663 if (first.getEmergencyCallRouting() != second.getEmergencyCallRouting()) { in areSameEmergencyNumbers() 668 if (first.isFromSources(EMERGENCY_NUMBER_SOURCE_TEST) in areSameEmergencyNumbers() 685 public static EmergencyNumber mergeSameEmergencyNumbers(@NonNull EmergencyNumber first, in mergeSameEmergencyNumbers() argument 687 if (areSameEmergencyNumbers(first, second)) { in mergeSameEmergencyNumbers() [all …]
|
/frameworks/compile/mclinker/lib/LD/ |
D | StubFactory.cpp | 52 if (islands.first == NULL) { in create() 64 stub = islands.first->findStub(prototype, pReloc); in create() 70 stub->applyFixup(pReloc, pBuilder, *islands.first); in create() 73 islands.first->addStub(prototype, pReloc, *stub); in create() 90 if (islands.first == NULL) { in create() 97 stub->applyFixup(pFragRef, pBuilder, *islands.first); in create() 100 islands.first->addStub(*stub); in create()
|
/frameworks/av/media/img_utils/include/img_utils/ |
D | Pair.h | 31 F first; 36 Pair(const Pair& o) : first(o.first), second(o.second) {} in Pair() 38 Pair(const F& f, const S& s) : first(f), second(s) {} in Pair()
|
/frameworks/base/libs/hwui/utils/ |
D | Pair.h | 27 F first; member 31 Pair(const Pair& o) : first(o.first), second(o.second) {} in Pair() 32 Pair(const F& f, const S& s) : first(f), second(s) {} in Pair() 34 inline const F& getFirst() const { return first; } in getFirst()
|
/frameworks/base/tools/aapt2/compile/ |
D | IdAssigner.cpp | 84 const ResourceName& existing_name = result.first->second; in Consume() 101 const ResourceName& pre_assigned_name = stable_id_entry.first; in Consume() 104 const ResourceName& existing_name = result.first->second; in Consume() 142 if (next_type_iter->first.package_id() != package->id.value()) { in Consume() 146 const uint8_t type_id = next_type_iter->first.type_id(); in Consume() 185 if (next_entry_iter->first.package_id() != package->id.value() || in Consume() 186 next_entry_iter->first.type_id() != type->id.value()) { in Consume() 190 const uint16_t entry_id = next_entry_iter->first.entry_id(); in Consume()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | GestureUtils.java | 26 private static boolean eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, in eventsWithinTimeAndDistanceSlop() argument 28 if (isTimedOut(first, second, timeout)) { in eventsWithinTimeAndDistanceSlop() 31 final double deltaMove = distance(first, second); in eventsWithinTimeAndDistanceSlop() 38 public static double distance(MotionEvent first, MotionEvent second) { in distance() argument 39 return MathUtils.dist(first.getX(), first.getY(), second.getX(), second.getY()); in distance()
|