Searched defs:Pair (Results 1 - 14 of 14) sorted by relevance

/frameworks/av/media/img_utils/include/img_utils/
H A DPair.h29 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/util/
H A DPair.java26 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/compat/src/main/java/androidx/core/util/
H A DPair.java27 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/base/libs/hwui/utils/
H A DPair.h26 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/wilhelm/src/ut/
H A DOpenSLESUT.c36 } Pair; typedef in typeref:struct:__anon2164
46 static Pair pairs[] = {
114 Pair *p;
115 const Pair *end = &pairs[sizeof(pairs)/sizeof(pairs[0])];
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiLogger.java22 import android.util.Pair;
51 // Value (Pair(Long, Integer)): a pair of last log time millis and the number of logMessage.
53 private final HashMap<String, Pair<Long, Integer>> mWarningTimingCache = new HashMap<>();
55 private final HashMap<String, Pair<Long, Integer>> mErrorTimingCache = new HashMap<>();
109 private static String updateLog(HashMap<String, Pair<Long, Integer>> cache, String logMessage) {
111 Pair<Long, Integer> timing = cache.get(logMessage);
114 cache.put(logMessage, new Pair<>(curTime, 1));
122 private static String buildMessage(String message, @Nullable Pair<Long, Integer> timing) { argument
128 private static void increaseLogCount(HashMap<String, Pair<Long, Integer>> cache,
130 Pair<Lon
136 shouldLogNow(@ullable Pair<Long, Integer> timing, long curTime) argument
[all...]
/frameworks/compile/mclinker/include/mcld/Target/
H A DELFDynamic.h52 typedef llvm::ELF::Elf32_Dyn Pair; typedef in class:mcld::elf_dynamic::Entry
64 size_t size() const { return sizeof(Pair); }
77 Pair m_Pair;
83 typedef llvm::ELF::Elf64_Dyn Pair; typedef in class:mcld::elf_dynamic::Entry
95 size_t size() const { return sizeof(Pair); }
108 Pair m_Pair;
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
H A DFragmentTestUtil.java29 import android.util.Pair;
167 final Pair<Parcelable, FragmentManagerNonConfig> savedState) {
186 public static Pair<Parcelable, FragmentManagerNonConfig> destroy(
189 final Pair<Parcelable, FragmentManagerNonConfig>[] result = new Pair[1];
199 result[0] = Pair.create(savedState, nonConfig);
165 resume(ActivityTestRule<? extends Activity> rule, final FragmentController fragmentController, final Pair<Parcelable, FragmentManagerNonConfig> savedState) argument
/frameworks/support/transition/src/androidTest/java/androidx/transition/
H A DFragmentTransitionTest.java37 import androidx.core.util.Pair;
74 showFragment(fragment2, true, new Pair<>(fragment1.mGreen, "green"));
106 showFragment(fragment2, true, new Pair<>(fragment1.mGreen, "green"));
117 final Pair<View, String> sharedElement) {
116 showFragment(final Fragment fragment, final boolean addToBackStack, final Pair<View, String> sharedElement) argument
/frameworks/rs/
H A DrsMap.h10 class Pair { class in namespace:android::renderscript
12 Pair() {} function in class:android::renderscript::Pair
13 Pair(T1 f1, T2 f2) : first(f1), second(f2) {} function in class:android::renderscript::Pair
20 Pair<T1, T2> make_pair(T1 first, T2 second) {
21 return Pair<T1, T2>(first, second);
31 typedef Pair<KeyType, ValueType> MapEntry;
/frameworks/layoutlib/bridge/src/android/content/res/
H A DResources_Delegate.java39 import com.android.util.Pair;
130 private static Pair<ResourceType, String> getResourceInfo(Resources resources, int id,
133 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id);
158 private static Pair<String, ResourceValue> getResourceValue(Resources resources, int id,
160 Pair<ResourceType, String> resourceInfo =
175 return Pair.of(attributeName, value);
188 Pair<String, ResourceValue> value = getResourceValue(resources, id, mPlatformResourceFlag);
222 Pair<String, ResourceValue> value = getResourceValue(resources, id, mPlatformResourceFlag);
258 Pair<String, ResourceValue> resValue =
278 Pair<Strin
1092 throwException(int id, @Nullable Pair<ResourceType, String> resourceInfo) argument
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dreverb.c36 } Pair; typedef in typeref:struct:__anon2178
40 Pair pairs[] = {
/frameworks/support/v7/recyclerview/src/test/java/androidx/recyclerview/widget/
H A DSortedListTest.java53 List<Pair> mAdditions = new ArrayList<>();
54 List<Pair> mRemovals = new ArrayList<>();
55 List<Pair> mMoves = new ArrayList<>();
56 List<Pair> mUpdates = new ArrayList<>();
91 mAdditions.add(new Pair(position, count));
101 mRemovals.add(new Pair(position, count));
108 mMoves.add(new Pair(fromPosition, toPosition));
114 mUpdates.add(new Pair(position, count));
194 assertTrue(mAdditions.contains(new Pair(0, 1)));
199 assertTrue(mAdditions.contains(new Pair(
1545 private static final class Pair { class in class:SortedListTest
1549 public Pair(int first) { method in class:SortedListTest.Pair
1554 public Pair(int first, int second) { method in class:SortedListTest.Pair
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 501 milliseconds