Home
last modified time | relevance | path

Searched refs:Pair (Results 1 – 25 of 191) sorted by relevance

12345678

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTest.java23 import android.util.Pair;
82 ArrayList<Pair<Integer, Boolean>> rats = new ArrayList<Pair<Integer, Boolean>>(); in testRAT()
84 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_IS95A, true)); in testRAT()
85 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_IS95B, true)); in testRAT()
86 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT, true)); in testRAT()
87 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0, true)); in testRAT()
88 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A, true)); in testRAT()
89 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_B, true)); in testRAT()
90 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EHRPD, true)); in testRAT()
92 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_GPRS, false)); in testRAT()
[all …]
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DNetworkSecurityConfigTests.java23 import android.util.Pair;
124 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testEmptyConfig()
125 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); in testEmptyConfig()
133 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testEmptyPerNetworkSecurityConfig()
134 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); in testEmptyPerNetworkSecurityConfig()
135 domainMap.add(new Pair<Domain, NetworkSecurityConfig>( in testEmptyPerNetworkSecurityConfig()
151 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testBadPin()
152 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); in testBadPin()
153 domainMap.add(new Pair<Domain, NetworkSecurityConfig>( in testBadPin()
169 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testGoodPin()
[all …]
DTestConfigSource.java19 import android.util.Pair;
24 private final Set<Pair<Domain, NetworkSecurityConfig>> mConfigs;
26 public TestConfigSource(Set<Pair<Domain, NetworkSecurityConfig>> configs, in TestConfigSource()
32 public Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs() { in getPerDomainConfigs()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryablePair.java22 import android.util.Pair;
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;
45 protected MarshalerPair(TypeReference<Pair<T1, T2>> typeReference, in MarshalerPair()
83 mConstructor = (Constructor<Pair<T1, T2>>)mClass.getConstructor( in MarshalerPair()
91 public void marshal(Pair<T1, T2> value, ByteBuffer buffer) { in marshal()
103 public Pair<T1, T2> unmarshal(ByteBuffer buffer) { in unmarshal()
133 public int calculateMarshalSize(Pair<T1, T2> value) { in calculateMarshalSize()
[all …]
/frameworks/base/libs/hwui/utils/
DPair.h26 struct Pair { struct
30 Pair() { } in Pair() argument
31 Pair(const Pair& o) : first(o.first), second(o.second) { } in Pair() argument
32 Pair(const F& f, const S& s) : first(f), second(s) { } in Pair() argument
46 struct trait_trivial_ctor< uirenderer::Pair<F, S> > argument
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/core/java/android/util/
DPair.java26 public class Pair<F, S> { class
36 public Pair(F first, S second) { in Pair() method in Pair
51 if (!(o instanceof Pair)) { in equals()
54 Pair<?, ?> p = (Pair<?, ?>) o; in equals()
79 public static <A, B> Pair <A, B> create(A a, B b) { in create()
80 return new Pair<A, B>(a, b); in create()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiLogger.java22 import android.util.Pair;
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) { in updateLog()
112 Pair<Long, Integer> timing = cache.get(logMessage); in updateLog()
115 cache.put(logMessage, new Pair<>(curTime, 1)); in updateLog()
123 private static String buildMessage(String message, @Nullable Pair<Long, Integer> timing) { in buildMessage()
129 private static void increaseLogCount(HashMap<String, Pair<Long, Integer>> cache, in increaseLogCount()
131 Pair<Long, Integer> timing = cache.get(message); in increaseLogCount()
133 cache.put(message, new Pair<>(timing.first, timing.second + 1)); in increaseLogCount()
[all …]
/frameworks/support/compat/java/android/support/v4/util/
DPair.java24 public class Pair<F, S> { class
34 public Pair(F first, S second) { in Pair() method in Pair
49 if (!(o instanceof Pair)) { in equals()
52 Pair<?, ?> p = (Pair<?, ?>) o; in equals()
81 public static <A, B> Pair <A, B> create(A a, B b) { in create()
82 return new Pair<A, B>(a, b); in create()
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
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)); in setUp()
83 mRemovals.add(new Pair(position, count)); in setUp()
88 mMoves.add(new Pair(fromPosition, toPosition)); in setUp()
93 mUpdates.add(new Pair(position, count)); in setUp()
124 assertTrue(mAdditions.contains(new Pair(0, 1))); in testAdd()
129 assertTrue(mAdditions.contains(new Pair(1, 1))); in testAdd()
[all …]
/frameworks/av/media/img_utils/include/img_utils/
DPair.h29 class ANDROID_API Pair {
34 Pair() {} in Pair() function
36 Pair(const Pair& o) : first(o.first), second(o.second) {} in Pair() function
38 Pair(const F& f, const S& s) : first(f), second(s) {} in Pair() function
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
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)); in getId()
65 public Integer getId(Pair<ResourceType, String> resource) { in getId()
76 public Pair<ResourceType, String> resolveId(int id) { in resolveId()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
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); in queueRequest()
72 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback); in removeRequest()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
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); in queueRequest()
72 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback); in removeRequest()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DPageRangeUtils.java21 import android.util.Pair;
183 private static Pair<Integer, Integer> readNumber(CharSequence s, int pos) { in readNumber()
200 return new Pair<>(pos, null); in readNumber()
202 return new Pair<>(pos, result); in readNumber()
216 private static Pair<Integer, Character> readChar(CharSequence s, int pos, char expectedChar) { in readChar()
218 return new Pair<>(pos + 1, expectedChar); in readChar()
220 return new Pair<>(pos, null); in readChar()
234 private static Pair<Integer, PageRange> readRange(CharSequence s, int pos, int maxPageNumber) { in readRange()
235 Pair<Integer, Integer> retInt; in readRange()
236 Pair<Integer, Character> retChar; in readRange()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLastResortWatchdog.java22 import android.util.Pair;
73 private Map<String, Pair<AvailableNetworkFailureCount, Integer>> mSsidFailureCount =
97 List<Pair<ScanDetail, WifiConfiguration>> availableNetworks) { in updateAvailableNetworks()
101 for (Pair<ScanDetail, WifiConfiguration> pair : availableNetworks) { in updateAvailableNetworks()
118 Pair<AvailableNetworkFailureCount, Integer> ssidFailsAndApCount = in updateAvailableNetworks()
122 ssidFailsAndApCount = Pair.create(new AvailableNetworkFailureCount(config), in updateAvailableNetworks()
128 ssidFailsAndApCount = Pair.create(ssidFailsAndApCount.first, in updateAvailableNetworks()
153 Pair<AvailableNetworkFailureCount, Integer> ssidFails = in updateAvailableNetworks()
158 ssidFails = Pair.create(ssidFails.first, apCount); in updateAvailableNetworks()
250 Pair<AvailableNetworkFailureCount, Integer> ssidFails = mSsidFailureCount.get(ssid); in incrementSsidFailureCount()
[all …]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DBordeauxPredictor.java23 import android.util.Pair;
86 public ArrayList<Pair<String, Float> > getTopSamples() { in getTopSamples()
90 public ArrayList<Pair<String, Float> > getTopSamples(int topK) { in getTopSamples()
95 ArrayList<Pair<String, Float> > topSamples = in getTopSamples()
96 new ArrayList<Pair<String, Float> >(topList.size()); in getTopSamples()
98 topSamples.add(new Pair<String, Float>(topList.get(i).key, topList.get(i).value)); in getTopSamples()
DFeatureAssembly.java21 import android.util.Pair;
35 private HashSet<Pair<String, String> > mUsePairedFeatures;
42 mUsePairedFeatures = new HashSet<Pair<String, String> >(); in FeatureAssembly()
62 mUsePairedFeatures.add(Pair.create(features[0], features[1])); in registerFeaturePair()
89 Pair<String, String> pair = (Pair<String, String>) itr.next(); in getFeatureMap()
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java36 import com.android.util.Pair;
88 private static Pair<ResourceType, String> getResourceInfo(Resources resources, int id, in getResourceInfo()
91 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id); in getResourceInfo()
116 private static Pair<String, ResourceValue> getResourceValue(Resources resources, int id, in getResourceValue()
118 Pair<ResourceType, String> resourceInfo = in getResourceValue()
124 return Pair.of(attributeName, platformResFlag_out[0] ? in getResourceValue()
139 Pair<String, ResourceValue> value = getResourceValue(resources, id, mPlatformResourceFlag); in getDrawable()
159 Pair<String, ResourceValue> value = getResourceValue(resources, id, mPlatformResourceFlag); in getColor()
195 Pair<String, ResourceValue> resValue = in getColorStateList()
215 Pair<String, ResourceValue> value = getResourceValue(resources, id, mPlatformResourceFlag); in getText()
[all …]
/frameworks/compile/mclinker/include/mcld/Target/
DELFDynamic.tcc28 sizeof(Pair)); in emit()
29 return sizeof(Pair); in emit()
50 sizeof(Pair)); in emit()
51 return sizeof(Pair); in emit()
DELFDynamic.h52 typedef llvm::ELF::Elf32_Dyn Pair; typedef
64 size_t size() const { return sizeof(Pair); } in size()
77 Pair m_Pair;
83 typedef llvm::ELF::Elf64_Dyn Pair; typedef
95 size_t size() const { return sizeof(Pair); } in size()
108 Pair m_Pair;
/frameworks/base/core/java/android/security/net/config/
DApplicationConfig.java19 import android.util.Pair;
37 private Set<Pair<Domain, NetworkSecurityConfig>> mConfigs;
88 Pair<Domain, NetworkSecurityConfig> bestMatch = null; in getConfigForHostname()
89 for (Pair<Domain, NetworkSecurityConfig> entry : mConfigs) { in getConfigForHostname()
132 for (Pair<Domain, NetworkSecurityConfig> entry : mConfigs) { in isCleartextTrafficPermitted()
156 for (Pair<Domain, NetworkSecurityConfig> entry : mConfigs) { in handleTrustStorageUpdate()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLastResortWatchdogTest.java27 import android.util.Pair;
62 private List<Pair<ScanDetail, WifiConfiguration>> createFilteredQnsCandidates(String[] ssids, in createFilteredQnsCandidates()
65 List<Pair<ScanDetail, WifiConfiguration>> candidates = new ArrayList<>(); in createFilteredQnsCandidates()
80 candidates.add(Pair.create(scanDetail, config)); in createFilteredQnsCandidates()
85 private List<Pair<ScanDetail, WifiConfiguration>> createFilteredQnsCandidates(String[] ssids, in createFilteredQnsCandidates()
88 List<Pair<ScanDetail, WifiConfiguration>> candidates = in createFilteredQnsCandidates()
89 new ArrayList<Pair<ScanDetail, WifiConfiguration>>(); in createFilteredQnsCandidates()
105 candidates.add(Pair.create(scanDetail, config)); in createFilteredQnsCandidates()
130 List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids, in testAvailableNetworkBuffering_ageCullingWorks()
170 List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids, in testAvailableNetworkBuffering_emptyBufferWithEmptyScanResults()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
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; in handleUpdateState()
100 mLastUpdate = new Pair<>(name, picture); in onUserInfoChanged()
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
DViewInfoStoreTest.java28 import android.support.v4.util.Pair;
162 assertEquals(new Pair<>(null, info), mCallback.appeared.get(vh)); in processAppear()
174 assertEquals(new Pair<>(info, null), mCallback.disappeared.get(vh)); in processDisappearNormal()
187 assertEquals(new Pair<>(info, null), mCallback.disappeared.get(vh)); in processDisappearMissingLayout()
202 assertEquals(new Pair<>(pre, post), mCallback.disappeared.get(vh)); in processDisappearMoveOut()
221 assertEquals(mCallback.persistent.get(vh), new Pair<>(pre, post)); in processDisappearAppear()
278 final Map<ViewHolder, Pair<ItemHolderInfo, ItemHolderInfo>> disappeared = new HashMap<>();
279 final Map<ViewHolder, Pair<ItemHolderInfo, ItemHolderInfo>> appeared = new HashMap<>();
280 final Map<ViewHolder, Pair<ItemHolderInfo, ItemHolderInfo>> persistent = new HashMap<>();
288 disappeared.put(viewHolder, new Pair<>(preInfo, postInfo)); in processDisappeared()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmSmsCbMessage.java21 import android.util.Pair;
79 Pair<String, String> p = parseBody(header, pdu); in createSmsCbMessage()
115 private static Pair<String, String> parseBody(SmsCbHeader header, byte[] pdu) { in parseBody()
212 Pair<String, String> p = unpackBody(pdu, encoding, offset, length, in parseBody()
217 return new Pair<String, String>(language, sb.toString()); in parseBody()
241 private static Pair<String, String> unpackBody(byte[] pdu, int encoding, int offset, int length, in unpackBody()
290 return new Pair<String, String>(language, body); in unpackBody()

12345678