Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 969) sorted by relevance

12345678910>>...39

/frameworks/compile/mclinker/include/mcld/Support/
DCXADemangle.tcc34 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/
DRecycleAccessibilityEventTest.java43 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/
DSpannedStringNoCopyTest.java38 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 …]
DSpannableStringNoCopyTest.java38 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/
DNotificationUiAdjustment.java83 @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/
DViewAsserts.java124 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/
DAndroidPackageParsingEquivalenceTest.kt42 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 …]
DPackageParsingDeferErrorTest.kt75 val first = activities.first() in <lambda>() constant
76 assertThat(first.name).isEqualTo(TEST_ACTIVITY) in <lambda>()
77 val intents = first.intents in <lambda>()
79 assertThat(intents.first().hasCategory(TEST_CATEGORY)).isTrue() in <lambda>()
80 assertThat(intents.first().hasAction(TEST_ACTION)).isTrue() in <lambda>()
96 val first = activities.first() in <lambda>() constant
97 assertThat(first.name).isEqualTo(TEST_ACTIVITY) in <lambda>()
98 val intents = first.intents in <lambda>()
100 assertThat(intents.first().hasAction(TEST_ACTION)).isTrue() in <lambda>()
115 assertThat(permissions.first().name).isEqualTo(TEST_PERMISSION) in <lambda>()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListItemFocusablesCloseTest.java50 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/
DInterpolator.h54 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/
DPair.java29 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()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationCoreApiTest.kt65 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/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java184 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/tools/aapt2/link/
DPrivateAttributeMover.cpp38 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/core/java/android/text/style/
DLeadingMarginSpan.java47 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/aapt/
DResourceFilter.cpp33 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/media/libeffects/preprocessing/tests/
Dcorrelation.cpp130 for (unsigned i = 0; i < pairAutoCorr1.first.size() - 1; i++) { in main()
131 if (pairAutoCorr1.first[i + 1] - pairAutoCorr1.first[i] != in main()
132 pairAutoCorr2.first[i + 1] - pairAutoCorr2.first[i]) { in main()
152 for (unsigned i = 0; i < pairCrossCorr.first.size() - 1; i++) { in main()
153 if (pairAutoCorr1.first[i + 1] - pairAutoCorr1.first[i] != in main()
154 pairCrossCorr.first[i + 1] - pairCrossCorr.first[i]) { in main()
/frameworks/av/services/camera/libcameraservice/api2/
DHeicEncoderInfoManager.cpp61 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/
DRoundRobinScheduler.java46 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/rs/
DrsList.h30 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/
DEmergencyNumber.java645 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/
DStubFactory.cpp52 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/
DPair.h31 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/native/libs/renderengine/skia/debug/
DSkiaMemoryReporter.cpp39 if (SkStrContains(resourceName, resource.first)) { in mapName()
94 auto totalResult = resourceValues.find(sizeResult->first); in processCurrentElement()
106 results.insert({resourceName, {{sizeResult->first, sizeResult->second}}}); in processCurrentElement()
144 StringAppendF(&log, " %s: %.2f %s (%d %s)\n", categoryItem->first.c_str(), in logOutput()
151 const char* categoryMatch = mapName(individualItem.first.c_str()); in logOutput()
155 StringAppendF(&log, " %s: size[%.2f %s]", individualItem.first.c_str(), in logOutput()
159 if (strcmp("size", itemValues.first) == 0) { in logOutput()
164 StringAppendF(&log, " %s[%s]", itemValues.first, in logOutput()
167 StringAppendF(&log, " %s[%.2f %s]", itemValues.first, in logOutput()
/frameworks/base/libs/hwui/utils/
DPair.h27 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()

12345678910>>...39