/frameworks/support/core/ktx/src/main/java/androidx/core/util/ |
H A D | Pair.kt | 21 import android.util.Pair 32 inline operator fun <F, S> Pair<F, S>.component1() = first 43 inline operator fun <F, S> Pair<F, S>.component2() = second 45 /** Returns this [Pair] as a [kotlin.Pair]. */ 46 inline fun <F, S> Pair<F, S>.toKotlinPair() = kotlin.Pair(first, second) 48 /** Returns this [kotlin.Pair] as an Android [Pair]. */ 50 inline fun <F, S> kotlin.Pair< [all...] |
/frameworks/av/media/img_utils/include/img_utils/ |
H A D | Pair.h | 29 class ANDROID_API Pair { class in namespace:android::img_utils 34 Pair() {} function in class:android::img_utils::Pair 36 Pair(const Pair& o) : first(o.first), second(o.second) {} function in class:android::img_utils::Pair 38 Pair(const F& f, const S& s) : first(f), second(s) {} function in class:android::img_utils::Pair
|
/frameworks/base/core/java/android/security/net/config/ |
H A D | ConfigSource.java | 19 import android.util.Pair; 24 Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs();
|
H A D | KeyStoreConfigSource.java | 19 import android.util.Pair; 40 public Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs() {
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
H A D | TestConfigSource.java | 19 import android.util.Pair; 24 private final Set<Pair<Domain, NetworkSecurityConfig>> mConfigs; 26 public TestConfigSource(Set<Pair<Domain, NetworkSecurityConfig>> configs, 32 public Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs() {
|
H A D | NetworkSecurityConfigTests.java | 24 import android.util.Pair; 125 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap 126 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); 134 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap 135 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); 136 domainMap.add(new Pair<Domain, NetworkSecurityConfig>( 152 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap 153 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); 154 domainMap.add(new Pair<Domain, NetworkSecurityConfig>( 170 ArraySet<Pair<Domai [all...] |
/frameworks/base/core/java/android/util/ |
H A D | Pair.java | 26 public class Pair<F, S> { class 31 * Constructor for a Pair. 33 * @param first the first object in the Pair 36 public Pair(F first, S second) { method in class:Pair 45 * @param o the {@link Pair} to which this one is to be checked for equality 46 * @return true if the underlying objects of the Pair are both considered 51 if (!(o instanceof Pair)) { 54 Pair<?, ?> p = (Pair<?, ?>) o; 61 * @return a hashcode of the Pair [all...] |
/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/ |
H A D | SimpleAppFullLifecycleTest.java | 29 import android.util.Pair; 49 private static final Pair[] EXPECTED_EVENTS_CONSTRUCTION = 50 new Pair[] { 51 new Pair(TestEventType.PROCESS_EVENT, Event.ON_CREATE), 52 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_CREATE), 53 new Pair(TestEventType.PROCESS_EVENT, Event.ON_START), 54 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_START), 55 new Pair(TestEventType.PROCESS_EVENT, Event.ON_RESUME), 56 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_RESUME), 60 private static final Pair[] EXPECTED_EVENTS_DESTRUCTIO [all...] |
H A D | TestUtils.java | 41 import androidx.core.util.Pair; 149 static final List<Pair<TestEvent, Lifecycle.Event>> CREATE = 150 Arrays.asList(new Pair(OWNER_CALLBACK, ON_CREATE), 151 new Pair(LIFECYCLE_EVENT, ON_CREATE)); 152 static final List<Pair<TestEvent, Lifecycle.Event>> START = 153 Arrays.asList(new Pair(OWNER_CALLBACK, ON_START), 154 new Pair(LIFECYCLE_EVENT, ON_START)); 155 static final List<Pair<TestEvent, Lifecycle.Event>> RESUME = 156 Arrays.asList(new Pair(OWNER_CALLBACK, ON_RESUME), 157 new Pair(LIFECYCLE_EVEN [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
H A D | FakeStorageManager.java | 22 import android.util.Pair; 32 private ArrayMap<Integer, ArrayList<Pair<byte[], byte[]>>> mAuth = new ArrayMap<>(); 36 getUserAuth(userId).add(new Pair<>(token, secret)); 40 ArrayList<Pair<byte[], byte[]>> auths = mAuth.get(userId); 41 Pair<byte[], byte[]> latest = auths.get(auths.size() - 1); 46 private ArrayList<Pair<byte[], byte[]>> getUserAuth(int userId) { 48 ArrayList<Pair<byte[], byte[]>> auths = new ArrayList<Pair<byte[], byte[]>>(); 49 auths.add(new Pair(null, null)); 56 ArrayList<Pair<byt [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | Pair.h | 26 struct Pair { struct in namespace:android::uirenderer 30 Pair() {} function in struct:android::uirenderer::Pair 31 Pair(const Pair& o) : first(o.first), second(o.second) {} function in struct:android::uirenderer::Pair 32 Pair(const F& f, const S& s) : first(f), second(s) {} function in struct:android::uirenderer::Pair 42 struct trait_trivial_ctor<uirenderer::Pair<F, S> > { 46 struct trait_trivial_dtor<uirenderer::Pair<F, S> > { 50 struct trait_trivial_copy<uirenderer::Pair<F, S> > { 54 struct trait_trivial_move<uirenderer::Pair<F, S> > {
|
/frameworks/support/navigation/testing/ktx/src/main/java/androidx/navigation/testing/ |
H A D | TestNavigator.kt | 22 * Get the [TestNavigator] back stack as a [List] of [destination and argument pairs][Pair]. 24 val TestNavigator.backStack: List<Pair<TestNavigator.Destination, Bundle?>> 25 get() = mBackStack.map { Pair(it.first!!, it.second) }
|
/frameworks/support/lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/ |
H A D | CollectingLifecycleOwner.java | 19 import androidx.core.util.Pair; 35 List<Pair<TestEvent, Lifecycle.Event>> copyCollectedEvents();
|
H A D | CollectingSupportActivity.java | 24 import androidx.core.util.Pair; 40 private final List<Pair<TestEvent, Event>> mCollectedEvents = new ArrayList<>(); 50 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Event.ON_CREATE)); 67 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Event.ON_START)); 73 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Event.ON_RESUME)); 79 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Event.ON_DESTROY)); 85 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Event.ON_STOP)); 91 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Event.ON_PAUSE)); 97 public List<Pair<TestEvent, Event>> copyCollectedEvents() {
|
H A D | FrameworkLifecycleRegistryActivity.java | 25 import androidx.core.util.Pair; 48 private List<Pair<TestEvent, Lifecycle.Event>> mCollectedEvents = new ArrayList<>(); 55 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_CREATE)); 62 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_START)); 68 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_RESUME)); 74 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_DESTROY)); 81 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_STOP)); 87 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_PAUSE)); 91 public List<Pair<TestEvent, Lifecycle.Event>> copyCollectedEvents() {
|
H A D | TestObserver.java | 27 import androidx.core.util.Pair; 36 private final List<Pair<TestEvent, Event>> mCollectedEvents; 38 TestObserver(List<Pair<TestEvent, Event>> collectedEvents) { 44 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_CREATE)); 49 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_START)); 54 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_RESUME)); 58 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_PAUSE)); 63 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_STOP)); 68 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_DESTROY));
|
H A D | CollectingSupportFragment.java | 28 import androidx.core.util.Pair; 40 private final List<Pair<TestEvent, Lifecycle.Event>> mCollectedEvents = 47 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_CREATE)); 74 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_START)); 80 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_RESUME)); 86 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_DESTROY)); 92 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_STOP)); 98 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_PAUSE)); 102 public List<Pair<TestEvent, Lifecycle.Event>> copyCollectedEvents() {
|
/frameworks/support/compat/src/main/java/androidx/core/util/ |
H A D | Pair.java | 27 public class Pair<F, S> { class 32 * Constructor for a Pair. 34 * @param first the first object in the Pair 37 public Pair(@Nullable F first, @Nullable S second) { method in class:Pair 46 * @param o the {@link Pair} to which this one is to be checked for equality 47 * @return true if the underlying objects of the Pair are both considered 52 if (!(o instanceof Pair)) { 55 Pair<?, ?> p = (Pair<?, ?>) o; 62 * @return a hashcode of the Pair [all...] |
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/ |
H A D | PairTest.kt | 19 import android.util.Pair 26 val pair = Pair("one", "two") 33 val pair = Pair("one", "two") 40 val android = Pair("one", "two") 46 val kotlin = kotlin.Pair("one", "two") 48 assertEquals(Pair(kotlin.first, kotlin.second), android)
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | DynamicIdMap.java | 20 import com.android.util.Pair; 30 private final Map<Pair<ResourceType, String>, Integer> mDynamicIds = new HashMap<>(); 31 private final SparseArray<Pair<ResourceType, String>> mRevDynamicIds = new SparseArray<>(); 54 return getId(Pair.of(type, name)); 65 public Integer getId(Pair<ResourceType, String> resource) { 76 public Pair<ResourceType, String> resolveId(int id) {
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryablePair.java | 22 import android.util.Pair; 31 * Marshal {@link Pair} to/from any native type 34 implements MarshalQueryable<Pair<T1, T2>> { 36 private class MarshalerPair extends Marshaler<Pair<T1, T2>> { 37 private final Class<? super Pair<T1, T2>> mClass; 38 private final Constructor<Pair<T1, T2>> mConstructor; 39 /** Marshal the {@code T1} inside of {@code Pair<T1, T2>} */ 41 /** Marshal the {@code T1} inside of {@code Pair<T1, T2>} */ 45 protected MarshalerPair(TypeReference<Pair<T1, T2>> typeReference, 52 * Lookup the actual type arguments, e.g. Pair<Intege [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
H A D | RoamingConsortiumElementTest.java | 23 import android.util.Pair; 42 private static final Pair<Integer, Long> TEST_OI1 = new Pair<Integer, Long>(1, 0x12L); 43 private static final Pair<Integer, Long> TEST_OI2 = new Pair<Integer, Long>(2, 0x1234L); 44 private static final Pair<Integer, Long> TEST_OI3 = new Pair<Integer, Long>(4, 0x12345678L); 45 private static final Pair<Integer, Long> TEST_OI4 = new Pair<Integer, Long>(8, 0x1234567890L); 53 private void appendOI(ByteArrayOutputStream stream, Pair<Intege [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/ |
H A D | LogWriter.java | 19 import android.util.Pair; 39 void action(int category, int value, Pair<Integer, Object>... taggedData); 44 void action(int category, boolean value, Pair<Integer, Object>... taggedData); 49 void action(Context context, int category, Pair<Integer, Object>... taggedData); 58 * @deprecated use {@link #action(int, int, Pair[])} 65 * @deprecated use {@link #action(int, boolean, Pair[])} 73 void action(Context context, int category, String pkg, Pair<Integer, Object>... taggedData);
|
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
H A D | PaintCompat.java | 24 import androidx.core.util.Pair; 34 private static final ThreadLocal<Pair<Rect, Rect>> sRectThreadLocal = new ThreadLocal<>(); 101 final Pair<Rect, Rect> rects = obtainEmptyRects(); 107 private static Pair<Rect, Rect> obtainEmptyRects() { 108 Pair<Rect, Rect> rects = sRectThreadLocal.get(); 110 rects = new Pair<>(new Rect(), new Rect());
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | Utils.java | 9 import android.util.Pair; 51 public static Pair<Drawable, String> getBtClassDrawableWithDescription(Context context, 56 public static Pair<Drawable, String> getBtClassDrawableWithDescription(Context context, 63 return new Pair<>(getBluetoothDrawable(context, R.drawable.ic_bt_laptop, level, 68 return new Pair<>( 74 return new Pair<>( 80 return new Pair<>( 94 return new Pair<>(getBluetoothDrawable(context, resId, level, iconScale), null); 99 return new Pair<>( 105 return new Pair<>( [all...] |