/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | FontTestUtil.java | 19 import android.util.Pair; 84 private static final List<Pair<Integer, Boolean>> sStyleList; 85 private static final Map<Pair<Integer, Boolean>, String> sFontMap; 86 private static final Map<Pair<Integer, Boolean>, Integer> sTtcMap; 87 private static final Map<Pair<Integer, Boolean>, String> sVariationSettingsMap; 132 ArrayList<Pair<Integer, Boolean>> styles = new ArrayList<>(); 133 styles.add(new Pair<>(100, false)); in styles.add() 134 styles.add(new Pair<>(100, true)); in styles.add() 135 styles.add(new Pair<>(200, false)); in styles.add() 136 styles.add(new Pair<>(200, true)); in styles.add() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
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)); in addUserKeyAuth() 40 ArrayList<Pair<byte[], byte[]>> auths = getUserAuth(userId); in clearUserKeyAuth() 44 auths.remove(new Pair<>(token, secret)); in clearUserKeyAuth() 45 auths.add(new Pair<>(null, null)); in clearUserKeyAuth() 49 ArrayList<Pair<byte[], byte[]>> auths = mAuth.get(userId); in fixateNewestUserKeyAuth() 50 Pair<byte[], byte[]> latest = auths.get(auths.size() - 1); in fixateNewestUserKeyAuth() 55 private ArrayList<Pair<byte[], byte[]>> getUserAuth(int userId) { in getUserAuth() 57 ArrayList<Pair<byte[], byte[]>> auths = new ArrayList<Pair<byte[], byte[]>>(); in getUserAuth() [all …]
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | NetworkSecurityConfigTests.java | 24 import android.util.Pair; 125 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testEmptyConfig() 126 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); in testEmptyConfig() 134 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testEmptyPerNetworkSecurityConfig() 135 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); in testEmptyPerNetworkSecurityConfig() 136 domainMap.add(new Pair<Domain, NetworkSecurityConfig>( in testEmptyPerNetworkSecurityConfig() 152 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testBadPin() 153 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); in testBadPin() 154 domainMap.add(new Pair<Domain, NetworkSecurityConfig>( in testBadPin() 170 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testGoodPin() [all …]
|
D | TestConfigSource.java | 19 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/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | CallQualityMetrics.java | 25 import android.util.Pair; 62 private ArrayList<Pair<CallQuality, Integer>> mUlSnapshots = new ArrayList<>(); 65 private ArrayList<Pair<CallQuality, Integer>> mDlSnapshots = new ArrayList<>(); 83 private Pair<CallQuality, Integer> mWorstSsWithGoodDlQuality; 84 private Pair<CallQuality, Integer> mBestSsWithGoodDlQuality; 85 private Pair<CallQuality, Integer> mWorstSsWithBadDlQuality; 86 private Pair<CallQuality, Integer> mBestSsWithBadDlQuality; 87 private Pair<CallQuality, Integer> mWorstSsWithGoodUlQuality; 88 private Pair<CallQuality, Integer> mBestSsWithGoodUlQuality; 89 private Pair<CallQuality, Integer> mWorstSsWithBadUlQuality; [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | TestOnlyInsecureCertificateHelperTest.java | 6 import android.util.Pair; 68 Map<String, Pair<SecretKey, byte[]>> rawKeys = new HashMap<>(); in testKeepOnlyWhitelistedInsecureKeys_emptyKeysList() 69 Map<String, Pair<SecretKey, byte[]>> expectedResult = new HashMap<>(); in testKeepOnlyWhitelistedInsecureKeys_emptyKeysList() 71 Map<String, Pair<SecretKey, byte[]>> filteredKeys = in testKeepOnlyWhitelistedInsecureKeys_emptyKeysList() 79 Map<String, Pair<SecretKey, byte[]>> rawKeys = new HashMap<>(); in testKeepOnlyWhitelistedInsecureKeys_singleNonWhitelistedKey() 80 Map<String, Pair<SecretKey, byte[]>> expectedResult = new HashMap<>(); in testKeepOnlyWhitelistedInsecureKeys_singleNonWhitelistedKey() 83 rawKeys.put(alias, Pair.create(TestData.generateKey(), /*metadata=*/ null)); in testKeepOnlyWhitelistedInsecureKeys_singleNonWhitelistedKey() 85 Map<String, Pair<SecretKey, byte[]>> filteredKeys = in testKeepOnlyWhitelistedInsecureKeys_singleNonWhitelistedKey() 93 Map<String, Pair<SecretKey, byte[]>> rawKeys = new HashMap<>(); in testKeepOnlyWhitelistedInsecureKeys_singleWhitelistedKey() 94 Map<String, Pair<SecretKey, byte[]>> expectedResult = new HashMap<>(); in testKeepOnlyWhitelistedInsecureKeys_singleWhitelistedKey() [all …]
|
/frameworks/base/libs/hwui/utils/ |
D | Pair.h | 26 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 42 struct trait_trivial_ctor<uirenderer::Pair<F, S> > { argument 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/base/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryablePair.java | 22 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | RoamingConsortiumElementTest.java | 22 import android.util.Pair; 43 private static final Pair<Integer, Long> TEST_OI1 = new Pair<Integer, Long>(1, 0x12L); 44 private static final Pair<Integer, Long> TEST_OI2 = new Pair<Integer, Long>(2, 0x1234L); 45 private static final Pair<Integer, Long> TEST_OI3 = new Pair<Integer, Long>(4, 0x12345678L); 46 private static final Pair<Integer, Long> TEST_OI4 = new Pair<Integer, Long>(8, 0x1234567890L); 54 private void appendOI(ByteArrayOutputStream stream, Pair<Integer, Long> oi) { in appendOI() 68 private byte[] getTestData(List<Pair<Integer, Long>> ois) throws IOException { in getTestData() 70 for (Pair<Integer, Long> oi : ois) { in getTestData() 83 List<Pair<Integer, Long>> oiList = new ArrayList<>(); in getDefaultTestData()
|
/frameworks/base/core/java/android/util/ |
D | Pair.java | 26 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/ |
D | HdmiLogger.java | 21 import android.util.Pair; 52 private final HashMap<String, Pair<Long, Integer>> mWarningTimingCache = new HashMap<>(); 54 private final HashMap<String, Pair<Long, Integer>> mErrorTimingCache = new HashMap<>(); 112 private static String updateLog(HashMap<String, Pair<Long, Integer>> cache, String logMessage) { in updateLog() 114 Pair<Long, Integer> timing = cache.get(logMessage); in updateLog() 117 cache.put(logMessage, new Pair<>(curTime, 1)); in updateLog() 125 private static String buildMessage(String message, @Nullable Pair<Long, Integer> timing) { in buildMessage() 131 private static void increaseLogCount(HashMap<String, Pair<Long, Integer>> cache, in increaseLogCount() 133 Pair<Long, Integer> timing = cache.get(message); in increaseLogCount() 135 cache.put(message, new Pair<>(timing.first, timing.second + 1)); in increaseLogCount() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ServiceStateTest.java | 27 import android.util.Pair; 147 ArrayList<Pair<Integer, Boolean>> rats = new ArrayList<Pair<Integer, Boolean>>(); in testRAT() 149 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_IS95A, true)); in testRAT() 150 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_IS95B, true)); in testRAT() 151 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT, true)); in testRAT() 152 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0, true)); in testRAT() 153 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A, true)); in testRAT() 154 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_B, true)); in testRAT() 155 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EHRPD, true)); in testRAT() 157 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_GPRS, false)); in testRAT() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiNetworkAgentSpecifierTest.java | 27 import android.util.Pair; 199 Pair<MacAddress, MacAddress> bssidPattern = in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern() 200 Pair.create(MacAddress.ALL_ZEROS_ADDRESS, MacAddress.ALL_ZEROS_ADDRESS); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern() 227 Pair<MacAddress, MacAddress> bssidPattern = in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern() 228 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern() 256 Pair<MacAddress, MacAddress> bssidPattern = in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern() 257 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern() 290 Pair<MacAddress, MacAddress> bssidPattern = in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidPattern() 291 Pair.create(MacAddress.ALL_ZEROS_ADDRESS, MacAddress.ALL_ZEROS_ADDRESS); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidPattern() 323 Pair<MacAddress, MacAddress> bssidPattern = in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithBssidPattern() [all …]
|
/frameworks/av/media/img_utils/include/img_utils/ |
D | Pair.h | 29 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/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | BluetoothUtils.java | 14 import android.util.Pair; 64 public static Pair<Drawable, String> getBtClassDrawableWithDescription(Context context, in getBtClassDrawableWithDescription() 70 return new Pair<>(getBluetoothDrawable(context, in getBtClassDrawableWithDescription() 75 return new Pair<>( in getBtClassDrawableWithDescription() 81 return new Pair<>( in getBtClassDrawableWithDescription() 86 return new Pair<>( in getBtClassDrawableWithDescription() 100 return new Pair<>(getBluetoothDrawable(context, resId), null); in getBtClassDrawableWithDescription() 105 return new Pair<>( in getBtClassDrawableWithDescription() 111 return new Pair<>( in getBtClassDrawableWithDescription() 117 return new Pair<>( in getBtClassDrawableWithDescription() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
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)); 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/hp/ |
D | ServiceResolveQueue.java | 21 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | DomainMatcherTest.java | 23 import android.util.Pair; 61 private static final Map<Pair<String, String>, Boolean> TEST_ARG_DOMAIN_MAP = new HashMap<>(); 63 TEST_ARG_DOMAIN_MAP.put(new Pair<String, String>("test.com", "abc.test.com"), true); in TEST_ARG_DOMAIN_MAP.put() 64 TEST_ARG_DOMAIN_MAP.put(new Pair<String, String>("test.com", "ad.abc.test.com"), true); in TEST_ARG_DOMAIN_MAP.put() 65 TEST_ARG_DOMAIN_MAP.put(new Pair<String, String>("com", "test.com"), true); in TEST_ARG_DOMAIN_MAP.put() 66 TEST_ARG_DOMAIN_MAP.put(new Pair<String, String>("abc.test.com", "test.com"), false); in TEST_ARG_DOMAIN_MAP.put() 67 TEST_ARG_DOMAIN_MAP.put(new Pair<String, String>("test1.com", "test.com"), false); in TEST_ARG_DOMAIN_MAP.put() 68 TEST_ARG_DOMAIN_MAP.put(new Pair<String, String>("test.com", "com"), false); in TEST_ARG_DOMAIN_MAP.put() 176 for (Map.Entry<Pair<String, String>, Boolean> entry : TEST_ARG_DOMAIN_MAP.entrySet()) { in verifyArg2SubdomainOfArg1()
|
/frameworks/base/media/java/android/media/ |
D | MicrophoneInfo.java | 22 import android.util.Pair; 155 private List<Pair<Float, Float>> mFrequencyResponse; 156 private List<Pair<Integer, Integer>> mChannelMapping; 170 Coordinate3F orientation, List<Pair<Float, Float>> frequencyResponse, in MicrophoneInfo() 171 List<Pair<Integer, Integer>> channelMapping, float sensitivity, float maxSpl, in MicrophoneInfo() 300 public List<Pair<Float, Float>> getFrequencyResponse() { in getFrequencyResponse() 316 public List<Pair<Integer, Integer>> getChannelMapping() { in getChannelMapping() 372 public void setChannelMapping(List<Pair<Integer, Integer>> channelMapping) { in setChannelMapping()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
D | PageRangeUtils.java | 21 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/base/core/java/android/service/autofill/ |
D | CustomDescription.java | 28 import android.util.Pair; 93 private final ArrayList<Pair<Integer, InternalTransformation>> mTransformations; 94 private final ArrayList<Pair<InternalValidator, BatchUpdates>> mUpdates; 112 public ArrayList<Pair<Integer, InternalTransformation>> getTransformations() { in getTransformations() 118 public ArrayList<Pair<InternalValidator, BatchUpdates>> getUpdates() { in getUpdates() 136 private ArrayList<Pair<Integer, InternalTransformation>> mTransformations; 137 private ArrayList<Pair<InternalValidator, BatchUpdates>> mUpdates; 187 mTransformations.add(new Pair<>(id, (InternalTransformation) transformation)); in addChild() 283 mUpdates.add(new Pair<>((InternalValidator) condition, updates)); in batchUpdate() 396 final Pair<Integer, InternalTransformation> pair = mTransformations.get(i); in writeToParcel() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiNetworkSpecifier.java | 33 import android.util.Pair; 51 private static final Pair<MacAddress, MacAddress> MATCH_NO_BSSID_PATTERN1 = 52 new Pair(MacAddress.BROADCAST_ADDRESS, MacAddress.BROADCAST_ADDRESS); 53 private static final Pair<MacAddress, MacAddress> MATCH_NO_BSSID_PATTERN2 = 54 new Pair(MacAddress.ALL_ZEROS_ADDRESS, MacAddress.BROADCAST_ADDRESS); 55 private static final Pair<MacAddress, MacAddress> MATCH_ALL_BSSID_PATTERN = 56 new Pair(MacAddress.ALL_ZEROS_ADDRESS, MacAddress.ALL_ZEROS_ADDRESS); 68 private @Nullable Pair<MacAddress, MacAddress> mBssidPatternMatcher; 161 mBssidPatternMatcher = Pair.create(baseAddress, mask); in setBssidPattern() 179 mBssidPatternMatcher = Pair.create(bssid, MATCH_EXACT_BSSID_PATTERN_MASK); in setBssid() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | TestOnlyInsecureCertificateHelper.java | 27 import android.util.Pair; 116 public Map<String, Pair<SecretKey, byte[]>> keepOnlyWhitelistedInsecureKeys( in keepOnlyWhitelistedInsecureKeys() 117 Map<String, Pair<SecretKey, byte[]>> rawKeys) { in keepOnlyWhitelistedInsecureKeys() 121 Map<String, Pair<SecretKey, byte[]>> filteredKeys = new HashMap<>(); in keepOnlyWhitelistedInsecureKeys() 122 for (Map.Entry<String, Pair<SecretKey, byte[]>> entry : rawKeys.entrySet()) { in keepOnlyWhitelistedInsecureKeys() 127 Pair.create(entry.getValue().first, entry.getValue().second)); in keepOnlyWhitelistedInsecureKeys()
|
/frameworks/compile/mclinker/include/mcld/Target/ |
D | ELFDynamic.tcc | 28 sizeof(Pair)); in emit() 29 return sizeof(Pair); in emit() 50 sizeof(Pair)); in emit() 51 return sizeof(Pair); in emit()
|
/frameworks/base/core/java/android/security/net/config/ |
D | ApplicationConfig.java | 19 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() 161 for (Pair<Domain, NetworkSecurityConfig> entry : mConfigs) { in handleTrustStorageUpdate()
|