Searched refs:first (Results 1 - 25 of 315) 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.java262 // The entire atlas is empty at first, minus padding
263 Cell first = new Cell();
264 first.x = first.y = mPadding;
265 first.width = width - 2 * mPadding;
266 first.height = height - 2 * mPadding;
268 mRoot.next = first;
366 Cell first = new Cell();
369 first.x = cell.x + width + mPadding;
370 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...]
/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/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
150 getLeadingMargin(boolean first) argument
154 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.h27 F first; member in struct:android::uirenderer::Pair
31 Pair(const Pair& o) : first(o.first), second(o.second) { }
32 Pair(const F& f, const S& s) : first(f), second(s) { }
35 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/support/v7/appcompat/src/android/support/v7/internal/view/
H A DContextThemeWrapper.java92 * @param first Set to true if this is the first time a style is being
95 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
100 final boolean first = mTheme == null;
101 if (first) {
108 onApplyThemeResource(mTheme, mThemeResource, first);
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
H A DJobStoreTest.java188 private void assertTasksEqual(JobInfo first, JobInfo second) { argument
189 assertEquals("Different task ids.", first.getId(), second.getId());
190 assertEquals("Different components.", first.getService(), second.getService());
191 assertEquals("Different periodic status.", first.isPeriodic(), second.isPeriodic());
192 assertEquals("Different period.", first.getIntervalMillis(), second.getIntervalMillis());
193 assertEquals("Different inital backoff.", first.getInitialBackoffMillis(),
195 assertEquals("Different backoff policy.", first.getBackoffPolicy(),
198 assertEquals("Invalid charging constraint.", first.isRequireCharging(),
200 assertEquals("Invalid idle constraint.", first.isRequireDeviceIdle(),
203 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/content/
H A DClipDescription.java204 boolean first = !toShortStringTypesOnly(b);
206 if (!first) {
209 first = false;
214 return !first;
219 boolean first = true;
221 if (!first) {
224 first = false;
227 return !first;
/frameworks/rs/
H A DrsList.h30 List() : last(nullptr), first(&firstBuffer.data.typed),
31 beginIterator(this, &firstBuffer, const_cast<T*>(first)),
33 current = const_cast<T*>(first);
38 List(InputIterator first, InputIterator last) : List() { argument
39 for (InputIterator it = first; it != last; ++it) {
109 bool empty() const { return current == first; }
111 T& front() const { return *const_cast<T*>(first); }
122 const T* first; member in class:android::renderscript::List
/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java134 * @param first Set to true if this is the first time a style is being
137 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
142 final boolean first = mTheme == null;
143 if (first) {
150 onApplyThemeResource(mTheme, mThemeResource, first);

Completed in 1984 milliseconds

1234567891011>>