Home
last modified time | relevance | path

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

12345678910>>...35

/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/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/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/graphics/java/android/graphics/
DAtlas.java263 Cell first = new Cell(); in SlicePolicy() local
264 first.x = first.y = mPadding; in SlicePolicy()
265 first.width = width - 2 * mPadding; in SlicePolicy()
266 first.height = height - 2 * mPadding; in SlicePolicy()
268 mRoot.next = first; in SlicePolicy()
366 Cell first = new Cell(); in insert() local
369 first.x = cell.x + width + mPadding; in insert()
370 first.y = cell.y; in insert()
371 first.width = deltaWidth - mPadding; in insert()
379 first.height = height; in insert()
[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/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/support/v4/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()
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
DImageCompare.java25 byte[] first = loadImageByteArray(file1); in compareImage()
28 for (int i = 0; i < first.length; i++) { in compareImage()
29 int v1 = 0xFF & first[i]; in compareImage()
53 byte[] first = loadBitmapByteArray(bitmap1); in compareBitmap()
56 int loopCount = first.length > second.length ? second.length : first.length; in compareBitmap()
61 int v1 = 0xFF & first[i]; in compareBitmap()
72 result.diffPercent = ((float)diffCount)/first.length; in compareBitmap()
73 result.aveDiff = ((float)diffSum)/first.length; in compareBitmap()
110 byte[] first = stream1.toByteArray(); in printWrongIndex()
120 byte[] difference = new byte[first.length]; in printWrongIndex()
[all …]
/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/base/tools/aapt2/link/
DPrivateAttributeMover.cpp36 auto first = newEnd; in moveIf() local
37 ++first; in moveIf()
39 for (; first != last; ++first) { in moveIf()
40 if (bool(pred(*first))) { in moveIf()
42 *result = std::move(*first); in moveIf()
47 *newEnd = std::move(*first); in moveIf()
/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/ml/bordeaux/learning/stochastic_linear_ranker/native/
Dsparse_weight_vector.cpp55 w_[iter->first] += ((multiplier * iter->second) / w1.normalizer_ in AdditiveWeightUpdate()
69 w_[iter->first] += ((multiplier * iter->second * iter->second) / in AdditiveSquaredWeightUpdate()
85 w_[iter->first] += ((multiplier * sqrt(w1.normalizer_)) / in AdditiveInvSqrtWeightUpdate()
103 w_[iter->first] += ((multiplier * iter->second) / w1.normalizer_ in AdditiveWeightUpdateBounded()
105 bool is_min_bounded = GetValue(wmin_, iter->first, &min_bound); in AdditiveWeightUpdateBounded()
107 if ((w_[iter->first] / normalizer_) < min_bound) { in AdditiveWeightUpdateBounded()
108 w_[iter->first] = min_bound*normalizer_; in AdditiveWeightUpdateBounded()
112 bool is_max_bounded = GetValue(wmax_, iter->first, &max_bound); in AdditiveWeightUpdateBounded()
114 if ((w_[iter->first] / normalizer_) > max_bound) in AdditiveWeightUpdateBounded()
115 w_[iter->first] = max_bound*normalizer_; in AdditiveWeightUpdateBounded()
[all …]
/frameworks/base/core/java/android/content/
DClipDescription.java255 boolean first = !toShortStringTypesOnly(b); in toShortString()
257 if (!first) { in toShortString()
260 first = false; in toShortString()
266 if (!first) { in toShortString()
269 first = false; in toShortString()
272 return !first; in toShortString()
277 boolean first = true; in toShortStringTypesOnly()
279 if (!first) { in toShortStringTypesOnly()
282 first = false; in toShortStringTypesOnly()
285 return !first; in toShortStringTypesOnly()
/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()
70 uint32_t diff = entry.first.diff(config); in match()
79 memcmp(config.language, entry.first.language, sizeof(config.language)) == 0) { in match()
88 config.smallestScreenWidthDp < entry.first.smallestScreenWidthDp) { in match()
/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/core/java/com/android/server/am/
DLaunchingTaskPositioner.java280 private static final boolean closeLeftTopCorner(Rect first, Rect second) { in closeLeftTopCorner() argument
281 return Math.abs(first.left - second.left) < BOUNDS_CONFLICT_MIN_DISTANCE in closeLeftTopCorner()
282 && Math.abs(first.top - second.top) < BOUNDS_CONFLICT_MIN_DISTANCE; in closeLeftTopCorner()
285 private static final boolean closeRightTopCorner(Rect first, Rect second) { in closeRightTopCorner() argument
286 return Math.abs(first.right - second.right) < BOUNDS_CONFLICT_MIN_DISTANCE in closeRightTopCorner()
287 && Math.abs(first.top - second.top) < BOUNDS_CONFLICT_MIN_DISTANCE; in closeRightTopCorner()
290 private static final boolean closeLeftBottomCorner(Rect first, Rect second) { in closeLeftBottomCorner() argument
291 return Math.abs(first.left - second.left) < BOUNDS_CONFLICT_MIN_DISTANCE in closeLeftBottomCorner()
292 && Math.abs(first.bottom - second.bottom) < BOUNDS_CONFLICT_MIN_DISTANCE; in closeLeftBottomCorner()
295 private static final boolean closeRightBottomCorner(Rect first, Rect second) { in closeRightBottomCorner() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java269 private void assertTasksEqual(JobInfo first, JobInfo second) { in assertTasksEqual() argument
270 assertEquals("Different task ids.", first.getId(), second.getId()); in assertTasksEqual()
271 assertEquals("Different components.", first.getService(), second.getService()); in assertTasksEqual()
272 assertEquals("Different periodic status.", first.isPeriodic(), second.isPeriodic()); in assertTasksEqual()
273 assertEquals("Different period.", first.getIntervalMillis(), second.getIntervalMillis()); in assertTasksEqual()
274 assertEquals("Different inital backoff.", first.getInitialBackoffMillis(), in assertTasksEqual()
276 assertEquals("Different backoff policy.", first.getBackoffPolicy(), in assertTasksEqual()
279 assertEquals("Invalid charging constraint.", first.isRequireCharging(), in assertTasksEqual()
281 assertEquals("Invalid idle constraint.", first.isRequireDeviceIdle(), in assertTasksEqual()
284 first.getNetworkType() == JobInfo.NETWORK_TYPE_UNMETERED, in assertTasksEqual()
[all …]
/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/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/volley/src/test/java/com/android/volley/toolbox/
DDiskBasedCacheTest.java45 CacheHeader first = new CacheHeader("my-magical-key", e); in cacheHeaderSerialization() local
47 first.writeHeader(baos); in cacheHeaderSerialization()
51 assertEquals(first.key, second.key); in cacheHeaderSerialization()
52 assertEquals(first.serverDate, second.serverDate); in cacheHeaderSerialization()
53 assertEquals(first.lastModified, second.lastModified); in cacheHeaderSerialization()
54 assertEquals(first.ttl, second.ttl); in cacheHeaderSerialization()
55 assertEquals(first.softTtl, second.softTtl); in cacheHeaderSerialization()
56 assertEquals(first.etag, second.etag); in cacheHeaderSerialization()
57 assertEquals(first.responseHeaders, second.responseHeaders); in cacheHeaderSerialization()
/frameworks/av/media/libeffects/loudness/common/core/
Dbyte_swapper.h44 char *first = &new_val, *last = first + kValSize - 1, x; in Swap() local
45 for (; first < last; ++first, --last) { in Swap()
47 *last = *first; in Swap()
48 *first = x; in Swap()

12345678910>>...35