Searched refs:Pair (Results 1 - 25 of 160) sorted by relevance

1234567

/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/security/net/config/
H A DConfigSource.java19 import android.util.Pair;
24 Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs();
H A DKeyStoreConfigSource.java19 import android.util.Pair;
40 public Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs() {
H A DApplicationConfig.java19 import android.util.Pair;
37 private Set<Pair<Domain, NetworkSecurityConfig>> mConfigs;
88 Pair<Domain, NetworkSecurityConfig> bestMatch = null;
89 for (Pair<Domain, NetworkSecurityConfig> entry : mConfigs) {
132 for (Pair<Domain, NetworkSecurityConfig> entry : mConfigs) {
156 for (Pair<Domain, NetworkSecurityConfig> entry : mConfigs) {
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
H A DTestConfigSource.java19 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 DNetworkSecurityConfigTests.java23 import android.util.Pair;
124 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap
125 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>();
133 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap
134 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>();
135 domainMap.add(new Pair<Domain, NetworkSecurityConfig>(
151 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap
152 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>();
153 domainMap.add(new Pair<Domain, NetworkSecurityConfig>(
169 ArraySet<Pair<Domai
[all...]
/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/v4/java/android/support/v4/util/
H A DPair.java24 public class Pair<F, S> { class
29 * Constructor for a Pair.
31 * @param first the first object in the Pair
34 public Pair(F first, S second) { method in class:Pair
43 * @param o the {@link Pair} to which this one is to be checked for equality
44 * @return true if the underlying objects of the Pair are both considered
49 if (!(o instanceof Pair)) {
52 Pair<?, ?> p = (Pair<?, ?>) o;
63 * @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
46 struct trait_trivial_ctor< uirenderer::Pair<F, S> >
49 struct trait_trivial_dtor< uirenderer::Pair<F, S> >
52 struct trait_trivial_copy< uirenderer::Pair<F, S> >
55 struct trait_trivial_move< uirenderer::Pair<F, S> >
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DDynamicIdMap.java20 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DServiceStateTest.java23 import android.util.Pair;
82 ArrayList<Pair<Integer, Boolean>> rats = new ArrayList<Pair<Integer, Boolean>>();
84 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_IS95A, true));
85 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_IS95B, true));
86 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT, true));
87 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0, true));
88 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A, true));
89 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_B, true));
90 rats.add(new Pair<Intege
[all...]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryablePair.java22 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/base/services/core/java/com/android/server/hdmi/
H A DHdmiLogger.java22 import android.util.Pair;
52 // Value (Pair(Long, Integer)): a pair of last log time millis and the number of logMessage.
54 private final HashMap<String, Pair<Long, Integer>> mWarningTimingCache = new HashMap<>();
56 private final HashMap<String, Pair<Long, Integer>> mErrorTimingCache = new HashMap<>();
110 private static String updateLog(HashMap<String, Pair<Long, Integer>> cache, String logMessage) {
112 Pair<Long, Integer> timing = cache.get(logMessage);
115 cache.put(logMessage, new Pair<>(curTime, 1));
123 private static String buildMessage(String message, @Nullable Pair<Long, Integer> timing) { argument
129 private static void increaseLogCount(HashMap<String, Pair<Long, Integer>> cache,
131 Pair<Lon
137 shouldLogNow(@ullable Pair<Long, Integer> timing, long curTime) argument
[all...]
/frameworks/support/v4/api21/android/support/v4/app/
H A DActivityOptionsCompat21.java22 import android.util.Pair;
38 Pair[] pairs = null;
40 pairs = new Pair[sharedElements.length];
42 pairs[i] = Pair.create(sharedElements[i], sharedElementNames[i]);
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
H A DServiceResolveQueue.java21 import android.util.Pair;
29 private final LinkedList<Pair<NsdServiceInfo, ResolveCallback>> mQueue = new LinkedList<>();
35 private Pair<NsdServiceInfo, ResolveCallback> mCurrentRequest = null;
63 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback);
72 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback);
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
H A DServiceResolveQueue.java21 import android.util.Pair;
29 private final LinkedList<Pair<NsdServiceInfo, ResolveCallback>> mQueue = new LinkedList<>();
35 private Pair<NsdServiceInfo, ResolveCallback> mCurrentRequest = null;
63 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback);
72 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DUserTile.java22 import android.util.Pair;
33 private Pair<String, Drawable> mLastUpdate;
82 final Pair<String, Drawable> p = arg != null ? (Pair<String, Drawable>) arg : mLastUpdate;
100 mLastUpdate = new Pair<>(name, picture);
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxPredictor.java23 import android.util.Pair;
86 public ArrayList<Pair<String, Float> > getTopSamples() {
90 public ArrayList<Pair<String, Float> > getTopSamples(int topK) {
95 ArrayList<Pair<String, Float> > topSamples =
96 new ArrayList<Pair<String, Float> >(topList.size());
98 topSamples.add(new Pair<String, Float>(topList.get(i).key, topList.get(i).value));
H A DFeatureAssembly.java21 import android.util.Pair;
35 private HashSet<Pair<String, String> > mUsePairedFeatures;
42 mUsePairedFeatures = new HashSet<Pair<String, String> >();
62 mUsePairedFeatures.add(Pair.create(features[0], features[1]));
89 Pair<String, String> pair = (Pair<String, String>) itr.next();
/frameworks/base/core/java/android/database/
H A DDefaultDatabaseErrorHandler.java24 import android.util.Pair;
68 List<Pair<String, String>> attachedDbs = null;
85 for (Pair<String, String> p : attachedDbs) {
/frameworks/av/include/camera/
H A DCameraParameters2.h120 return mList.add(Pair(key, value));
175 struct Pair {
176 Pair() : mKey(), mValue() {}
177 Pair(const KeyT& key, const ValueT& value) :
184 Vector<Pair> mList;
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
H A DPageRangeUtils.java21 import android.util.Pair;
183 private static Pair<Integer, Integer> readNumber(CharSequence s, int pos) {
200 return new Pair<>(pos, null);
202 return new Pair<>(pos, result);
216 private static Pair<Integer, Character> readChar(CharSequence s, int pos, char expectedChar) {
218 return new Pair<>(pos + 1, expectedChar);
220 return new Pair<>(pos, null);
234 private static Pair<Integer, PageRange> readRange(CharSequence s, int pos, int maxPageNumber) {
235 Pair<Integer, Integer> retInt;
236 Pair<Intege
[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/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/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
H A DSortedListTest.java40 List<Pair> mAdditions = new ArrayList<Pair>();
41 List<Pair> mRemovals = new ArrayList<Pair>();
42 List<Pair> mMoves = new ArrayList<Pair>();
43 List<Pair> mUpdates = new ArrayList<Pair>();
75 mAdditions.add(new Pair(position, count));
83 mRemovals.add(new Pair(positio
783 private static final class Pair { class in class:SortedListTest
787 public Pair(int first) { method in class:SortedListTest.Pair
792 public Pair(int first, int second) { method in class:SortedListTest.Pair
[all...]

Completed in 994 milliseconds

1234567