Searched refs:first (Results 1 - 25 of 175) sorted by relevance

1234567

/frameworks/base/core/tests/coretests/src/android/view/accessibility/
H A DRecycleAccessibilityEventTest.java43 AccessibilityEvent first =
45 assertNotNull(first);
47 first.setClassName(CLASS_NAME);
48 first.setPackageName(PACKAGE_NAME);
49 first.getText().add(TEXT);
50 first.setFromIndex(FROM_INDEX);
51 first.setAddedCount(ADDED_COUNT);
52 first.setRemovedCount(REMOVED_COUNT);
53 first.setChecked(true);
54 first
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DSumPathEffect.java23 * (e.g. first(path) + second(path))
25 public SumPathEffect(PathEffect first, PathEffect second) { argument
26 native_instance = nativeCreate(first.native_instance,
30 private static native int nativeCreate(int first, int second); argument
/frameworks/base/core/java/android/util/
H A DPair.java27 public final F first; field in class:Pair
33 * @param first the first object in the Pair
36 public Pair(F first, S second) { argument
37 this.first = first;
55 return Objects.equal(p.first, first) && Objects.equal(p.second, second);
65 return (first == null ? 0 : first
[all...]
H A DTimingLogger.java137 final long first = mSplits.get(0);
138 long now = first;
146 Log.d(mTag, mLabel + ": end, " + (now - first) + " ms");
/frameworks/ex/variablespeed/jni/
H A Dmacros.h31 ForwardIterator min_element(ForwardIterator first, ForwardIterator last) { argument
32 ForwardIterator lowest = first;
33 if (first == last) return last;
34 while (++first != last)
35 if (*first < *lowest)
36 lowest = first;
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DRoundRobinScheduler.java46 Filter first = null;
51 if (first == null) {
52 // store the first available filter
53 first = filter;
65 if (first != null ) {
67 return first;
H A DOneShotScheduler.java54 Filter first = null;
55 // return the first filter that is not scheduled before.
69 if (first == filter) {
72 // save the first scheduled one
73 if (first == null) first = filter;
/frameworks/native/opengl/libagl/
H A DTokenizer.cpp43 if (!mRanges.size() || mRanges[0].first) {
48 // just extend the first run
50 uint32_t token = run.first + run.length;
76 if ((token >= run.first) && (token < run.first+run.length)) {
79 if ((token == run.first) || (token == run.first+run.length-1)) {
80 if (token == run.first) {
81 run.first += 1;
91 new_run.first
[all...]
H A DTokenizer.h45 run_t(uint32_t f, uint32_t l) : first(f), length(l) {}
46 uint32_t first; member in struct:android::Tokenizer::run_t
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
H A DListItemFocusablesCloseTest.java49 final LinearLayout first = (LinearLayout) mListView.getSelectedView();
51 assertEquals("first item should be at top of screen",
53 first.getTop());
54 assertTrue("first button of first list item should have focus",
55 first.getChildAt(0).isFocused());
57 first.getHeight() < mListView.getHeight());
60 assertTrue("first button of second item should be on screen",
67 final LinearLayout first = (LinearLayout) mListView.getSelectedView();
68 final int topOfFirstItemBefore = first
[all...]
H A DListWithScreenOfNoSelectablesTest.java42 assertTrue("expecting first position to be selectable",
57 // go down until first (and only selectable) item is off screen
58 View first = mListView.getChildAt(0);
59 while (first.getParent() != null) {
81 // go down untile first (and only selectable) item is off screen
82 View first = mListView.getChildAt(0);
83 while (first.getParent() != null) {
93 assertEquals("first visible position", 0, mListView.getFirstVisiblePosition());
/frameworks/base/core/java/android/text/style/
H A DLeadingMarginSpan.java40 * @param first true if the request is for the first line of a paragraph,
44 public int getLeadingMargin(boolean first); argument
61 * @param first true if this is the first line of its paragraph
68 boolean first, Layout layout);
74 * this object is attached that the "first line of paragraph" margin
80 * attached that the "first line" margin will apply to.
81 * Note that if this returns N, the first N lines of the region,
82 * not the first
64 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
102 Standard(int first, int rest) argument
133 getLeadingMargin(boolean first) argument
137 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
[all...]
H A DIconMarginSpan.java38 public int getLeadingMargin(boolean first) { argument
45 boolean first, Layout layout) {
42 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
/frameworks/base/test-runner/src/android/test/
H A DViewAsserts.java113 * @param first The first view
116 static public void assertBaselineAligned(View first, View second) { argument
118 first.getLocationOnScreen(xy);
119 int firstTop = xy[1] + first.getBaseline();
131 * @param first The first view
134 static public void assertRightAligned(View first, View second) { argument
136 first.getLocationOnScreen(xy);
137 int firstRight = xy[0] + first
153 assertRightAligned(View first, View second, int margin) argument
171 assertLeftAligned(View first, View second) argument
190 assertLeftAligned(View first, View second, int margin) argument
208 assertBottomAligned(View first, View second) argument
227 assertBottomAligned(View first, View second, int margin) argument
245 assertTopAligned(View first, View second) argument
264 assertTopAligned(View first, View second, int margin) argument
[all...]
/frameworks/base/services/java/com/android/server/accessibility/
H A DGestureUtils.java26 private static boolean eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, argument
28 if (isTimedOut(first, second, timeout)) {
31 final double deltaMove = computeDistance(first, second, actionIndex);
38 public static double computeDistance(MotionEvent first, MotionEvent second, int pointerIndex) { argument
39 return MathUtils.dist(first.getX(pointerIndex), first.getY(pointerIndex),
48 public static boolean isSamePointerContext(MotionEvent first, MotionEvent second) { argument
49 return (first.getPointerIdBits() == second.getPointerIdBits()
50 && first.getPointerId(first
[all...]
/frameworks/ex/chips/tests/src/com/android/ex/chips/
H A DChipsTest.java174 String first = (String) mTokenizer.terminateToken("FIRST");
178 mEditable.append(first + extra + second);
179 int firstStart = mEditable.toString().indexOf(first);
180 int firstEnd = firstStart + first.trim().length();
188 assertEquals(editableString.indexOf(first), firstStart);
190 assertEquals(editableString, (first + second));
196 mEditable.append(first);
197 firstStart = mEditable.toString().indexOf(first);
198 firstEnd = firstStart + first.length();
201 assertEquals(mEditable.toString(), first);
[all...]
/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java128 * @param first Set to true if this is the first time a style is being
131 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
136 final boolean first = mTheme == null;
137 if (first) {
144 onApplyThemeResource(mTheme, mThemeResource, first);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DSumPathEffect_Delegate.java65 /*package*/ static int nativeCreate(int first, int second) { argument
/frameworks/compile/libbcc/lib/Renderscript/
H A DRSInfoWriter.cpp39 pResult.id = pInfo.getStringIdxInPool(pItem->first);
45 pItem->first);
51 pItem->first);
63 pResult.key = pInfo.getStringIdxInPool(pItem->first);
67 ALOGE("RS pragma list contains invalid string '%s' for key.", pItem->first);
126 pResult.name = pInfo.getStringIdxInPool(pItem->first);
131 pItem->first);
H A DRSInfo.cpp105 // Built-in dependencies always go first.
122 PRINT_DEPENDENCY("cache - ", cache_libbcc_dep.first,
132 PRINT_DEPENDENCY("cache - ", cache_libRS_dep.first,
143 PRINT_DEPENDENCY("cache - ", cache_libclcore_dep.first,
155 PRINT_DEPENDENCY("cache - ", cache_libclcore_neon_dep.first,
165 if ((::strcmp(pDeps[i].first, cache_dep.first) != 0) ||
170 PRINT_DEPENDENCY("given - ", pDeps[i].first, pDeps[i].second);
171 PRINT_DEPENDENCY("cache - ", cache_dep.first, cache_dep.second);
254 PRINT_DEPENDENCY("", dep_iter->first, dep_ite
[all...]
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
H A Dsparse_weight_vector.cpp55 w_[iter->first] += ((multiplier * iter->second) / w1.normalizer_
69 w_[iter->first] += ((multiplier * iter->second * iter->second) /
85 w_[iter->first] += ((multiplier * sqrt(w1.normalizer_)) /
103 w_[iter->first] += ((multiplier * iter->second) / w1.normalizer_
105 bool is_min_bounded = GetValue(wmin_, iter->first, &min_bound);
107 if ((w_[iter->first] / normalizer_) < min_bound) {
108 w_[iter->first] = min_bound*normalizer_;
112 bool is_max_bounded = GetValue(wmax_, iter->first, &max_bound);
114 if ((w_[iter->first] / normalizer_) > max_bound)
115 w_[iter->first]
[all...]
/frameworks/native/include/utils/
H A DList.h189 * Return the first element or one past the last element. The
222 void insert(iterator posn, const_iterator first, const_iterator last) { argument
223 for ( ; first != last; ++first)
224 insert(posn, *first);
238 iterator erase(iterator first, iterator last) { argument
239 while (first != last)
240 erase(first++); // don't erase than incr later!
259 * Measure the distance between two iterators. On exist, "first"
274 _ListIterator<U, CL> first, _ListIterato
273 distance( _ListIterator<U, CL> first, _ListIterator<U, CR> last) const argument
[all...]
/frameworks/base/core/java/android/content/
H A DClipDescription.java204 boolean first = true;
206 if (!first) {
209 first = false;
213 if (!first) {
216 first = false;
221 return !first;
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DPropertyNode.java165 boolean first = true;
167 if (first) {
168 first = false;
179 first = true;
181 if (first) {
182 first = false;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DarmVCM4P2_PutVLCBits.c108 OMX_U8 last = 0, first = 1, fMode; local
126 if (first == 0)
161 first = 0;

Completed in 322 milliseconds

1234567