/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 | 76 @NonNull List<Notification.Action> first, @NonNull List<Notification.Action> second) { in areDifferent() 77 if (first == second) { in areDifferent() 80 if (first == null || second == null) { in areDifferent() 83 if (first.size() != second.size()) { in areDifferent() 86 for (int i = 0; i < first.size(); i++) { in areDifferent() 87 Notification.Action firstAction = first.get(i); in areDifferent() 109 private static boolean areDifferent(@Nullable Icon first, @Nullable Icon second) { in areDifferent() argument 110 if (first == second) { in areDifferent() 113 if (first == null || second == null) { in areDifferent() 116 return !first.sameAs(second); in areDifferent() [all …]
|
/frameworks/native/opengl/libagl/ |
D | Tokenizer.cpp | 43 if (!mRanges.size() || mRanges[0].first) { in acquire() 50 uint32_t token = run.first + run.length; in acquire() 76 if ((token >= run.first) && (token < run.first+run.length)) { in release() 79 if ((token == run.first) || (token == run.first+run.length-1)) { in release() 80 if (token == run.first) { in release() 81 run.first += 1; in release() 91 new_run.first = token+1; in release() 92 new_run.length = run.first+run.length - new_run.first; in release() 93 run.length = token - run.first; in release() 114 if (token < curr->first) c = 1; in _indexOrderOf() [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/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/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/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/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() 99 int32_t avgFps = (closestSize->second.first + closestSize->second.second)/2; in isSizeSupported() 101 (closestSize->first.first * closestSize->first.second); in isSizeSupported() 202 minSize->first = stoi(match[1]); in getCodecSizeRange() 204 maxSize->first = stoi(match[3]); in getCodecSizeRange() 206 if (minSize->first > maxSize->first || in getCodecSizeRange() 232 int32_t diff = abs(iter->first.first * iter->first.second - width * height); in findClosestSize() [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/native/services/surfaceflinger/tests/unittests/ |
D | LayerHistoryTest.cpp | 52 EXPECT_FLOAT_EQ(0.f, mLayerHistory->getDesiredRefreshRateAndHDR().first); in TEST_F() 60 EXPECT_FLOAT_EQ(MAX_REFRESH_RATE, mLayerHistory->getDesiredRefreshRateAndHDR().first); in TEST_F() 71 EXPECT_FLOAT_EQ(0.0f, mLayerHistory->getDesiredRefreshRateAndHDR().first); in TEST_F() 75 EXPECT_FLOAT_EQ(0.0f, mLayerHistory->getDesiredRefreshRateAndHDR().first); in TEST_F() 90 EXPECT_FLOAT_EQ(30.f, mLayerHistory->getDesiredRefreshRateAndHDR().first); in TEST_F() 108 EXPECT_FLOAT_EQ(MAX_REFRESH_RATE, mLayerHistory->getDesiredRefreshRateAndHDR().first); in TEST_F() 115 EXPECT_FLOAT_EQ(MAX_REFRESH_RATE, mLayerHistory->getDesiredRefreshRateAndHDR().first); in TEST_F() 121 EXPECT_FLOAT_EQ(MAX_REFRESH_RATE, mLayerHistory->getDesiredRefreshRateAndHDR().first); in TEST_F() 128 EXPECT_FLOAT_EQ(MAX_REFRESH_RATE, mLayerHistory->getDesiredRefreshRateAndHDR().first); in TEST_F() 135 EXPECT_FLOAT_EQ(30.f, mLayerHistory->getDesiredRefreshRateAndHDR().first); in TEST_F()
|
/frameworks/base/core/java/android/content/ |
D | ClipDescription.java | 298 boolean first = !toShortStringTypesOnly(b); in toShortString() 300 if (!first) { in toShortString() 303 first = false; in toShortString() 309 if (!first) { in toShortString() 312 first = false; in toShortString() 316 if (!first) { in toShortString() 319 first = false; in toShortString() 324 return !first; in toShortString() 329 boolean first = true; in toShortStringTypesOnly() 332 if (!first) { in toShortStringTypesOnly() [all …]
|
/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/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/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/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/base/services/accessibility/java/com/android/server/accessibility/ |
D | GestureUtils.java | 22 private static boolean eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, in eventsWithinTimeAndDistanceSlop() argument 24 if (isTimedOut(first, second, timeout)) { in eventsWithinTimeAndDistanceSlop() 27 final double deltaMove = distance(first, second); in eventsWithinTimeAndDistanceSlop() 34 public static double distance(MotionEvent first, MotionEvent second) { in distance() argument 35 return MathUtils.dist(first.getX(), first.getY(), second.getX(), second.getY()); in distance()
|
/frameworks/base/cmds/statsd/src/packages/ |
D | UidMap.cpp | 98 if (kv.first.first == uid && !kv.second.deleted) { in getAppNamesFromUidLocked() 99 names.insert(returnNormalized ? normalizeAppName(kv.first.second) : kv.first.second); in getAppNamesFromUidLocked() 127 deletedApps[kv.first] = kv.second; in updateMap() 140 auto mMapIt = mMap.find(kv.first); in updateMap() 143 mMap[kv.first] = kv.second; in updateMap() 331 interestingUids.find(kv.first.first) == interestingUids.end()) { in writeUidMapSnapshotLocked() 337 str_set->insert(kv.first.second); in writeUidMapSnapshotLocked() 339 (long long)Hash64(kv.first.second)); in writeUidMapSnapshotLocked() 351 proto->write(FIELD_TYPE_STRING | FIELD_ID_SNAPSHOT_PACKAGE_NAME, kv.first.second); in writeUidMapSnapshotLocked() 364 proto->write(FIELD_TYPE_INT32 | FIELD_ID_SNAPSHOT_PACKAGE_UID, kv.first.first); in writeUidMapSnapshotLocked() [all …]
|
/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/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()
|