Home
last modified time | relevance | path

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

12345678910>>...26

/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/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DGuidedStepSupportFragmentTest.java61 GuidedStepTestSupportFragment.Provider first = mockProvider(firstFragmentName); in nextAndBack() local
69 }).when(first).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack()
82 }).when(first).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack()
87 verify(first, times(1)).onCreate(nullable(Bundle.class)); in nextAndBack()
88 verify(first, times(1)).onCreateGuidance(nullable(Bundle.class)); in nextAndBack()
89 verify(first, times(1)).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack()
90 verify(first, times(1)).onCreateButtonActions(any(List.class), nullable(Bundle.class)); in nextAndBack()
91 verify(first, times(1)).onCreateView(any(LayoutInflater.class), any(ViewGroup.class), in nextAndBack()
93 verify(first, times(1)).onViewStateRestored(nullable(Bundle.class)); in nextAndBack()
94 verify(first, times(1)).onStart(); in nextAndBack()
[all …]
DGuidedStepFragmentTest.java58 GuidedStepTestFragment.Provider first = mockProvider(firstFragmentName); in nextAndBack() local
66 }).when(first).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack()
79 }).when(first).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack()
84 verify(first, times(1)).onCreate(nullable(Bundle.class)); in nextAndBack()
85 verify(first, times(1)).onCreateGuidance(nullable(Bundle.class)); in nextAndBack()
86 verify(first, times(1)).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack()
87 verify(first, times(1)).onCreateButtonActions(any(List.class), nullable(Bundle.class)); in nextAndBack()
88 verify(first, times(1)).onCreateView(any(LayoutInflater.class), any(ViewGroup.class), in nextAndBack()
90 verify(first, times(1)).onViewStateRestored(nullable(Bundle.class)); in nextAndBack()
91 verify(first, times(1)).onStart(); in nextAndBack()
[all …]
/frameworks/native/opengl/libagl/
DTokenizer.cpp43 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/
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/av/include/media/
DInterpolator.h60 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/
DListItemFocusablesCloseTest.java49 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testPreconditions() local
53 first.getTop()); in testPreconditions()
55 first.getChildAt(0).isFocused()); in testPreconditions()
57 first.getHeight() < mListView.getHeight()); in testPreconditions()
67 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testChangeFocusWithinItem() local
68 final int topOfFirstItemBefore = first.getTop(); in testChangeFocusWithinItem()
71 first.getChildAt(2).isFocused()); in testChangeFocusWithinItem()
75 topOfFirstItemBefore, first.getTop()); in testChangeFocusWithinItem()
80 first.getChildAt(0).isFocused()); in testChangeFocusWithinItem()
82 topOfFirstItemBefore, first.getTop()); in testChangeFocusWithinItem()
[all …]
/frameworks/base/core/java/android/util/
DPair.java27 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/support/compat/java/android/support/v4/util/
DPair.java25 public final F first; field in Pair
34 public Pair(F first, S second) { in Pair() argument
35 this.first = first; in Pair()
53 return objectsEqual(p.first, first) && objectsEqual(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/accessibility/java/com/android/server/accessibility/
DGestureUtils.java26 private static boolean eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, in eventsWithinTimeAndDistanceSlop() argument
28 if (isTimedOut(first, second, timeout)) { in eventsWithinTimeAndDistanceSlop()
31 final double deltaMove = computeDistance(first, second, actionIndex); in eventsWithinTimeAndDistanceSlop()
38 public static double computeDistance(MotionEvent first, MotionEvent second, int pointerIndex) { in computeDistance() argument
39 return MathUtils.dist(first.getX(pointerIndex), first.getY(pointerIndex), in computeDistance()
48 public static boolean isSamePointerContext(MotionEvent first, MotionEvent second) { in isSamePointerContext() argument
49 return (first.getPointerIdBits() == second.getPointerIdBits() in isSamePointerContext()
50 && first.getPointerId(first.getActionIndex()) in isSamePointerContext()
/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/av/media/libnbaio/
DPerformanceAnalysis.cpp133 timestamp startingTs = mRecentHists[0].first; in processAndFlushRecentHists()
139 if (deltaMs(startingTs, shortHist.first) >= kMaxHistTimespanMs) { in processAndFlushRecentHists()
142 startingTs = shortHist.first; in processAndFlushRecentHists()
152 buckets[countPair.first] += countPair.second; in processAndFlushRecentHists()
176 [](auto &a, auto &b){return a + b.first;}) / mOutlierData.size(); in detectPeaks()
185 mPeakDetectorMean = static_cast<double>(start->first); in detectPeaks()
192 if ((fabs(it->first - mPeakDetectorMean) < kStddevThreshold * mPeakDetectorSd) || in detectPeaks()
194 (mPeakDetectorSd == 0 && fabs(it->first - mPeakDetectorMean) < kTypicalDiff)) { in detectPeaks()
200 [](auto &a, auto &b){return a + b.first;}) / kN; in detectPeaks()
202 [=](auto &a, auto &b){ return a + sqr(b.first - mPeakDetectorMean);})) / in detectPeaks()
[all …]
/frameworks/support/lifecycle/extensions/src/test/java/android/arch/lifecycle/
DTransformationsTest.java75 final LiveData<String> first = new MutableLiveData<>(); in testSwitchMap() local
82 return first; in testSwitchMap()
92 first.setValue("first"); in testSwitchMap()
101 first.setValue("failure"); in testSwitchMap()
108 final LiveData<String> first = new MutableLiveData<>(); in testSwitchMap2() local
115 return first; in testSwitchMap2()
128 first.setValue("fi"); in testSwitchMap2()
130 first.setValue("rst"); in testSwitchMap2()
139 first.setValue("failure"); in testSwitchMap2()
146 final LiveData<String> first = new MutableLiveData<>(); in testNoRedispatchSwitchMap() 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/base/core/java/android/content/
DClipDescription.java297 boolean first = !toShortStringTypesOnly(b); in toShortString()
299 if (!first) { in toShortString()
302 first = false; in toShortString()
308 if (!first) { in toShortString()
311 first = false; in toShortString()
315 if (!first) { in toShortString()
318 first = false; in toShortString()
323 return !first; in toShortString()
328 boolean first = true; in toShortStringTypesOnly()
331 if (!first) { in toShortStringTypesOnly()
[all …]
/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/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/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/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java273 private void assertTasksEqual(JobInfo first, JobInfo second) { in assertTasksEqual() argument
274 assertEquals("Different task ids.", first.getId(), second.getId()); in assertTasksEqual()
275 assertEquals("Different components.", first.getService(), second.getService()); in assertTasksEqual()
276 assertEquals("Different periodic status.", first.isPeriodic(), second.isPeriodic()); in assertTasksEqual()
277 assertEquals("Different period.", first.getIntervalMillis(), second.getIntervalMillis()); in assertTasksEqual()
278 assertEquals("Different inital backoff.", first.getInitialBackoffMillis(), in assertTasksEqual()
280 assertEquals("Different backoff policy.", first.getBackoffPolicy(), in assertTasksEqual()
283 assertEquals("Invalid charging constraint.", first.isRequireCharging(), in assertTasksEqual()
285 assertEquals("Invalid battery not low constraint.", first.isRequireBatteryNotLow(), in assertTasksEqual()
287 assertEquals("Invalid idle constraint.", first.isRequireDeviceIdle(), in assertTasksEqual()
[all …]
/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/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()
35 return first; in getFirst()
/frameworks/base/tools/aapt2/compile/
DIdAssigner.cpp84 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()

12345678910>>...26