/packages/providers/TvProvider/tests/src/com/android/providers/tv/util/ |
D | SqliteTokenFinderTest.java | 21 import android.util.Pair; 34 private List<Pair<Integer, String>> getTokens(String sql) { in getTokens() 35 List<Pair<Integer, String>> tokens = new ArrayList<>(); in getTokens() 36 SqliteTokenFinder.findTokens(sql, new Consumer<Pair<Integer, String>>() { in getTokens() 38 public void accept(Pair<Integer, String> pair) { in getTokens() 45 private void checkTokens(String sql, Pair<Integer, String>... tokens) { in checkTokens() 46 final List<Pair<Integer, String>> expected = Arrays.asList(tokens); in checkTokens() 52 List<Pair<Integer, String>> expected = new ArrayList<>(); in checkTokensRegular() 56 expected.add(Pair.create(SqliteTokenFinder.TYPE_REGULAR, token)); in checkTokensRegular() 102 checkTokens("''", Pair.create(SqliteTokenFinder.TYPE_IN_SINGLE_QUOTES, "")); in testSingleQuotes() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/storage/ |
D | BluetoothDatabaseMigration.java | 26 import android.util.Pair; 72 private static final List<Pair<Integer, String>> CONNECTION_POLICIES = 74 new Pair(BluetoothProfile.A2DP, "a2dp_connection_policy"), 75 new Pair(BluetoothProfile.A2DP_SINK, "a2dp_sink_connection_policy"), 76 new Pair(BluetoothProfile.HEADSET, "hfp_connection_policy"), 77 new Pair(BluetoothProfile.HEADSET_CLIENT, "hfp_client_connection_policy"), 78 new Pair(BluetoothProfile.HID_HOST, "hid_host_connection_policy"), 79 new Pair(BluetoothProfile.PAN, "pan_connection_policy"), 80 new Pair(BluetoothProfile.PBAP, "pbap_connection_policy"), 81 new Pair(BluetoothProfile.PBAP_CLIENT, "pbap_client_connection_policy"), [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | PropertyHalServiceIds.java | 47 import android.util.Pair; 71 private final SparseArray<Pair<String, String>> mProps; 187 mProps.put(VehicleProperty.DOOR_POS, new Pair<>( in PropertyHalServiceIds() 190 mProps.put(VehicleProperty.DOOR_MOVE, new Pair<>( in PropertyHalServiceIds() 193 mProps.put(VehicleProperty.DOOR_LOCK, new Pair<>( in PropertyHalServiceIds() 196 mProps.put(VehicleProperty.MIRROR_Z_POS, new Pair<>( in PropertyHalServiceIds() 199 mProps.put(VehicleProperty.MIRROR_Z_MOVE, new Pair<>( in PropertyHalServiceIds() 202 mProps.put(VehicleProperty.MIRROR_Y_POS, new Pair<>( in PropertyHalServiceIds() 205 mProps.put(VehicleProperty.MIRROR_Y_MOVE, new Pair<>( in PropertyHalServiceIds() 208 mProps.put(VehicleProperty.MIRROR_LOCK, new Pair<>( in PropertyHalServiceIds() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | DataMigrationTest.java | 41 import android.util.Pair; 307 private static final List<Pair<String, Object>> FAKE_SAMPLE = 309 new Pair("wrong_key", "wrong_content") 345 private static final List<Pair<String, Object>> BLUETOOTH_DATABASE_SAMPLE = 347 new Pair("address", "my_address"), 348 new Pair("migrated", 1), 349 new Pair("a2dpSupportsOptionalCodecs", OPTIONAL_CODECS_NOT_SUPPORTED), 350 new Pair("a2dpOptionalCodecsEnabled", OPTIONAL_CODECS_PREF_DISABLED), 351 new Pair("last_active_time", 42), 352 new Pair("is_active_a2dp_device", 1), [all …]
|
/packages/modules/Bluetooth/system/gd/common/ |
D | list_map_test.cc | 109 EXPECT_THAT(iter->second, ElementsAre(Pair(1, 100))); in TEST() 114 EXPECT_THAT(iter->second, ElementsAre(Pair(2, 200))); in TEST() 140 EXPECT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(3, 30))); in TEST() 156 EXPECT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(4, 40), Pair(2, 20), Pair(3, 30))); in TEST() 165 EXPECT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(3, 30), Pair(2, 20))); in TEST() 168 EXPECT_THAT(list_map, ElementsAre(Pair(4, 40), Pair(1, 10), Pair(3, 30))); in TEST() 174 EXPECT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(3, 30), Pair(4, 40))); in TEST() 208 ASSERT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(42, 420), Pair(2, 20))); in TEST() 221 ASSERT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(2, 20), Pair(42, 420))); in TEST() 234 ASSERT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(42, 420), Pair(2, 20))); in TEST() [all …]
|
D | lru_cache_test.cc | 81 ASSERT_THAT(cache, ElementsAre(Pair(42, 420), Pair(2, 20))); in TEST() 130 EXPECT_THAT(iter->second, ElementsAre(Pair(1, 100))); in TEST() 135 EXPECT_THAT(iter->second, ElementsAre(Pair(2, 200))); in TEST() 150 EXPECT_THAT(cache, ElementsAre(Pair(3, 30), Pair(1, 10))); in TEST() 165 EXPECT_THAT(cache, ElementsAre(Pair(3, 30), Pair(1, 10))); in TEST() 313 ASSERT_THAT(cache, ElementsAre(Pair(2, 20), Pair(1, 10))); in TEST() 315 ASSERT_THAT(cache, ElementsAre(Pair(2, 200), Pair(1, 10))); in TEST() 318 ASSERT_THAT(cache, ElementsAre(Pair(1, 100), Pair(2, 200))); in TEST() 321 ASSERT_THAT(cache, ElementsAre(Pair(1, 100), Pair(2, 400))); in TEST() 386 ASSERT_THAT(lru_cache, ElementsAre(Pair(2, 20), Pair(1, 10))); in TEST() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | DatabaseUtilsTest.java | 49 import android.util.Pair; 241 recoverAbusiveGroupBy(Pair.create("foo=bar GROUP BY foo", null)); in testRecoverAbusiveGroupBy_Conflicting() 244 recoverAbusiveGroupBy(Pair.create("foo=bar", "foo")); in testRecoverAbusiveGroupBy_Conflicting() 248 recoverAbusiveGroupBy(Pair.create("foo=bar GROUP BY foo", "foo")); in testRecoverAbusiveGroupBy_Conflicting() 256 final Pair<String, String> input = Pair.create( in testRecoverAbusiveGroupBy_Buckets() 259 final Pair<String, String> expected = Pair.create( in testRecoverAbusiveGroupBy_Buckets() 267 final Pair<String, String> input = Pair.create( in testRecoverAbusiveGroupBy_BucketsByPath() 270 final Pair<String, String> expected = Pair.create( in testRecoverAbusiveGroupBy_BucketsByPath() 278 final Pair<String, String> input = Pair.create( in testRecoverAbusiveGroupBy_113651872() 281 final Pair<String, String> expected = Pair.create( in testRecoverAbusiveGroupBy_113651872() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/ |
D | OtaControllerTest.java | 34 import android.util.Pair; 82 private List<Pair<Integer, AbstractProvisioningTask>> mTasks = new ArrayList<>(); 119 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testDeviceOwnerSystemUser() 120 Pair.create(UserHandle.USER_SYSTEM, DeleteNonRequiredAppsTask.class), in testDeviceOwnerSystemUser() 121 Pair.create(UserHandle.USER_SYSTEM, DisallowAddUserTask.class), in testDeviceOwnerSystemUser() 122 Pair.create(UserHandle.USER_SYSTEM, UpdateInteractAcrossProfilesAppOpTask.class)); in testDeviceOwnerSystemUser() 142 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testManagedProfileWithoutMissingSystemIme() 143 Pair.create(MANAGED_PROFILE_USER_ID, InstallExistingPackageTask.class), in testManagedProfileWithoutMissingSystemIme() 144 Pair.create(MANAGED_PROFILE_USER_ID, DeleteNonRequiredAppsTask.class), in testManagedProfileWithoutMissingSystemIme() 145 Pair.create(UserHandle.USER_SYSTEM, UpdateInteractAcrossProfilesAppOpTask.class)); in testManagedProfileWithoutMissingSystemIme() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkNominateHelperTest.java | 47 import android.util.Pair; 183 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithNoMatch() 202 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithNoInterworkingAP() 223 List<Pair<PasspointProvider, PasspointMatch>> homeProvider = new ArrayList<>(); in evaluateScansWithNetworkMatchingHomeProvider() 224 homeProvider.add(Pair.create(sTestProvider1, PasspointMatch.HomeProvider)); in evaluateScansWithNetworkMatchingHomeProvider() 233 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithNetworkMatchingHomeProvider() 272 List<Pair<PasspointProvider, PasspointMatch>> homeProvider = new ArrayList<>(); in evaluateScansWithNoInternetBit() 273 homeProvider.add(Pair.create(sTestProvider1, PasspointMatch.HomeProvider)); in evaluateScansWithNoInternetBit() 282 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithNoInternetBit() 314 List<Pair<PasspointProvider, PasspointMatch>> roamingProvider = new ArrayList<>(); in evaluateScansWithNetworkMatchingRoamingProvider() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/language/ |
D | LocalePreferenceProviderTest.java | 57 private static class Pair { class in LocalePreferenceProviderTest 61 Pair(int itemType, LocaleStore.LocaleInfo localeInfo) { in Pair() method in LocalePreferenceProviderTest.Pair 75 private List<Pair> mLocaleAdapterExpectedValues; 100 mLocaleAdapterExpectedValues.add(new Pair(LocalePreferenceProvider.TYPE_LOCALE, in testPopulateBasePreference_noSubSections() 102 mLocaleAdapterExpectedValues.add(new Pair(LocalePreferenceProvider.TYPE_LOCALE, in testPopulateBasePreference_noSubSections() 104 mLocaleAdapterExpectedValues.add(new Pair(LocalePreferenceProvider.TYPE_LOCALE, in testPopulateBasePreference_noSubSections() 116 new Pair(LocalePreferenceProvider.TYPE_HEADER_SUGGESTED, null)); in testPopulateBasePreference_withSubSections() 117 mLocaleAdapterExpectedValues.add(new Pair(LocalePreferenceProvider.TYPE_LOCALE, in testPopulateBasePreference_withSubSections() 119 mLocaleAdapterExpectedValues.add(new Pair(LocalePreferenceProvider.TYPE_LOCALE, in testPopulateBasePreference_withSubSections() 122 new Pair(LocalePreferenceProvider.TYPE_HEADER_ALL_OTHERS, null)); in testPopulateBasePreference_withSubSections() [all …]
|
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | ClientPlaylistTest.java | 40 import android.util.Pair; 145 Pair.create(mRed, 1), in testAdd() 146 Pair.create(mGreen, 2)), queryMembers(membersUri)); in testAdd() 155 Pair.create(mBlue, 1), in testAdd() 156 Pair.create(mRed, 2), in testAdd() 157 Pair.create(mGreen, 3)), queryMembers(membersUri)); in testAdd() 180 Pair.create(mGreen, 1), in testMove() 181 Pair.create(mBlue, 2), in testMove() 182 Pair.create(mRed, 3)), queryMembers(membersUri)); in testMove() 189 Pair.create(mRed, 1), in testMove() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/tbs/ |
D | TbsGattTest.java | 31 import android.util.Pair; 205 Pair<Integer, Boolean> flagStatePair = (Pair<Integer, Boolean>) value; in verifySetValue() 238 Pair<Map<Integer, TbsCall>, byte[]> callsExpectedPacketPair = in verifySetValue() 239 (Pair<Map<Integer, TbsCall>, byte[]>) value; in verifySetValue() 245 Pair<Map<Integer, TbsCall>, byte[]> callsExpectedPacketPair = in verifySetValue() 246 (Pair<Map<Integer, TbsCall>, byte[]>) value; in verifySetValue() 252 Pair<Integer, Integer> indexReasonPair = (Pair<Integer, Integer>) value; in verifySetValue() 266 Pair<Integer, String> indexStrPair = (Pair<Integer, String>) value; in verifySetValue() 280 Pair<Integer, String> indexNamePair = (Pair<Integer, String>) value; in verifySetValue() 369 new Pair<Map<Integer, TbsCall>, byte[]>(callsMap, packetExpected), true); in testSetCurrentCallList() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/ |
D | ProvisioningManagerHelper.java | 22 import android.util.Pair; 46 private Pair<Pair<Integer, Integer>, Boolean> mLastError; // TODO: refactor 47 private Pair<Pair<Integer, String>, Boolean> mLastTextError; // TODO: refactor 88 mLastError = Pair.create(Pair.create(titleId, messageId), factoryResetRequired); in error() 100 mLastTextError = Pair.create(Pair.create(titleId, message), factoryResetRequired); in error() 108 final Pair<Pair<Integer, Integer>, Boolean> error = mLastError; in callLastCallbackLocked() 113 final Pair<Pair<Integer, String>, Boolean> error = mLastTextError; in callLastCallbackLocked()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | RoamingConsortiumElementTest.java | 22 import android.util.Pair; 45 private static final Pair<Integer, Long> TEST_OI1 = new Pair<Integer, Long>(1, 0x12L); 46 private static final Pair<Integer, Long> TEST_OI2 = new Pair<Integer, Long>(2, 0x1234L); 47 private static final Pair<Integer, Long> TEST_OI3 = new Pair<Integer, Long>(4, 0x12345678L); 48 private static final Pair<Integer, Long> TEST_OI4 = new Pair<Integer, Long>(8, 0x1234567890L); 56 private void appendOI(ByteArrayOutputStream stream, Pair<Integer, Long> oi) { in appendOI() 70 private byte[] getTestData(List<Pair<Integer, Long>> ois) throws IOException { in getTestData() 72 for (Pair<Integer, Long> oi : ois) { in getTestData() 85 List<Pair<Integer, Long>> oiList = new ArrayList<>(); in getDefaultTestData()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkSuggestionNominatorTest.java | 34 import android.util.Pair; 123 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in testSelectNetworkSuggestionForNoMatch() 127 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForNoMatch() 166 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in testSelectNetworkSuggestionForOneMatch() 170 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForOneMatch() 208 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion() 212 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion() 253 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in testSelectNetworkSuggestionForMultipleMatch() 257 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForMultipleMatch() 298 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins() [all …]
|
/packages/modules/Connectivity/nearby/tests/multidevices/ |
D | README.md | 1 # Nearby Mainline Fast Pair end-to-end tests 3 This document refers to the Mainline Fast Pair project source code in the 7 ## About the Fast Pair Project 10 Better Together related functionality. Fast Pair is one of the main 27 ├── Phone 1: As Fast Pair seeker role, to scan, pair Fast Pair devices nearby \ 28 └── Phone 2: As Fast Pair provider role, to simulate a Fast Pair device (for 33 ### Prepare Phone 1 (Fast Pair seeker role) 35 This is the phone to scan/pair Fast Pair devices nearby using the Nearby 38 ### Prepare Phone 2 (Fast Pair provider role) 40 This is the phone to simulate a Fast Pair device (for example, a Bluetooth [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiNetworkAgentSpecifierTest.java | 27 import android.util.Pair; 189 Pair<MacAddress, MacAddress> bssidPattern = in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern() 190 Pair.create(WifiManager.ALL_ZEROS_MAC_ADDRESS, WifiManager.ALL_ZEROS_MAC_ADDRESS); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern() 217 Pair<MacAddress, MacAddress> bssidPattern = in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern() 218 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern() 246 Pair<MacAddress, MacAddress> bssidPattern = in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern() 247 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern() 279 Pair<MacAddress, MacAddress> bssidPattern = in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidPattern() 280 Pair.create(WifiManager.ALL_ZEROS_MAC_ADDRESS, WifiManager.ALL_ZEROS_MAC_ADDRESS); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidPattern() 307 Pair<MacAddress, MacAddress> bssidPattern = in testWifiNetworkAgentSpecifierBandMatching() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/ |
D | RoleSortFunction.java | 23 import android.util.Pair; 38 public class RoleSortFunction implements Function<List<Pair<ApplicationInfo, Boolean>>, 39 List<Pair<ApplicationInfo, Boolean>>> { 42 private final Comparator<Pair<ApplicationInfo, Boolean>> mComparator; 47 Comparator<Pair<ApplicationInfo, Boolean>> labelComparator = Comparator.comparing(role -> in RoleSortFunction() 49 Comparator<Pair<ApplicationInfo, Boolean>> userIdComparator = Comparator.comparingInt(role in RoleSortFunction() 56 public List<Pair<ApplicationInfo, Boolean>> apply( in apply() 57 @NonNull List<Pair<ApplicationInfo, Boolean>> input) { in apply() 58 List<Pair<ApplicationInfo, Boolean>> sorted = new ArrayList<>(input); in apply()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/ |
D | BufferManager.java | 25 import android.util.Pair; 66 private final Map<String, SortedMap<Long, Pair<SampleChunk, Integer>>> mChunkMap = 291 void writeIndexFile(String trackName, SortedMap<Long, Pair<SampleChunk, Integer>> index) in writeIndexFile() 397 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(id); in createNewWriteFileIfNeeded() 409 map.put(positionUs, Pair.create(sampleChunk, 0)); in createNewWriteFileIfNeeded() 415 map.put(positionUs, Pair.create(currentChunk, currentOffset)); in createNewWriteFileIfNeeded() 436 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(trackId); in loadTrackFromStorage() 457 map.put(position.positionUs, Pair.create(chunk, position.offset)); in loadTrackFromStorage() 468 public Pair<SampleChunk, Integer> getReadFile(String id, long positionUs) { in getReadFile() 469 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(id); in getReadFile() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/ |
D | BufferManager.java | 25 import android.util.Pair; 65 private final Map<String, SortedMap<Long, Pair<SampleChunk, Integer>>> mChunkMap = 288 void writeIndexFile(String trackName, SortedMap<Long, Pair<SampleChunk, Integer>> index) in writeIndexFile() 394 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(id); in createNewWriteFileIfNeeded() 406 map.put(positionUs, Pair.create(sampleChunk, 0)); in createNewWriteFileIfNeeded() 412 map.put(positionUs, Pair.create(currentChunk, currentOffset)); in createNewWriteFileIfNeeded() 432 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(trackId); in loadTrackFromStorage() 453 map.put(position.positionUs, Pair.create(chunk, position.offset)); in loadTrackFromStorage() 464 public Pair<SampleChunk, Integer> getReadFile(String id, long positionUs) { in getReadFile() 465 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(id); in getReadFile() [all …]
|
/packages/modules/StatsD/lib/libkll/tests/ |
D | sampler_test.cpp | 37 using ::testing::Pair; 52 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(Eq(4), Eq(1)))); in TEST_F() 60 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(Eq(4), Eq(1)))); in TEST_F() 62 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(AnyOf(Eq(4), Eq(10)), Eq(2)))); in TEST_F() 64 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(_, Eq(3)))); in TEST_F() 80 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(Eq(4), Eq(1)))); in TEST_F() 109 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(AnyOf(Eq(1), Eq(2)), Eq(2)))); in TEST_F() 143 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(Eq(3), Eq(1)))); in TEST_F() 157 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(Eq(5), Eq(1)))); in TEST_F() 181 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(Eq(3), Eq(1)))); in TEST_F() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | ConnectionServiceRepository.java | 22 import android.util.Pair; 34 private final HashMap<Pair<ComponentName, UserHandle>, ConnectionServiceWrapper> mServiceCache = 46 mServiceCache.remove(Pair.create(service.getComponentName(), 65 Pair<ComponentName, UserHandle> cacheKey = Pair.create(componentName, userHandle); in getService() 85 Pair<ComponentName, UserHandle> cacheKey = Pair.create(componentName, userHandle); in setService() 97 for (Pair<ComponentName, UserHandle> cacheKey : mServiceCache.keySet()) { in dump()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
D | LauncherLayoutBuilder.java | 20 import android.util.Pair; 70 private final ArrayList<Pair<String, HashMap<String, Object>>> mNodes = new ArrayList<>(); 107 ArrayList<Pair<String, HashMap<String, Object>>> nodes) throws IOException { in writeNodes() 108 for (Pair<String, HashMap<String, Object>> node : nodes) { in writeNodes() 109 ArrayList<Pair<String, HashMap<String, Object>>> children = null; in writeNodes() 114 children = (ArrayList<Pair<String, HashMap<String, Object>>>) attr.getValue(); in writeNodes() 134 mNodes.add(Pair.create(TAG_AUTO_INSTALL, items)); in putApp() 144 mNodes.add(Pair.create(TAG_APPWIDGET, items)); in putWidget() 161 mNodes.add(Pair.create(TAG_FOLDER, items)); in putFolder() 168 final ArrayList<Pair<String, HashMap<String, Object>>> mChildren = new ArrayList<>(); [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/input/ |
D | CarInputManagerTest.java | 41 import android.util.Pair; 88 private final LinkedList<Pair<Integer, List<KeyEvent>>> mKeyEvents = new LinkedList<>(); 92 private final LinkedList<Pair<Integer, List<RotaryEvent>>> mRotaryEvents = 97 private final LinkedList<Pair<Integer, List<CustomInputEvent>>> mCustomInputEvents = 102 private final LinkedList<Pair<Integer, int[]>> mStateChanges = new LinkedList<>(); 114 mKeyEvents.addFirst(new Pair<>(targetDisplayType, keyEvents)); in onKeyEvents() 124 mRotaryEvents.addFirst(new Pair<>(targetDisplayType, events)); in onRotaryEvents() 134 mCustomInputEvents.addFirst(new Pair<>(targetDisplayType, events)); in onCustomInputEvents() 145 mStateChanges.addFirst(new Pair<>(targetDisplayType, activeInputTypes)); in onCaptureStateChanged() 177 private LinkedList<Pair<Integer, List<KeyEvent>>> getkeyEvents() { in getkeyEvents() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbConfigurationManager.java | 19 import android.util.Pair; 76 public <T extends Params> Pair<Integer, T> getAppConfigurations(int sessionId, in getAppConfigurations() 90 public <T extends Params> Pair<Integer, T> getCapsInfo(String protocolName, in getCapsInfo() 102 public <T extends Params> Pair<Integer, T> decodeTLV(String protocolName, in decodeTLV() 109 return Pair.create(UwbUciConstants.STATUS_CODE_FAILED, null); in decodeTLV() 114 return Pair.create(status, null); in decodeTLV() 121 return Pair.create(UwbUciConstants.STATUS_CODE_FAILED, null); in decodeTLV() 131 return Pair.create(UwbUciConstants.STATUS_CODE_FAILED, null); in decodeTLV() 133 return Pair.create(UwbUciConstants.STATUS_CODE_OK, params); in decodeTLV()
|