/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/tests/unit/src/com/android/bluetooth/btservice/ |
D | DataMigrationTest.java | 41 import android.util.Pair; 306 private static final List<Pair<String, Object>> FAKE_SAMPLE = 307 Arrays.asList(new Pair("wrong_key", "wrong_content")); 339 private static final List<Pair<String, Object>> BLUETOOTH_DATABASE_SAMPLE = 341 new Pair("address", "my_address"), 342 new Pair("migrated", 1), 343 new Pair("a2dpSupportsOptionalCodecs", OPTIONAL_CODECS_NOT_SUPPORTED), 344 new Pair("a2dpOptionalCodecsEnabled", OPTIONAL_CODECS_PREF_DISABLED), 345 new Pair("last_active_time", 42), 346 new Pair("is_active_a2dp_device", 1), [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/ |
D | SleepSessionHelperTest.kt | 76 Pair(SLEEP_SESSION_1_START_DATE, SLEEP_SESSION_1_END_DATE), in <lambda>() 77 Pair(SLEEP_SESSION_2_START_DATE, SLEEP_SESSION_2_END_DATE), in <lambda>() 78 Pair(SLEEP_SESSION_3_START_DATE, SLEEP_SESSION_3_END_DATE)))) in <lambda>() 83 .isEqualTo(Pair(SLEEP_SESSION_3_START_DATE, SLEEP_SESSION_2_END_DATE)) in <lambda>() 118 Pair(SLEEP_SESSION_1_START_DATE, SLEEP_SESSION_1_END_DATE), in clusterSessions_allSessionStartAndEndOnSameDay_withSessionUnknownStart_doesNotIncludeUnknownSessionInMinAndMax() 119 Pair(SLEEP_SESSION_2_START_DATE, SLEEP_SESSION_2_END_DATE), in clusterSessions_allSessionStartAndEndOnSameDay_withSessionUnknownStart_doesNotIncludeUnknownSessionInMinAndMax() 120 Pair(SLEEP_SESSION_3_START_DATE, SLEEP_SESSION_3_END_DATE), in clusterSessions_allSessionStartAndEndOnSameDay_withSessionUnknownStart_doesNotIncludeUnknownSessionInMinAndMax() 126 listOf(Pair(SLEEP_SESSION_4_START_DATE, SLEEP_SESSION_4_END_DATE)))) in clusterSessions_allSessionStartAndEndOnSameDay_withSessionUnknownStart_doesNotIncludeUnknownSessionInMinAndMax() 131 .isEqualTo(Pair(SLEEP_SESSION_3_START_DATE, SLEEP_SESSION_2_END_DATE)) in clusterSessions_allSessionStartAndEndOnSameDay_withSessionUnknownStart_doesNotIncludeUnknownSessionInMinAndMax() 166 Pair(SLEEP_SESSION_1_START_DATE, SLEEP_SESSION_1_END_DATE), in clusterSessions_allSessionStartAndEndOnSameDay_withSessionUnknownStartEnd_doesNotIncludeUnknownSessionInMinAndMax() [all …]
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastReceiverMetricsTest.java | 45 import android.util.Pair; 148 HashSet<Pair<Integer, Integer>> compareSet = new HashSet<>(); in testGetFeatureMetrics() 149 compareSet.add(new Pair(0, 0)); in testGetFeatureMetrics() 177 compareSet.add(new Pair(456, 456)); in testGetFeatureMetrics() 178 compareSet.add(new Pair(44032, 45037)); in testGetFeatureMetrics() 191 compareSet.add(new Pair(Integer.MAX_VALUE, Integer.MAX_VALUE)); in testGetFeatureMetrics() 245 HashSet<Pair<Integer, Integer>> testChannelSet1 = new HashSet<>(); in testConvertToProtoBuffer() 246 testChannelSet1.add(new Pair(4370, 4375)); in testConvertToProtoBuffer() 247 testChannelSet1.add(new Pair(9000, 9000)); in testConvertToProtoBuffer() 248 testChannelSet1.add(new Pair(1112, 1133)); in testConvertToProtoBuffer() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | CacheManagerTest.java | 31 import android.util.Pair; 191 Map<Pair<String, String>, Topic> returnedAppSdkTopicsMap1 = new HashMap<>(); in testGetTopics() 192 returnedAppSdkTopicsMap1.put(Pair.create("app1", ""), topic1); in testGetTopics() 193 returnedAppSdkTopicsMap1.put(Pair.create("app1", "sdk1"), topic1); in testGetTopics() 194 returnedAppSdkTopicsMap1.put(Pair.create("app1", "sdk2"), topic1); in testGetTopics() 196 returnedAppSdkTopicsMap1.put(Pair.create("app2", "sdk1"), topic2); in testGetTopics() 197 returnedAppSdkTopicsMap1.put(Pair.create("app2", "sdk3"), topic2); in testGetTopics() 198 returnedAppSdkTopicsMap1.put(Pair.create("app2", "sdk4"), topic2); in testGetTopics() 200 returnedAppSdkTopicsMap1.put(Pair.create("app3", "sdk1"), topic3); in testGetTopics() 202 returnedAppSdkTopicsMap1.put(Pair.create("app5", "sdk1"), topic5); in testGetTopics() [all …]
|
D | AppUpdateManagerTest.java | 36 import android.util.Pair; 173 Map<Pair<String, String>, Topic> returnedAppSdkTopics = new HashMap<>(); in testReconcileUninstalledApps() 174 returnedAppSdkTopics.put(Pair.create(app1, EMPTY_SDK), topic1); in testReconcileUninstalledApps() 175 returnedAppSdkTopics.put(Pair.create(app1, sdk1), topic1); in testReconcileUninstalledApps() 176 returnedAppSdkTopics.put(Pair.create(app2, EMPTY_SDK), topic1); in testReconcileUninstalledApps() 177 returnedAppSdkTopics.put(Pair.create(app2, sdk1), topic1); in testReconcileUninstalledApps() 180 Map<Pair<String, String>, Topic> expectedReturnedTopics = new HashMap<>(); in testReconcileUninstalledApps() 181 expectedReturnedTopics.put(Pair.create(app1, EMPTY_SDK), topic1); in testReconcileUninstalledApps() 182 expectedReturnedTopics.put(Pair.create(app1, sdk1), topic1); in testReconcileUninstalledApps() 183 expectedReturnedTopics.put(Pair.create(app2, EMPTY_SDK), topic1); in testReconcileUninstalledApps() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/ |
D | TopicsDaoTest.java | 36 import android.util.Pair; 383 Map<Pair<String, String>, Topic> returnedAppSdkTopicsForEpoch1 = new HashMap<>(); in testRetrieveDistinctAppsFromTables() 384 returnedAppSdkTopicsForEpoch1.put(Pair.create("app2", ""), topic1); in testRetrieveDistinctAppsFromTables() 385 returnedAppSdkTopicsForEpoch1.put(Pair.create("app2", "sdk1"), topic1); in testRetrieveDistinctAppsFromTables() 386 returnedAppSdkTopicsForEpoch1.put(Pair.create("app2", "sdk2"), topic2); in testRetrieveDistinctAppsFromTables() 389 Map<Pair<String, String>, Topic> returnedAppSdkTopicsForEpoch2 = new HashMap<>(); in testRetrieveDistinctAppsFromTables() 390 returnedAppSdkTopicsForEpoch2.put(Pair.create("app3", ""), topic1); in testRetrieveDistinctAppsFromTables() 391 returnedAppSdkTopicsForEpoch2.put(Pair.create("app3", "sdk1"), topic2); in testRetrieveDistinctAppsFromTables() 420 Map<Pair<String, String>, EncryptedTopic> returnedEncryptedTopicsForEpoch1 = in testRetrieveDistinctAppsFromEncryptedTables() 422 returnedEncryptedTopicsForEpoch1.put(Pair.create("app2", ""), encryptedTopic1); in testRetrieveDistinctAppsFromEncryptedTables() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | KitchenSinkActivity.java | 38 import android.util.Pair; 297 public static final List<Pair<String, Class>> MENU_ENTRIES = Arrays.asList( 298 new Pair<>("activity resolver", ActivityResolverFragment.class), 299 new Pair<>("alert window", AlertDialogTestFragment.class), 300 new Pair<>("assistant", CarAssistantFragment.class), 301 new Pair<>(AudioTestFragment.FRAGMENT_NAME, AudioTestFragment.class), 302 new Pair<>(AudioUserAssignmentFragment.FRAGMENT_NAME, 304 new Pair<>(AudioConfigurationTestFragment.FRAGMENT_NAME, 306 new Pair<>(AudioRecorderTestFragment.FRAGMENT_NAME, 308 new Pair<>(CarAudioInputTestFragment.FRAGMENT_NAME, [all …]
|
/packages/modules/Bluetooth/system/gd/common/ |
D | list_map_test.cc | 108 EXPECT_THAT(iter->second, ElementsAre(Pair(1, 100))); in TEST() 113 EXPECT_THAT(iter->second, ElementsAre(Pair(2, 200))); in TEST() 139 EXPECT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(3, 30))); in TEST() 155 EXPECT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(4, 40), Pair(2, 20), Pair(3, 30))); in TEST() 164 EXPECT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(3, 30), Pair(2, 20))); in TEST() 167 EXPECT_THAT(list_map, ElementsAre(Pair(4, 40), Pair(1, 10), Pair(3, 30))); in TEST() 173 EXPECT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(3, 30), Pair(4, 40))); in TEST() 207 ASSERT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(42, 420), Pair(2, 20))); in TEST() 220 ASSERT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(2, 20), Pair(42, 420))); in TEST() 233 ASSERT_THAT(list_map, ElementsAre(Pair(1, 10), Pair(42, 420), Pair(2, 20))); in TEST() [all …]
|
D | lru_cache_test.cc | 80 ASSERT_THAT(cache, ElementsAre(Pair(42, 420), Pair(2, 20))); in TEST() 129 EXPECT_THAT(iter->second, ElementsAre(Pair(1, 100))); in TEST() 134 EXPECT_THAT(iter->second, ElementsAre(Pair(2, 200))); in TEST() 149 EXPECT_THAT(cache, ElementsAre(Pair(3, 30), Pair(1, 10))); in TEST() 164 EXPECT_THAT(cache, ElementsAre(Pair(3, 30), Pair(1, 10))); in TEST() 312 ASSERT_THAT(cache, ElementsAre(Pair(2, 20), Pair(1, 10))); in TEST() 314 ASSERT_THAT(cache, ElementsAre(Pair(2, 200), Pair(1, 10))); in TEST() 317 ASSERT_THAT(cache, ElementsAre(Pair(1, 100), Pair(2, 200))); in TEST() 320 ASSERT_THAT(cache, ElementsAre(Pair(1, 100), Pair(2, 400))); in TEST() 385 ASSERT_THAT(lru_cache, ElementsAre(Pair(2, 20), Pair(1, 10))); in TEST() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | BpfNetMapsConstants.java | 32 import android.util.Pair; 87 public static final List<Pair<Long, String>> MATCH_LIST = Arrays.asList( 88 Pair.create(HAPPY_BOX_MATCH, "HAPPY_BOX_MATCH"), 89 Pair.create(PENALTY_BOX_USER_MATCH, "PENALTY_BOX_USER_MATCH"), 90 Pair.create(DOZABLE_MATCH, "DOZABLE_MATCH"), 91 Pair.create(STANDBY_MATCH, "STANDBY_MATCH"), 92 Pair.create(POWERSAVE_MATCH, "POWERSAVE_MATCH"), 93 Pair.create(RESTRICTED_MATCH, "RESTRICTED_MATCH"), 94 Pair.create(LOW_POWER_STANDBY_MATCH, "LOW_POWER_STANDBY_MATCH"), 95 Pair.create(IIF_MATCH, "IIF_MATCH"), [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | DatabaseUtilsTest.java | 50 import android.util.Pair; 251 recoverAbusiveGroupBy(Pair.create("foo=bar GROUP BY foo", null)); in testRecoverAbusiveGroupBy_Conflicting() 254 recoverAbusiveGroupBy(Pair.create("foo=bar", "foo")); in testRecoverAbusiveGroupBy_Conflicting() 258 recoverAbusiveGroupBy(Pair.create("foo=bar GROUP BY foo", "foo")); in testRecoverAbusiveGroupBy_Conflicting() 266 final Pair<String, String> input = Pair.create( in testRecoverAbusiveGroupBy_Buckets() 269 final Pair<String, String> expected = Pair.create( in testRecoverAbusiveGroupBy_Buckets() 277 final Pair<String, String> input = Pair.create( in testRecoverAbusiveGroupBy_BucketsByPath() 280 final Pair<String, String> expected = Pair.create( in testRecoverAbusiveGroupBy_BucketsByPath() 288 final Pair<String, String> input = Pair.create( in testRecoverAbusiveGroupBy_113651872() 291 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; 83 private List<Pair<Integer, AbstractProvisioningTask>> mTasks = new ArrayList<>(); 120 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testDeviceOwnerSystemUser() 121 Pair.create(UserHandle.USER_SYSTEM, DeleteNonRequiredAppsTask.class), in testDeviceOwnerSystemUser() 122 Pair.create(UserHandle.USER_SYSTEM, DisallowAddUserTask.class), in testDeviceOwnerSystemUser() 123 Pair.create(UserHandle.USER_SYSTEM, UpdateInteractAcrossProfilesAppOpTask.class)); in testDeviceOwnerSystemUser() 143 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testManagedProfileWithoutMissingSystemIme() 144 Pair.create(MANAGED_PROFILE_USER_ID, InstallExistingPackageTask.class), in testManagedProfileWithoutMissingSystemIme() 145 Pair.create(MANAGED_PROFILE_USER_ID, DeleteNonRequiredAppsTask.class), in testManagedProfileWithoutMissingSystemIme() 146 Pair.create(UserHandle.USER_SYSTEM, UpdateInteractAcrossProfilesAppOpTask.class)); in testManagedProfileWithoutMissingSystemIme() [all …]
|
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/ |
D | EpdgSaProposal.java | 21 import android.util.Pair; 114 protected final LinkedHashSet<Pair<Integer, Integer>> mProposedEncryptAlgos = 116 protected final LinkedHashSet<Pair<Integer, Integer>> mProposedAeadAlgos = 155 mProposedEncryptAlgos.add(new Pair<Integer, Integer>(encryptionAlgo, keyLen)); in addProposedEncryptionAlgorithm() 171 mProposedAeadAlgos.add(new Pair<Integer, Integer>(aeadAlgo, keyLen)); in addProposedAeadAlgorithm() 224 Pair<Integer, Integer> item1, in compareEncryptionTransformPriority() 225 Pair<Integer, Integer> item2) { in compareEncryptionTransformPriority() 265 protected Pair<Integer, Integer>[] getEncryptionAlgos() { in getEncryptionAlgos() 275 .toArray(Pair[]::new); in getEncryptionAlgos() 278 return mProposedEncryptAlgos.toArray(new Pair[mProposedEncryptAlgos.size()]); in getEncryptionAlgos() [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/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | NutritionRecordHelper.java | 75 import android.util.Pair; 532 protected List<Pair<String, String>> getIntervalRecordColumnInfo() { in getIntervalRecordColumnInfo() 534 new Pair<>(UNSATURATED_FAT_COLUMN_NAME, REAL), in getIntervalRecordColumnInfo() 535 new Pair<>(POTASSIUM_COLUMN_NAME, REAL), in getIntervalRecordColumnInfo() 536 new Pair<>(THIAMIN_COLUMN_NAME, REAL), in getIntervalRecordColumnInfo() 537 new Pair<>(MEAL_TYPE_COLUMN_NAME, INTEGER), in getIntervalRecordColumnInfo() 538 new Pair<>(TRANS_FAT_COLUMN_NAME, REAL), in getIntervalRecordColumnInfo() 539 new Pair<>(MANGANESE_COLUMN_NAME, REAL), in getIntervalRecordColumnInfo() 540 new Pair<>(ENERGY_FROM_FAT_COLUMN_NAME, REAL), in getIntervalRecordColumnInfo() 541 new Pair<>(CAFFEINE_COLUMN_NAME, REAL), in getIntervalRecordColumnInfo() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkNominateHelperTest.java | 48 import android.util.Pair; 202 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithNoMatch() 221 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithNoInterworkingAP() 242 List<Pair<PasspointProvider, PasspointMatch>> homeProvider = new ArrayList<>(); in evaluateScansWithNetworkMatchingHomeProvider() 243 homeProvider.add(Pair.create(sTestProvider1, PasspointMatch.HomeProvider)); in evaluateScansWithNetworkMatchingHomeProvider() 252 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithNetworkMatchingHomeProvider() 297 List<Pair<PasspointProvider, PasspointMatch>> homeProvider = new ArrayList<>(); in evaluateScansWithNoInternetBit() 298 homeProvider.add(Pair.create(sTestProvider1, PasspointMatch.HomeProvider)); in evaluateScansWithNoInternetBit() 307 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithNoInternetBit() 339 List<Pair<PasspointProvider, PasspointMatch>> roamingProvider = new ArrayList<>(); in evaluateScansWithNetworkMatchingRoamingProvider() [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/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/features/ |
D | PriorityDescendingComparatorTest.kt | 30 val pairOne = Pair("pairOne", 1) 31 val pairTwo = Pair("pairOne", 2) 32 val pairThree = Pair("pairOne", 3) 33 val pairFour = Pair("pairOne", 4) 34 val pairFive = Pair("pairOne", 5) 35 val pairSix = Pair("pairOne", 6) 36 val pairSeven = Pair("pairOne", 7) 37 val pairEight = Pair("pairOne", 8) 55 val set = sortedSetOf<Pair<String, Int>>(PriorityDescendingComparator()) in testInsertedAscendingElementsAreOrderedDescending() 78 val set = sortedSetOf<Pair<String, Int>>(PriorityDescendingComparator()) in testInsertedElementsShuffledAreOrderedDescending() [all …]
|
/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/providers/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | ClientPlaylistTest.java | 40 import android.util.Pair; 148 Pair.create(mRed, 1), in testAdd() 149 Pair.create(mGreen, 2)), queryMembers(membersUri)); in testAdd() 158 Pair.create(mBlue, 1), in testAdd() 159 Pair.create(mRed, 2), in testAdd() 160 Pair.create(mGreen, 3)), queryMembers(membersUri)); in testAdd() 183 Pair.create(mGreen, 1), in testMove() 184 Pair.create(mBlue, 2), in testMove() 185 Pair.create(mRed, 3)), queryMembers(membersUri)); in testMove() 192 Pair.create(mRed, 1), in testMove() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingDialogHandlerTest.java | 42 import android.util.Pair; 215 Pair<Integer, Object>[] eventData = fragment.getEventData(); in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() 219 Pair.create( in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() 222 Pair.create( in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() 225 Pair.create( in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() 227 Pair.create( in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() 231 Pair.create( in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() 267 Pair<Integer, Object>[] eventData = fragment.getEventData(); in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog() 271 Pair.create( in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog() 274 Pair.create( in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/ |
D | RoleSortFunction.java | 23 import android.util.Pair; 39 public class RoleSortFunction implements Function1<List<Pair<ApplicationInfo, Boolean>>, 40 List<Pair<ApplicationInfo, Boolean>>> { 43 private final Comparator<Pair<ApplicationInfo, Boolean>> mComparator; 48 Comparator<Pair<ApplicationInfo, Boolean>> labelComparator = Comparator.comparing(role -> in RoleSortFunction() 50 Comparator<Pair<ApplicationInfo, Boolean>> userIdComparator = Comparator.comparingInt(role in RoleSortFunction() 56 public List<Pair<ApplicationInfo, Boolean>> invoke(List<Pair<ApplicationInfo, Boolean>> p1) { in invoke() 57 List<Pair<ApplicationInfo, Boolean>> sorted = new ArrayList<>(p1); in invoke()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/ |
D | EventReportWindowCalcDelegate.java | 26 import android.util.Pair; 108 List<Pair<Long, Long>> reportingWindows = in getReportingTime() 110 for (Pair<Long, Long> window : reportingWindows) { in getReportingTime() 119 private boolean isWithinWindow(long time, Pair<Long, Long> window) { in isWithinWindow() 147 List<Pair<Long, Long>> reportingWindows = in fallsWithinWindow() 187 List<Pair<Long, Long>> reportingWindows = getEffectiveReportingWindows( in getReportingTimeForNoising() 189 Pair<Long, Long> finalWindow = reportingWindows.get(reportingWindows.size() - 1); in getReportingTimeForNoising() 202 public Pair<Long, Long> getReportingAndTriggerTimeForNoising( in getReportingAndTriggerTimeForNoising() 204 List<Pair<Long, Long>> reportingWindows = in getReportingAndTriggerTimeForNoising() 206 Pair<Long, Long> finalWindow = reportingWindows.get(reportingWindows.size() - 1); in getReportingAndTriggerTimeForNoising() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/ |
D | DebugKeyAccessorTest.java | 36 import android.util.Pair; 116 Pair<UnsignedLong, UnsignedLong> debugKeyPair = in getDebugKeys_appToAppWithAdIdPermission_debugKeysPresent() 143 Pair<UnsignedLong, UnsignedLong> debugKeyPair = in getDebugKeys_appToAppNoAdIdPermission_debugKeysAbsent() 171 Pair<UnsignedLong, UnsignedLong> debugKeyPair = in getDebugKeys_appToAppNoAdIdPermissionWithJoinKeys_debugKeysAbsent() 199 Pair<UnsignedLong, UnsignedLong> debugKeyPair = in getDebugKeys_appToAppWithSourceAdId_sourceDebugKeyPresent() 227 Pair<UnsignedLong, UnsignedLong> debugKeyPair = in getDebugKeys_appToAppWithTriggerAdId_triggerDebugKeyPresent() 255 Pair<UnsignedLong, UnsignedLong> debugKeyPair = in getDebugKeys_webToWebWithSameRegistrant_debugKeysPresent() 283 Pair<UnsignedLong, UnsignedLong> debugKeyPair = in getDebugKeys_webToWebNoJoinKeysAndDifferentRegistrants_debugKeysAbsent() 311 Pair<UnsignedLong, UnsignedLong> debugKeyPair = in getDebugKeys_webToWebDiffJoinKeysSameRegFalseArDebug_debugKeysAbsent() 339 Pair<UnsignedLong, UnsignedLong> debugKeyPair = in getDebugKeys_webToWebSameJoinKeysAndDifferentRegistrants_debugKeysPresent() [all …]
|