/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/core/java/com/android/internal/util/ |
H A D | IntPair.java | 27 public static long of(int first, int second) { argument 28 return (((long)first) << 32) | ((long)second & 0xffffffffL); 31 public static int first(long intPair) { method in class:IntPair
|
/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
|
/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/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/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
H A D | PlaybackSeekProviderSample.java | 27 public PlaybackSeekProviderSample(long first, long last, int numSeekPositions) { argument 30 mSeekPositions[i] = first + i * (last - first) / (numSeekPositions - 1);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | SpannableStringNoCopyTest.java | 37 final SpannableString first = new SpannableString("t\nest data"); 38 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); 39 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 40 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); 43 final SpannedString copied = new SpannedString(first); 51 final SpannableString first = new SpannableString("t\nest data"); 52 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); 53 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 54 first [all...] |
H A D | SpannedStringNoCopyTest.java | 37 final SpannableString first = new SpannableString("t\nest data"); 38 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); 39 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 40 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); 43 final SpannedString copied = new SpannedString(first); 51 final SpannableString first = new SpannableString("t\nest data"); 52 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); 53 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 54 first [all...] |
/frameworks/support/compat/src/main/java/androidx/core/util/ |
H A D | Pair.java | 28 public final @Nullable F first; field in class:Pair 34 * @param first the first object in the Pair 37 public Pair(@Nullable F first, @Nullable S second) { argument 38 this.first = first; 56 return ObjectsCompat.equals(p.first, first) && ObjectsCompat.equals(p.second, second); 66 return (first == null ? 0 : first [all...] |
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/ |
H A D | PairTest.kt | 27 val (first: String, second: String) = pair 28 assertSame(pair.first, first) 34 val (first: String?, second: String?) = pair 35 assertSame(pair.first, first) 42 assertEquals(android.first to android.second, kotlin) 48 assertEquals(Pair(kotlin.first, kotlin.second), android)
|
/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;
|
/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...] |
/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 | 38 auto first = new_end; local 39 ++first; 41 for (; first != last; ++first) { 42 if (bool(pred(*first))) { 44 *result = std::move(*first); 49 *new_end = std::move(*first);
|
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/ |
H A D | CollectionUtils.java | 36 public static <T> T[] concatAll(T[] first, T[]... rest) { argument 37 int totalLength = first.length; 41 T[] result = Arrays.copyOf(first, totalLength); 42 int offset = first.length;
|
/frameworks/support/core/ktx/src/main/java/androidx/core/util/ |
H A D | Pair.kt | 24 * Returns the first component of the pair. 28 * val (first, second) = myPair 32 inline operator fun <F, S> Pair<F, S>.component1() = first 39 * val (first, second) = myPair 46 inline fun <F, S> Pair<F, S>.toKotlinPair() = kotlin.Pair(first, second) 50 inline fun <F, S> kotlin.Pair<F, S>.toAndroidPair(): Pair<F, S> = Pair(first, second)
|
/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/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) {} 34 inline const F& getFirst() const { return first; }
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
H A D | GuidedStepFragmentTest.java | 64 final String firstFragmentName = generateMethodTestName("first"); 66 GuidedStepTestFragment.Provider first = mockProvider(firstFragmentName); 74 }).when(first).onCreateActions(any(List.class), nullable(Bundle.class)); 87 }).when(first).onGuidedActionClicked(any(GuidedAction.class)); 92 verify(first, times(1)).onCreate(nullable(Bundle.class)); 93 verify(first, times(1)).onCreateGuidance(nullable(Bundle.class)); 94 verify(first, times(1)).onCreateActions(any(List.class), nullable(Bundle.class)); 95 verify(first, times(1)).onCreateButtonActions(any(List.class), nullable(Bundle.class)); 96 verify(first, times(1)).onCreateView(any(LayoutInflater.class), any(ViewGroup.class), 98 verify(first, time [all...] |
H A D | GuidedStepSupportFragmentTest.java | 61 final String firstFragmentName = generateMethodTestName("first"); 63 GuidedStepTestSupportFragment.Provider first = mockProvider(firstFragmentName); 71 }).when(first).onCreateActions(any(List.class), nullable(Bundle.class)); 84 }).when(first).onGuidedActionClicked(any(GuidedAction.class)); 89 verify(first, times(1)).onCreate(nullable(Bundle.class)); 90 verify(first, times(1)).onCreateGuidance(nullable(Bundle.class)); 91 verify(first, times(1)).onCreateActions(any(List.class), nullable(Bundle.class)); 92 verify(first, times(1)).onCreateButtonActions(any(List.class), nullable(Bundle.class)); 93 verify(first, times(1)).onCreateView(any(LayoutInflater.class), any(ViewGroup.class), 95 verify(first, time [all...] |
/frameworks/av/include/media/ |
H A D | Interpolator.h | 60 std::pair<S, T> first() const { function in class:android::Interpolator 75 // at or before first point 86 return high->first == x ? high->second : low->second; 88 return ((high->first - x) * low->second + (x - low->first) * high->second) 89 / (high->first - low->first); 95 const S interval = high->first - low->first; 98 if (mMemo.count(low->first) ! 301 bool first = true; local [all...] |
/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/rs/tests/lldb/tests/harness/ |
H A D | RS_funs.py | 1393 first = True 1395 if not first: 1398 first = False
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | GestureUtils.java | 22 private static boolean eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, argument 24 if (isTimedOut(first, second, timeout)) { 27 final double deltaMove = distance(first, second); 34 public static double distance(MotionEvent first, MotionEvent second) { argument 35 return MathUtils.dist(first.getX(), first.getY(), second.getX(), second.getY());
|