/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/utils/ |
D | SensorUtilsTest.java | 39 import java.util.Collections; 78 Collections.singletonList(TEST_SENSOR), null, null}, in findSensorData() 81 Collections.singletonList(TEST_SENSOR), null, TEST_SENSOR}, in findSensorData() 84 Collections.singletonList(TEST_SENSOR), null, TEST_SENSOR}, in findSensorData() 87 Collections.singletonList(TEST_SENSOR), null, null}, in findSensorData() 90 Collections.singletonList(TEST_SENSOR), null, TEST_SENSOR}, in findSensorData() 93 Collections.singletonList(TEST_SENSOR), null, null}, in findSensorData() 96 Collections.singletonList(TEST_SENSOR), null, null}, in findSensorData() 99 Collections.singletonList(TEST_SENSOR), null, null}, in findSensorData() 102 Collections.singletonList(TEST_SENSOR), null, null}, in findSensorData() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/engine/ |
D | RuleEvaluationEngineTest.java | 38 import java.util.Collections; 64 when(mIntegrityFileManager.readRules(any())).thenReturn(Collections.singletonList(new Rule( in setUp() 75 .setInstallerCertificates(Collections.singletonList(INSTALLER_1_CERT)) in testAllowedInstallers_empty() 80 .setInstallerCertificates(Collections.singletonList(INSTALLER_2_CERT)) in testAllowedInstallers_empty() 85 .setInstallerCertificates(Collections.singletonList(RANDOM_INSTALLER_CERT)) in testAllowedInstallers_empty() 99 Collections.singletonMap(INSTALLER_1, INSTALLER_1_CERT); in testAllowedInstallers_oneElement() 104 .setInstallerCertificates(Collections.singletonList(INSTALLER_1_CERT)) in testAllowedInstallers_oneElement() 114 .setInstallerCertificates(Collections.singletonList(INSTALLER_1_CERT)) in testAllowedInstallers_oneElement() 123 .setInstallerCertificates(Collections.singletonList(RANDOM_INSTALLER_CERT)) in testAllowedInstallers_oneElement() 132 .setInstallerCertificates(Collections.singletonList(RANDOM_INSTALLER_CERT)) in testAllowedInstallers_oneElement() [all …]
|
D | RuleEvaluatorTest.java | 39 import java.util.Collections; 51 .setAppCertificates(Collections.singletonList(APP_CERTIFICATE)) 52 .setAppCertificateLineage(Collections.singletonList(APP_CERTIFICATE)) 76 RuleEvaluator.evaluateRules(Collections.singletonList(rule), APP_INSTALL_METADATA); in testEvaluateRules_noMatchedRules_allow() 140 Collections.singletonList( in testEvaluateRules_ruleWithNot_deny() 148 RuleEvaluator.evaluateRules(Collections.singletonList(rule), APP_INSTALL_METADATA); in testEvaluateRules_ruleWithNot_deny() 163 RuleEvaluator.evaluateRules(Collections.singletonList(rule), APP_INSTALL_METADATA); in testEvaluateRules_ruleWithIntegerOperators_deny() 186 RuleEvaluator.evaluateRules(Collections.singletonList(rule), APP_INSTALL_METADATA); in testEvaluateRules_validForm_deny() 209 RuleEvaluator.evaluateRules(Collections.singletonList(rule), APP_INSTALL_METADATA); in testEvaluateRules_orRules() 230 new CompoundFormula(CompoundFormula.NOT, Collections.singletonList(openSubFormula)); in testEvaluateRules_compoundFormulaWithNot_deny() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/ |
D | ExpansionStateLoggerTest.java | 44 import java.util.Collections; 67 Collections.singletonList(createNotificationVisibility(NOTIFICATION_KEY, true)), in testVisible() 68 Collections.emptyList()); in testVisible() 90 Collections.singletonList(createNotificationVisibility(NOTIFICATION_KEY, true)), in testVisibleAndNotExpanded() 91 Collections.emptyList()); in testVisibleAndNotExpanded() 103 Collections.singletonList(createNotificationVisibility(NOTIFICATION_KEY, true)), in testVisibleAndExpanded() 104 Collections.emptyList()); in testVisibleAndExpanded() 117 Collections.singletonList(createNotificationVisibility(NOTIFICATION_KEY, true, in testExpandedAndVisible_expandedBeforeVisible() 119 Collections.emptyList()); in testExpandedAndVisible_expandedBeforeVisible() 132 Collections.singletonList(createNotificationVisibility(NOTIFICATION_KEY, true)), in testExpandedAndVisible_visibleBeforeExpanded() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CellIdentityTest.java | 33 import java.util.Collections; 83 Collections.emptyList()); in testConstructCellIdentityGsm() 91 Collections.emptyList()); in testConstructCellIdentityGsm() 100 Collections.emptyList()); in testConstructCellIdentityGsm() 112 Collections.emptyList(), null); in testEquals() 115 Collections.emptyList(), null); in testEquals() 120 ALPHA_SHORT, Collections.emptyList(), null); in testEquals() 122 ALPHA_SHORT, Collections.emptyList(), null); in testEquals() 127 ALPHA_LONG, ALPHA_SHORT, Collections.emptyList(), null); in testEquals() 129 ALPHA_SHORT, Collections.emptyList(), null); in testEquals() [all …]
|
D | CellIdentityGsmTest.java | 25 import java.util.Collections; 51 ALPHA_LONG, ALPHA_SHORT, Collections.emptyList()); in testDefaultConstructor() 76 ALPHA_LONG, ALPHA_SHORT, Collections.emptyList()); in testConstructorWithThreeDigitMnc() 94 ALPHA_LONG, ALPHA_SHORT, Collections.emptyList()); in testConstructorWithTwoDigitMnc() 111 Collections.emptyList()); in testConstructorWithEmptyMccMnc() 121 Collections.emptyList()); in testConstructorWithEmptyMccMnc() 131 Collections.emptyList()); in testConstructorWithEmptyMccMnc() 141 Collections.emptyList()); in testConstructorWithEmptyMccMnc() 155 Collections.emptyList()); in testEquals() 158 Collections.emptyList()); in testEquals() [all …]
|
D | CellIdentityWcdmaTest.java | 25 import java.util.Collections; 51 ALPHA_LONG, ALPHA_SHORT, Collections.emptyList(), null); in testDefaultConstructor() 72 ALPHA_LONG, ALPHA_SHORT, Collections.emptyList(), null); in testConstructorWithThreeDigitMnc() 90 ALPHA_LONG, ALPHA_SHORT, Collections.emptyList(), null); in testConstructorWithTwoDigitMnc() 104 Collections.emptyList(), null); in testConstructorWithEmptyMccMnc() 113 Collections.emptyList(), null); in testConstructorWithEmptyMccMnc() 122 Collections.emptyList(), null); in testConstructorWithEmptyMccMnc() 131 Collections.emptyList(), null); in testConstructorWithEmptyMccMnc() 144 Collections.emptyList(), null); in testEquals() 147 Collections.emptyList(), null); in testEquals() [all …]
|
D | CellIdentityLteTest.java | 28 import java.util.Collections; 57 ALPHA_LONG, ALPHA_SHORT, Collections.emptyList(), null); in testDefaultConstructor() 82 mncWithThreeDigit, ALPHA_LONG, ALPHA_SHORT, Collections.emptyList(), null); in testConstructorWithThreeDigitMnc() 96 mncWithTwoDigit, ALPHA_LONG, ALPHA_SHORT, Collections.emptyList(), null); in testConstructorWithTwoDigitMnc() 109 ALPHA_SHORT, Collections.emptyList(), null); in testConstructorWithEmptyMccMnc() 119 Collections.emptyList(), null); in testConstructorWithEmptyMccMnc() 129 Collections.emptyList(), null); in testConstructorWithEmptyMccMnc() 139 Collections.emptyList(), null); in testConstructorWithEmptyMccMnc() 171 Collections.emptyList(), null); in testEquals() 174 Collections.emptyList(), null); in testEquals() [all …]
|
D | CellIdentityTdscdmaTest.java | 28 import java.util.Collections; 76 Collections.emptyList(), null); in testConstructor() 95 null, null, LAC, CID, CPID, UARFCN, "", "", Collections.emptyList(), null); in testConstructorWithEmptyMccMnc() 101 Collections.emptyList(), null); in testConstructorWithEmptyMccMnc() 107 Collections.emptyList(), null); in testConstructorWithEmptyMccMnc() 113 Collections.emptyList(), null); in testConstructorWithEmptyMccMnc() 123 Collections.emptyList(), null); in testParcel() 138 Collections.emptyList(), null); in testParcelWithUnknowMccMnc() 163 Collections.emptyList(), null); in testParcelWithInvalidMccMnc()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuThreadReaderDiffTest.java | 45 import java.util.Collections; 102 .containsExactly(Collections.singletonList(1)); in test_failure() 108 .containsExactly(Collections.singletonList(2)); in test_failure() 124 .containsExactly(Collections.singletonList(1)); in test_twoFailures() 133 .containsExactly(Collections.singletonList(2)); in test_twoFailures() 145 .containsExactly(Collections.singletonList(-1)); in test_negativeDiff() 161 assertThat(cpuUsages(processes1)).containsExactly(Collections.singletonList(9)); in test_threshold() 166 assertThat(cpuUsages(processes2)).containsExactly(Collections.singletonList(2)); in test_threshold() 171 assertThat(cpuUsages(processes3)).containsExactly(Collections.singletonList(8)); in test_threshold() 187 assertThat(cpuUsages(processes1)).containsExactly(Collections.singletonList(1)); in test_newThread() [all …]
|
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/presence/publish/ |
D | PublishServiceDescTrackerTest.java | 34 import java.util.Collections; 96 Set<ServiceDescription> expectedSet = Collections.singleton( in testDefaultConfigMatch() 110 expectedSet = Collections.singleton( in testDefaultConfigMatch() 128 expectedSet = Collections.singleton( in testDefaultConfigMatch() 134 expectedSet = Collections.singleton( in testDefaultConfigMatch() 142 expectedSet = Collections.singleton( in testDefaultConfigMatch() 153 expectedSet = Collections.singleton( in testDefaultConfigMatch() 163 t1.updateImsRegistration(Collections.emptySet()); in testDefaultConfigMatch() 173 Set<ServiceDescription> expectedSet = Collections.singleton( in testOverrideCarrierConfigMatch() 196 expectedSet = Collections.singleton( in testOverrideCarrierConfigMatch() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
D | Quad.java | 23 import java.util.Collections; 78 float x0 = Collections.min(xs); in boundingBox() 79 float y0 = Collections.min(ys); in boundingBox() 80 float x1 = Collections.max(xs); in boundingBox() 81 float y1 = Collections.max(ys); in boundingBox() 87 return Collections.max(xs) - Collections.min(xs); in getBoundingWidth() 92 return Collections.max(ys) - Collections.min(ys); in getBoundingHeight()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationUiAdjustmentTest.java | 34 import java.util.Collections; 49 createUiAdjustmentFromSmartActions("first", Collections.emptyList()), in needReinflate_differentLength() 50 createUiAdjustmentFromSmartActions("second", Collections.singletonList(action)))) in needReinflate_differentLength() 66 createUiAdjustmentFromSmartActions("first", Collections.singletonList(firstAction)), in needReinflate_differentLabels() 67 … createUiAdjustmentFromSmartActions("second", Collections.singletonList(secondAction)))) in needReinflate_differentLabels() 84 createUiAdjustmentFromSmartActions("first", Collections.singletonList(firstAction)), in needReinflate_differentIcons() 85 … createUiAdjustmentFromSmartActions("second", Collections.singletonList(secondAction)))) in needReinflate_differentIcons() 108 createUiAdjustmentFromSmartActions("first", Collections.singletonList(firstAction)), in needReinflate_differentPendingIntent() 109 … createUiAdjustmentFromSmartActions("second", Collections.singletonList(secondAction)))) in needReinflate_differentPendingIntent() 135 createUiAdjustmentFromSmartActions("first", Collections.singletonList(firstAction)), in needReinflate_differentChoices() [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/ |
D | PublishServiceDescTracker.java | 29 import java.util.Collections; 58 Collections.singleton(FeatureTags.FEATURE_TAG_CHAT_IM)); in map.put() 60 Collections.singleton(FeatureTags.FEATURE_TAG_CHAT_SESSION)); in map.put() 62 Collections.singleton(FeatureTags.FEATURE_TAG_FILE_TRANSFER)); in map.put() 64 Collections.singleton(FeatureTags.FEATURE_TAG_FILE_TRANSFER_VIA_SMS)); in map.put() 66 Collections.singleton(FeatureTags.FEATURE_TAG_PRESENCE)); in map.put() 69 Collections.singleton(FeatureTags.FEATURE_TAG_MMTEL)); in map.put() 73 Collections.singleton(FeatureTags.FEATURE_TAG_GEO_PUSH)); in map.put() 75 Collections.singleton(FeatureTags.FEATURE_TAG_GEO_PUSH_VIA_SMS)); in map.put() 77 Collections.singleton(FeatureTags.FEATURE_TAG_CALL_COMPOSER_ENRICHED_CALLING)); in map.put() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | NoOpInfoMediaManager.java | 31 import java.util.Collections; 112 return Collections.emptyList(); in getSelectableRoutes() 118 return Collections.emptyList(); in getDeselectableRoutes() 124 return Collections.emptyList(); in getSelectedRoutes() 146 return Collections.emptyList(); in getRemoteSessions() 164 return Collections.emptyList(); in getAvailableRoutesFromRouter() 170 return Collections.emptyList(); in getTransferableRoutes()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/ |
D | IntegrityFileManagerTest.java | 45 import java.util.Collections; 96 mIntegrityFileManager.writeRules(VERSION, RULE_PROVIDER, Collections.EMPTY_LIST); in testGetMetadata() 106 mIntegrityFileManager.writeRules(VERSION, RULE_PROVIDER, Collections.EMPTY_LIST); in testIsInitialized() 144 .setAppCertificates(Collections.singletonList(packageCert)) in testGetRules() 145 .setAppCertificateLineage(Collections.singletonList(packageCert)) in testGetRules() 148 .setInstallerCertificates(Collections.singletonList("abc")) in testGetRules() 186 .setAppCertificates(Collections.singletonList(installedAppCertificate)) in testGetRules_indexedForManyRules() 188 Collections.singletonList(installedAppCertificate)) in testGetRules_indexedForManyRules() 191 .setInstallerCertificates(Collections.singletonList("abc")) in testGetRules_indexedForManyRules() 231 mIntegrityFileManager.writeRules(VERSION, RULE_PROVIDER, Collections.EMPTY_LIST); in testStagingDirectoryCleared() [all …]
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardParser_V21.java | 23 import java.util.Collections; 48 Collections.unmodifiableSet(new HashSet<String>( 57 Collections.unmodifiableSet(new HashSet<String>( 71 Collections.unmodifiableSet(new HashSet<String>( 84 Collections.unmodifiableSet(new HashSet<String>(
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/ |
D | RuleIndexingControllerTest.java | 41 import java.util.Collections; 56 .setAppCertificates(Collections.singletonList("777")) in verifyIndexRangeSearchIsCorrect() 57 .setAppCertificateLineage(Collections.singletonList("777")) in verifyIndexRangeSearchIsCorrect() 103 .setAppCertificates(Collections.singletonList("999")) in verifyIndexRangeSearchIsCorrect_keysInFirstAndLastBlock() 104 .setAppCertificateLineage(Collections.singletonList("999")) in verifyIndexRangeSearchIsCorrect_keysInFirstAndLastBlock() 126 .setAppCertificates(Collections.singletonList("444")) in verifyIndexRangeSearchIsCorrect_keysMatchWithValues() 127 .setAppCertificateLineage(Collections.singletonList("444")) in verifyIndexRangeSearchIsCorrect_keysMatchWithValues() 159 .setAppCertificates(Collections.singletonList("444")) in verifyIndexRangeSearchIsCorrect_noIndexesAvailable() 160 .setAppCertificateLineage(Collections.singletonList("444")) in verifyIndexRangeSearchIsCorrect_noIndexesAvailable()
|
/frameworks/base/core/tests/coretests/src/android/app/admin/ |
D | PackagePolicyTest.java | 38 import java.util.Collections; 141 assertFalse(policy.isPackageAllowed(TEST_PACKAGE_NAME, Collections.emptySet())); in testBlocklist_isPackageAllowed() 143 assertTrue(policy.isPackageAllowed(TEST_PACKAGE_NAME_2, Collections.emptySet())); in testBlocklist_isPackageAllowed() 145 assertTrue(policy.isPackageAllowed(TEST_SYSTEM_PACKAGE_NAME, Collections.emptySet())); in testBlocklist_isPackageAllowed() 157 assertTrue(policy.isPackageAllowed(TEST_PACKAGE_NAME, Collections.emptySet())); in testAllowlist_isPackageAllowed() 159 assertFalse(policy.isPackageAllowed(TEST_PACKAGE_NAME_2, Collections.emptySet())); in testAllowlist_isPackageAllowed() 161 assertFalse(policy.isPackageAllowed(TEST_SYSTEM_PACKAGE_NAME, Collections.emptySet())); in testAllowlist_isPackageAllowed() 173 assertTrue(policy.isPackageAllowed(TEST_PACKAGE_NAME, Collections.emptySet())); in testAllowlistAndSystem_isPackageAllowed() 175 assertFalse(policy.isPackageAllowed(TEST_PACKAGE_NAME_2, Collections.emptySet())); in testAllowlistAndSystem_isPackageAllowed() 177 assertFalse(policy.isPackageAllowed(TEST_SYSTEM_PACKAGE_NAME, Collections.emptySet())); in testAllowlistAndSystem_isPackageAllowed()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/ |
D | StandardWifiEntryTest.java | 93 import java.util.Collections; 277 Collections.singletonList(config), null, mMockWifiManager, in testConstructor_wifiConfig_setsTitle() 291 Collections.singletonList(config), null, mMockWifiManager, in testConstructor_wifiConfig_setsSecurity() 305 Collections.singletonList(config), null, mMockWifiManager, in testUpdateConfig_mismatchedSsids_throwsException() 311 entry.updateConfig(Collections.singletonList(config2)); in testUpdateConfig_mismatchedSsids_throwsException() 326 Collections.singletonList(config), null, mMockWifiManager, in testUpdateConfig_mismatchedSecurity_throwsException() 332 entry.updateConfig(Collections.singletonList(config2)); in testUpdateConfig_mismatchedSecurity_throwsException() 355 entry.updateConfig(Collections.singletonList(config)); in testUpdateConfig_unsavedToSaved() 370 Collections.singletonList(config), null, mMockWifiManager, in testUpdateConfig_savedToUnsaved() 390 Collections.singletonList(config), null, mMockWifiManager, in testOnNetworkCapabilitiesChanged_matchingNetworkId_becomesConnected() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/ |
D | SharedLibraryWrapper.java | 25 import java.util.Collections; 62 return Collections.unmodifiableList(mInfo.getAllCodePaths()); in getAllCodePaths() 89 return Collections.unmodifiableList(mInfo.getDependentPackages()); in getDependentPackages() 98 cachedDependenciesList = Collections.emptyList(); in getDependencies() 104 cachedDependenciesList = Collections.unmodifiableList(list); in getDependencies()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePackageManager.java | 60 import java.util.Collections; 93 return Collections.emptyList(); in getSharedLibraries() 99 return Collections.emptyList(); in getSharedLibrariesAsUser() 160 return Collections.emptyList(); in queryPermissionsByGroup() 181 return Collections.emptyList(); in getAllPermissionGroups() 252 return Collections.emptyList(); in getInstalledPackages() 257 return Collections.emptyList(); in getPackagesHoldingPermissions() 262 return Collections.emptyList(); in getInstalledPackagesAsUser() 350 return Collections.emptyList(); in getInstalledApplications() 355 return Collections.emptyList(); in getInstalledApplicationsAsUser() [all …]
|
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/user/ |
D | TvUserManager.java | 30 import java.util.Collections; 49 Collections.addAll(mRequiredSystemApps, in populateSystemAppsList() 51 Collections.addAll(mRequiredSystemApps, in populateSystemAppsList() 54 Collections.addAll(mDisallowedSystemApps, in populateSystemAppsList() 56 Collections.addAll(mDisallowedSystemApps, in populateSystemAppsList() 78 Collections.addAll(packages, disallowedPackages); in filterDisallowedPackages()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | GlobalSortKeyComparatorTest.java | 35 import java.util.Collections; 78 Collections.shuffle(actual); in testComparator() 80 Collections.sort(actual, new GlobalSortKeyComparator()); in testComparator() 108 Collections.shuffle(actual); in testNoCrash_leftNull() 110 Collections.sort(actual, new GlobalSortKeyComparator()); in testNoCrash_leftNull() 138 Collections.shuffle(actual); in testNoCrash_rightNull() 140 Collections.sort(actual, new GlobalSortKeyComparator()); in testNoCrash_rightNull()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/signedconfig/ |
D | SignedConfigTest.java | 23 import static java.util.Collections.emptyMap; 24 import static java.util.Collections.emptySet; 38 import java.util.Collections; 62 return Collections.unmodifiableMap(m); in mapOf() 358 1, 1, Collections.emptyMap()); in testGetMatchingConfigFirst() 360 2, 2, Collections.emptyMap()); in testGetMatchingConfigFirst() 368 1, 1, Collections.emptyMap()); in testGetMatchingConfigSecond() 370 2, 2, Collections.emptyMap()); in testGetMatchingConfigSecond() 378 1, 3, Collections.emptyMap()); in testGetMatchingConfigInRange() 380 4, 6, Collections.emptyMap()); in testGetMatchingConfigInRange() [all …]
|