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

1234567891011

/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 long nativeCreate(long first, long second); argument
H A DAtlas.java269 // The entire atlas is empty at first, minus padding
270 Cell first = new Cell();
271 first.x = first.y = mPadding;
272 first.width = width - 2 * mPadding;
273 first.height = height - 2 * mPadding;
275 mRoot.next = first;
390 Cell first = new Cell();
393 first.x = cell.x + width + mPadding;
394 first
[all...]
/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/support/v4/java/android/support/v4/util/
H A DPair.java25 public final F first; field in class:Pair
31 * @param first the first object in the Pair
34 public Pair(F first, S second) { argument
35 this.first = first;
53 return objectsEqual(p.first, first) && objectsEqual(p.second, second);
67 return (first == null ? 0 : first
[all...]
/frameworks/av/media/img_utils/include/img_utils/
H A DPair.h31 F first; member in class:android::img_utils::Pair
36 Pair(const Pair& o) : first(o.first), second(o.second) {}
38 Pair(const F& f, const S& s) : first(f), second(s) {}
/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.java53 Filter first = null;
54 // return the first filter that is not scheduled before.
68 if (first == filter) {
71 // save the first scheduled one
72 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.java32 * LeadingMarginSpans should be attached from the first character to the last
43 * @param first true if the request is for the first line of a paragraph,
47 public int getLeadingMargin(boolean first); argument
64 * @param first true if this is the first line of its paragraph
71 boolean first, Layout layout);
77 * this object is attached that the "first line of paragraph" margin width
82 * adjusting the number of lines to which the first line margin is applied.
90 * attached that the "first lin
67 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
109 Standard(int first, int rest) argument
140 getLeadingMargin(boolean first) argument
144 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...]
/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/accessibility/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/base/libs/hwui/utils/
H A DPair.h25 F first; member in struct:android::uirenderer::Pair
29 Pair(const Pair& o) : first(o.first), second(o.second) { }
30 Pair(const F& f, const S& s) : first(f), second(s) { }
33 return first;
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
H A DSocketConnect.java41 public static void connect(Socket first, Socket second) { argument
43 SocketConnect sc1 = new SocketConnect(first, second);
44 SocketConnect sc2 = new SocketConnect(second, first);
/frameworks/base/tools/aapt/
H A DResourceFilter.cpp33 val.writeTo(&entry.first);
34 } else if (!AaptConfig::parse(part, &entry.first)) {
39 entry.second = mDefault.diff(entry.first);
46 fprintf(stderr, "warning: ignoring flag -c %s. Use --preferred-density instead.\n", entry.first.toString().string());
47 entry.first.density = 0;
70 uint32_t diff = entry.first.diff(config);
79 memcmp(config.language, entry.first.language, sizeof(config.language)) == 0) {
88 config.smallestScreenWidthDp < entry.first.smallestScreenWidthDp) {
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
H A DJobStoreTest.java149 private void assertTasksEqual(JobInfo first, JobInfo second) { argument
150 assertEquals("Different task ids.", first.getId(), second.getId());
151 assertEquals("Different components.", first.getService(), second.getService());
152 assertEquals("Different periodic status.", first.isPeriodic(), second.isPeriodic());
153 assertEquals("Different period.", first.getIntervalMillis(), second.getIntervalMillis());
154 assertEquals("Different inital backoff.", first.getInitialBackoffMillis(),
156 assertEquals("Different backoff policy.", first.getBackoffPolicy(),
159 assertEquals("Invalid charging constraint.", first.isRequireCharging(),
161 assertEquals("Invalid idle constraint.", first.isRequireDeviceIdle(),
164 first
[all...]
/frameworks/av/media/libeffects/loudness/common/core/
H A Dbyte_swapper.h44 char *first = &new_val, *last = first + kValSize - 1, x; local
45 for (; first < last; ++first, --last) {
47 *last = *first;
48 *first = x;
/frameworks/opt/chips/tests/src/com/android/ex/chips/
H A DChipsTest.java184 String first = (String) mTokenizer.terminateToken("FIRST");
188 mEditable.append(first + extra + second);
189 int firstStart = mEditable.toString().indexOf(first);
190 int firstEnd = firstStart + first.trim().length();
198 assertEquals(editableString.indexOf(first), firstStart);
200 assertEquals(editableString, (first + second));
206 mEditable.append(first);
207 firstStart = mEditable.toString().indexOf(first);
208 firstEnd = firstStart + first.length();
211 assertEquals(mEditable.toString(), first);
[all...]
/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java124 * @param first Set to true if this is the first time a style is being
127 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
132 final boolean first = mTheme == null;
133 if (first) {
140 onApplyThemeResource(mTheme, mThemeResource, first);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DSumPathEffect_Delegate.java65 /*package*/ static long nativeCreate(long first, long second) { argument

Completed in 755 milliseconds

1234567891011