/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
H A D | RecycleAccessibilityEventTest.java | 43 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 D | SumPathEffect.java | 23 * (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 D | Atlas.java | 262 // 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 D | Pair.java | 27 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.equals(p.first, first) && Objects.equals(p.second, second); 65 return (first == null ? 0 : first [all...] |
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | Pair.java | 25 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 D | Pair.h | 31 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 D | RoundRobinScheduler.java | 46 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 D | OneShotScheduler.java | 53 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 D | Tokenizer.cpp | 43 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 D | Tokenizer.h | 45 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 D | ListItemFocusablesCloseTest.java | 49 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...] |
/frameworks/base/core/java/android/text/style/ |
H A D | LeadingMarginSpan.java | 32 * 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/tools/aapt2/link/ |
H A D | PrivateAttributeMover.cpp | 36 auto first = newEnd; local 37 ++first; 39 for (; first != last; ++first) { 40 if (bool(pred(*first))) { 42 *result = std::move(*first); 47 *newEnd = std::move(*first);
|
/frameworks/base/test-runner/src/android/test/ |
H A D | ViewAsserts.java | 121 * @param first The first view 124 static public void assertBaselineAligned(View first, View second) { argument 126 first.getLocationOnScreen(xy); 127 int firstTop = xy[1] + first.getBaseline(); 139 * @param first The first view 142 static public void assertRightAligned(View first, View second) { argument 144 first.getLocationOnScreen(xy); 145 int firstRight = xy[0] + first 161 assertRightAligned(View first, View second, int margin) argument 179 assertLeftAligned(View first, View second) argument 198 assertLeftAligned(View first, View second, int margin) argument 216 assertBottomAligned(View first, View second) argument 235 assertBottomAligned(View first, View second, int margin) argument 253 assertTopAligned(View first, View second) argument 272 assertTopAligned(View first, View second, int margin) argument [all...] |
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | GestureUtils.java | 26 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/rs/java/tests/Refocus/src/com/android/rs/test/ |
H A D | ImageCompare.java | 25 byte[] first = loadImageByteArray(file1); 28 for (int i = 0; i < first.length; i++) { 29 int v1 = 0xFF & first[i]; 53 byte[] first = loadBitmapByteArray(bitmap1); 56 int loopCount = first.length > second.length ? second.length : first.length; 61 int v1 = 0xFF & first[i]; 72 result.diffPercent = ((float)diffCount)/first.length; 73 result.aveDiff = ((float)diffSum)/first.length; 110 byte[] first [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | Pair.h | 27 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 D | SocketConnect.java | 41 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 D | ResourceFilter.cpp | 33 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/view/ |
H A D | ContextThemeWrapper.java | 92 * @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/compile/mclinker/lib/LD/ |
H A D | StubFactory.cpp | 52 if (islands.first == NULL) { 57 // find if there is such a stub in the backward island first. 64 stub = islands.first->findStub(prototype, pReloc); 70 stub->applyFixup(pReloc, pBuilder, *islands.first); 73 islands.first->addStub(prototype, pReloc, *stub); 90 if (islands.first == NULL) { 97 stub->applyFixup(pFragRef, pBuilder, *islands.first); 100 islands.first->addStub(*stub); 103 } // (islands.first == NULL)
|
/frameworks/base/core/java/android/content/ |
H A D | ClipDescription.java | 255 boolean first = !toShortStringTypesOnly(b); 257 if (!first) { 260 first = false; 266 if (!first) { 269 first = false; 272 return !first; 277 boolean first = true; 279 if (!first) { 282 first = false; 285 return !first; [all...] |
/frameworks/av/media/libeffects/loudness/common/core/ |
H A D | byte_swapper.h | 44 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 D | ChipsTest.java | 184 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/rs/ |
H A D | rsList.h | 30 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
|