/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | QuickSelectTest.java | 38 test(Arrays.asList(), -1, null); in testQuickSelect() 39 test(Arrays.asList(), 0, null); in testQuickSelect() 40 test(Arrays.asList(), 1, null); in testQuickSelect() 41 test(Arrays.asList(1), -1, 1, 0, null); in testQuickSelect() 42 test(Arrays.asList(1), 1, -1, 0, null); in testQuickSelect() 43 test(Arrays.asList(1), 0, 1, -1, null); in testQuickSelect() 44 test(Arrays.asList(1), 1, 1, 0, null); in testQuickSelect() 45 test(Arrays.asList(1), 0, 1); in testQuickSelect() 46 test(Arrays.asList(1), 1, null); in testQuickSelect() 47 test(Arrays.asList(1, 2, 3, 4, 5), 0, 1); in testQuickSelect() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/ |
D | DataCallResponseTest.java | 65 .setAddresses(Arrays.asList( in testParcel() 67 .setDnsAddresses(Arrays.asList(InetAddresses.parseNumericAddress(FAKE_DNS))) in testParcel() 68 .setGatewayAddresses(Arrays.asList(InetAddresses.parseNumericAddress(FAKE_GATEWAY))) in testParcel() 70 Arrays.asList(InetAddresses.parseNumericAddress(FAKE_PCSCF_ADDRESS))) in testParcel() 77 Arrays.asList(new TrafficDescriptor(FAKE_DNN, FAKE_OS_APP_ID))) in testParcel() 99 .setAddresses(Arrays.asList( in testEqualsAndHashCode() 101 .setDnsAddresses(Arrays.asList(InetAddresses.parseNumericAddress(FAKE_DNS))) in testEqualsAndHashCode() 102 .setGatewayAddresses(Arrays.asList(InetAddresses.parseNumericAddress(FAKE_GATEWAY))) in testEqualsAndHashCode() 104 Arrays.asList(InetAddresses.parseNumericAddress(FAKE_PCSCF_ADDRESS))) in testEqualsAndHashCode() 108 Arrays.asList(new TrafficDescriptor(FAKE_DNN, FAKE_OS_APP_ID))) in testEqualsAndHashCode() [all …]
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | RampDownAdapterTest.java | 50 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testPrebakedAndPrimitiveSegments_keepsListUnchanged() 64 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testRampAndStepSegments_withNoOffSegment_keepsListUnchanged() 80 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testRampAndStepSegments_withNoRampDownDuration_keepsOriginalSteps() 96 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testStepSegments_withShortZeroSegment_replaceWithStepsDown() 99 List<VibrationEffectSegment> expectedSegments = Arrays.asList( in testStepSegments_withShortZeroSegment_replaceWithStepsDown() 110 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testStepSegments_withLongZeroSegment_replaceWithStepsDownWithRemainingOffSegment() 115 List<VibrationEffectSegment> expectedSegments = Arrays.asList( in testStepSegments_withLongZeroSegment_replaceWithStepsDownWithRemainingOffSegment() 129 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testStepSegments_withZeroSegmentBeforeRepeat_fixesRepeat() 133 List<VibrationEffectSegment> expectedSegments = Arrays.asList( in testStepSegments_withZeroSegmentBeforeRepeat_fixesRepeat() 148 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testStepSegments_withZeroSegmentAfterRepeat_preservesRepeat() [all …]
|
D | DeviceAdapterTest.java | 92 VibrationEffect.Composed effect = new VibrationEffect.Composed(Arrays.asList( in testPrebakedAndPrimitiveSegments_returnsOriginalSegment() 107 VibrationEffect.Composed effect = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps() 129 VibrationEffect.Composed effect = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withPwleCapability_convertsStepsToRamps() 138 VibrationEffect.Composed expected = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withPwleCapability_convertsStepsToRamps() 151 VibrationEffect.Composed effect = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withEmptyFreqMapping_returnsAmplitudesWithResonantFreq() 160 VibrationEffect.Composed expected = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withEmptyFreqMapping_returnsAmplitudesWithResonantFreq() 174 VibrationEffect.Composed effect = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withValidFreqMapping_returnsClippedValuesOnlyInRamps() 188 VibrationEffect.Composed expected = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withValidFreqMapping_returnsClippedValuesOnlyInRamps() 204 VibrationEffect.Composed effect = new VibrationEffect.Composed(Arrays.asList( in testMonoCombinedVibration_returnsSameVibrationWhenEffectsUnchanged() 220 VibrationEffect.Composed effect = new VibrationEffect.Composed(Arrays.asList( in testMonoCombinedVibration_mapsEffectsToAllVibrators() [all …]
|
D | StepToRampAdapterTest.java | 58 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testRampAndPrebakedAndPrimitiveSegments_returnsOriginalSegments() 77 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testStepAndRampSegments_withoutPwleCapability_keepsListUnchanged() 91 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testStepAndRampSegments_withPwleCapabilityAndNoFrequency_keepsOriginalSteps() 109 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testStepAndRampSegments_withPwleCapabilityAndStepNextToRamp_convertsStepsToRamps() 118 List<VibrationEffectSegment> expectedSegments = Arrays.asList( in testStepAndRampSegments_withPwleCapabilityAndStepNextToRamp_convertsStepsToRamps() 138 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testStepSegments_withPwleCapabilityAndFrequency_convertsStepsToRamps() 141 List<VibrationEffectSegment> expectedSegments = Arrays.asList( in testStepSegments_withPwleCapabilityAndFrequency_convertsStepsToRamps()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/ |
D | LocalColorRepositoryTest.java | 29 import static java.util.Arrays.asList; 72 ArraySet<RectF> expectedAreas = new ArraySet(asList(area1, area2)); in testDisplayAreas() 74 mRepo.addAreas(mCallback1, asList(area1), 0); in testDisplayAreas() 75 mRepo.addAreas(mCallback2, asList(area2), 0); in testDisplayAreas() 76 mRepo.addAreas(mCallback1, asList(new RectF(3, 1, 1, 1)), 1); in testDisplayAreas() 79 assertEquals(new ArraySet(asList(new RectF(3, 1, 1, 1))), in testDisplayAreas() 89 mRepo.addAreas(mCallback1, asList(area1), 0); in testAddAndRemoveAreas() 90 mRepo.addAreas(mCallback1, asList(area2), 0); in testAddAndRemoveAreas() 91 mRepo.addAreas(mCallback2, asList(area2), 1); in testAddAndRemoveAreas() 93 List<RectF> removed = mRepo.removeAreas(mCallback1, asList(area1), 0); in testAddAndRemoveAreas() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/data/ |
D | EuiccRulesAuthTableTest.java | 43 Arrays.asList(new CarrierIdentifier[] {}), in testFindIndex() 47 Arrays.asList( in testFindIndex() 60 Arrays.asList( in testFindIndex() 72 Arrays.asList( in testFindIndex() 106 Arrays.asList( in testFindIndex_AllowAllWithUserConsent() 127 .add(0, Arrays.asList(new CarrierIdentifier[] {}), 0).build(); in testFindIndex_DisallowAll() 153 .add(0, Arrays.asList(new CarrierIdentifier[] {}), 0).build(); in testBuild_TooManyRules() 159 .add(0, Arrays.asList(new CarrierIdentifier[] {}), 0).build(); in testHasPolicyRuleFlag_OutOfBounds() 187 Arrays.asList(new CarrierIdentifier[] {}), in testWriteToParcel() 191 Arrays.asList( in testWriteToParcel() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LoggingPrintStreamTest.java | 52 assertEquals(Arrays.asList(lines), out.lines); in testPrintException() 62 assertEquals(Arrays.asList("4" + o + "2"), out.lines); in testPrintObject() 72 assertEquals(Arrays.asList("4" + o, "2"), out.lines); in testPrintlnObject() 78 assertEquals(Arrays.asList("Name: Bob"), out.lines); in testPrintf() 80 assertEquals(Arrays.asList("Name: Bob", "Employer: Google"), out.lines); in testPrintf() 96 assertEquals(Arrays.asList("4", "2"), out.lines); in testPrintlnInt() 102 assertEquals(Arrays.asList("Foo", "Bar"), out.lines); in testPrintCharArray() 104 assertEquals(Arrays.asList("Foo", "Bar", "Tee"), out.lines); in testPrintCharArray() 110 assertEquals(Arrays.asList("Foo", "Bar"), out.lines); in testPrintString() 112 assertEquals(Arrays.asList("Foo", "Bar", "Tee"), out.lines); in testPrintString() [all …]
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ |
D | StartProgramListUpdatesFanoutTest.java | 150 updateHalProgramInfo(true, Arrays.asList(TEST_AM_FM_INFO, TEST_RDS_INFO), null); in testFanout() 152 verifyAidlClientReceivedChunk(mAidlTunerCallbackMocks[i], true, Arrays.asList( in testFanout() 157 updateHalProgramInfo(false, Arrays.asList(TEST_AM_FM_MODIFIED_INFO), in testFanout() 158 Arrays.asList(TEST_RDS_ID)); in testFanout() 161 Arrays.asList(TEST_AM_FM_MODIFIED_INFO), Arrays.asList(TEST_RDS_UNIQUE_ID)); in testFanout() 169 Arrays.asList(TEST_AM_FM_MODIFIED_INFO), null); in testFanout() 181 new HashSet<ProgramSelector.Identifier>(Arrays.asList(TEST_RDS_ID)), true, true); in testFiltering() 185 new HashSet<Integer>(Arrays.asList(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY)), in testFiltering() 188 new HashSet<Integer>(Arrays.asList(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY)), in testFiltering() 204 verifyAidlClientReceivedChunk(mAidlTunerCallbackMocks[2], true, Arrays.asList(), in testFiltering() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | AppsQueryHelperTests.java | 41 assertEqualsIgnoreOrder(Arrays.asList("sys_app1", "sys_app2", "sys_app3"), apps); in testQueryAppsSystemAppsOnly() 44 assertEqualsIgnoreOrder(Arrays.asList("sys_app1", "sys_app2", "sys_app3", "app4"), apps); in testQueryAppsSystemAppsOnly() 50 assertEqualsIgnoreOrder(Arrays.asList("sys_app1", "sys_app3"), apps); in testQueryAppsNonLaunchable() 54 assertEqualsIgnoreOrder(Arrays.asList("sys_app1", "sys_app3"), apps); in testQueryAppsNonLaunchable() 60 assertEqualsIgnoreOrder(Arrays.asList("sys_app1"), apps); in testQueryAppsInteractAcrossUser() 64 assertEqualsIgnoreOrder(Arrays.asList("sys_app1"), apps); in testQueryAppsInteractAcrossUser() 72 assertEqualsIgnoreOrder(Arrays.asList("sys_app1", "sys_app3"), apps); in testQueryApps() 78 assertEqualsIgnoreOrder(Arrays.asList("sys_app1", "sys_app3"), apps); in testQueryApps() 85 assertEqualsIgnoreOrder(Arrays.asList("sys_app1"), apps); in testQueryAppsImes() 90 assertEqualsIgnoreOrder(Arrays.asList("sys_app1", "app4"), apps); in testQueryAppsImes() [all …]
|
/frameworks/base/errorprone/tests/java/com/google/errorprone/bugpatterns/android/ |
D | RequiresPermissionCheckerTest.java | 57 final ParsedRequiresPermission a = build(Arrays.asList(RED, BLUE), Arrays.asList()); in testParser_AllOf() 58 final ParsedRequiresPermission b = build(Arrays.asList(RED), Arrays.asList()); in testParser_AllOf() 65 final ParsedRequiresPermission a = build(Arrays.asList(), Arrays.asList(RED, BLUE)); in testParser_AnyOf() 66 final ParsedRequiresPermission b = build(Arrays.asList(), Arrays.asList(RED)); in testParser_AnyOf() 73 final ParsedRequiresPermission a = build(Arrays.asList(RED, BLUE), Arrays.asList()); in testParser_AnyOf_AllOf() 74 final ParsedRequiresPermission b = build(Arrays.asList(), Arrays.asList(RED)); in testParser_AnyOf_AllOf()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/tv/ |
D | TvPipActionProviderTest.java | 115 assertActionTypes(Arrays.asList(ACTION_FULLSCREEN, ACTION_CLOSE, ACTION_MOVE), in defaultSystemActions_regularPip() 123 Arrays.asList(ACTION_FULLSCREEN, ACTION_CLOSE, ACTION_MOVE, ACTION_EXPAND_COLLAPSE), in defaultSystemActions_expandedPip() 134 Arrays.asList(ACTION_FULLSCREEN, ACTION_CLOSE, ACTION_MOVE, ACTION_EXPAND_COLLAPSE), in expandedPip_enableExpansion_enable() 147 Arrays.asList(ACTION_FULLSCREEN, ACTION_CLOSE, ACTION_MOVE), in expandedPip_enableExpansion_disable() 158 Arrays.asList(ACTION_FULLSCREEN, ACTION_CLOSE, ACTION_MOVE, ACTION_EXPAND_COLLAPSE), in expandedPip_enableExpansion_AlreadyEnabled() 172 Arrays.asList(ACTION_FULLSCREEN, ACTION_CLOSE, ACTION_MOVE, ACTION_EXPAND_COLLAPSE), in check_expandedPip_updateExpansionState() 233 Arrays.asList(ACTION_FULLSCREEN, ACTION_CLOSE, ACTION_CUSTOM, ACTION_CUSTOM, in customActions_added() 247 Arrays.asList(ACTION_FULLSCREEN, ACTION_CLOSE, ACTION_CUSTOM, ACTION_CUSTOM, in customActions_replacedMore() 261 Arrays.asList(ACTION_FULLSCREEN, ACTION_CLOSE, ACTION_MOVE), in customActions_replacedLess() 275 Arrays.asList(ACTION_FULLSCREEN, ACTION_CUSTOM_CLOSE, ACTION_MOVE), in customCloseAdded() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/integrity/ |
D | CompoundFormulaTest.java | 45 CompoundFormula.AND, Arrays.asList(ATOMIC_FORMULA_1, ATOMIC_FORMULA_2)); in testValidCompoundFormula() 72 Arrays.asList(ATOMIC_FORMULA_1, ATOMIC_FORMULA_2))); in testValidateAuxiliaryFormula_unaryConnectors() 80 CompoundFormula.AND, Arrays.asList(ATOMIC_FORMULA_2, ATOMIC_FORMULA_1)); in testParcelUnparcel() 96 Arrays.asList(ATOMIC_FORMULA_1, ATOMIC_FORMULA_2))); in testInvalidCompoundFormula_invalidConnector() 108 new CompoundFormula(CompoundFormula.NOT, Arrays.asList(ATOMIC_FORMULA_1)); in testFormulaMatches_notFalse_true() 120 new CompoundFormula(CompoundFormula.NOT, Arrays.asList(ATOMIC_FORMULA_1)); in testFormulaMatches_notTrue_false() 128 CompoundFormula.AND, Arrays.asList(ATOMIC_FORMULA_1, ATOMIC_FORMULA_2)); in testFormulaMatches_trueAndTrue_true() 142 CompoundFormula.AND, Arrays.asList(ATOMIC_FORMULA_1, ATOMIC_FORMULA_2)); in testFormulaMatches_trueAndFalse_false() 155 CompoundFormula.AND, Arrays.asList(ATOMIC_FORMULA_1, ATOMIC_FORMULA_2)); in testFormulaMatches_falseAndTrue_false() 168 CompoundFormula.AND, Arrays.asList(ATOMIC_FORMULA_1, ATOMIC_FORMULA_2)); in testFormulaMatches_falseAndFalse_false() [all …]
|
D | InstallerAllowedByManifestFormulaTest.java | 42 .setInstallerCertificates(Arrays.asList("installer_cert1", "random_cert")) in testFormulaMatches_installerAndCertBothInManifest() 55 .setInstallerCertificates(Arrays.asList("installer_cert1", "random_cert")) in testFormulaMatches_installerAndCertDoesNotMatchInManifest() 68 .setInstallerCertificates(Arrays.asList("installer_cert1", "random_cert")) in testFormulaMatches_installerNotInManifest() 81 .setInstallerCertificates(Arrays.asList("installer_cert3", "random_cert")) in testFormulaMatches_certificateDoesNotMatchManifest() 94 .setInstallerCertificates(Arrays.asList("installer_cert3", "random_cert")) in testFormulaMatches_emptyManifest() 104 .setInstallerCertificates(Arrays.asList("installer_cert3", "random_cert")) in testFormulaMatches_certificateNotSpecifiedInManifest()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | KeyEventDispatcherTest.java | 127 .notifyKeyEventLocked(mKeyEvent, 0, Arrays.asList(keyEventFilter))); in testNotifyKeyEvent_boundServiceDoesntProcessEvents_shouldReturnFalse() 135 .notifyKeyEventLocked(mKeyEvent, 0, Arrays.asList(mKeyEventFilter1))); in testNotifyKeyEvent_withOneValidService_shouldNotifyService() 143 mKeyEvent, 0, Arrays.asList(mKeyEventFilter1, mKeyEventFilter2))); in testNotifyKeyEvent_withTwoValidService_shouldNotifyBoth() 156 .notifyKeyEventLocked(mKeyEvent, 0, Arrays.asList(mKeyEventFilter1)); in testSetOnKeyResult_eventNotHandled_shouldPassEventToFramework() 170 .notifyKeyEventLocked(mKeyEvent, 0, Arrays.asList(mKeyEventFilter1)); in testSetOnKeyResult_eventHandled_shouldNotPassEventToFramework() 184 mKeyEvent, 0, Arrays.asList(mKeyEventFilter1, mKeyEventFilter2)); in testSetOnKeyResult_twoServicesReturnsFalse_shouldPassEventToFramework() 200 mKeyEvent, 0, Arrays.asList(mKeyEventFilter1, mKeyEventFilter2)); in testSetOnKeyResult_twoServicesReturnsTrue_shouldNotPassEventToFramework() 217 mKeyEvent, 0, Arrays.asList(mKeyEventFilter1, mKeyEventFilter2)); in testSetOnKeyResult_firstOfTwoServicesReturnsTrue_shouldNotPassEventToFramework() 234 mKeyEvent, 0, Arrays.asList(mKeyEventFilter1, mKeyEventFilter2)); in testSetOnKeyResult_secondOfTwoServicesReturnsTrue_shouldNotPassEventToFramework() 252 mKeyEvent, 0, Arrays.asList(mKeyEventFilter1, mKeyEventFilter2)); in testSetOnKeyResult_firstServiceReturnsTwice_secondShouldBeIgnored() [all …]
|
/frameworks/base/tests/PackageWatchdog/src/com/android/server/ |
D | PackageWatchdogTest.java | 217 watchdog.startObservingHealth(observer, Arrays.asList(APP_A), SHORT_DURATION); in testRegistration_singleObserver() 219 Arrays.asList(new VersionedPackage(APP_A, VERSION_CODE)), in testRegistration_singleObserver() 233 watchdog.startObservingHealth(observer1, Arrays.asList(APP_A), SHORT_DURATION); in testRegistration_multiObservers() 234 watchdog.startObservingHealth(observer2, Arrays.asList(APP_A, APP_B), SHORT_DURATION); in testRegistration_multiObservers() 236 Arrays.asList(new VersionedPackage(APP_A, VERSION_CODE), in testRegistration_multiObservers() 251 watchdog.startObservingHealth(observer, Arrays.asList(APP_A), SHORT_DURATION); in testUnregistration_singleObserver() 254 Arrays.asList(new VersionedPackage(APP_A, VERSION_CODE)), in testUnregistration_singleObserver() 267 watchdog.startObservingHealth(observer1, Arrays.asList(APP_A), SHORT_DURATION); in testUnregistration_multiObservers() 268 watchdog.startObservingHealth(observer2, Arrays.asList(APP_A), SHORT_DURATION); in testUnregistration_multiObservers() 271 Arrays.asList(new VersionedPackage(APP_A, VERSION_CODE)), in testUnregistration_multiObservers() [all …]
|
/frameworks/base/tools/app_metadata_bundles/src/test/java/com/android/asllib/marshallable/ |
D | DataTypeEqualityTest.java | 57 Arrays.asList( in testEqualityDifferentOrder() 65 Arrays.asList( in testEqualityDifferentOrder() 81 Arrays.asList( in testContainsDifferentOrder() 89 Arrays.asList( in testContainsDifferentOrder() 106 Arrays.asList( in testInequality() 114 Arrays.asList(DataType.Purpose.PERSONALIZATION), in testInequality() 129 Arrays.asList( in testInequalityBool() 137 Arrays.asList( in testInequalityBool() 154 Arrays.asList( in testDoesNotContain() 162 Arrays.asList(DataType.Purpose.PERSONALIZATION), in testDoesNotContain()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/autofill/ |
D | AutofillManagerServiceTest.java | 57 assertThat(result.get("one_is_the_loniest_package")).asList().containsExactly("url"); in testGetAllowedCompatModePackages_onePackageOneUrl() 65 assertThat(result.get("one_is_the_loniest_package")).asList() in testGetAllowedCompatModePackages_onePackageMultipleUrls() 81 assertThat(result.get("p1")).asList().containsExactly("p1u1"); in testGetAllowedCompatModePackages_multiplePackagesMultipleUrls() 83 assertThat(result.get("p3")).asList().containsExactly("p3u1", "p3u2"); in testGetAllowedCompatModePackages_multiplePackagesMultipleUrls() 91 assertThat(result.get("p1")).asList().containsExactly("p1u1"); in testGetAllowedCompatModePackages_threePackagesOneInvalid() 92 assertThat(result.get("p3")).asList().containsExactly("p3u1", "p3u2"); in testGetAllowedCompatModePackages_threePackagesOneInvalid()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | DocumentsProviderTest.java | 56 final Path expected = new Path(ROOT_ID, Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID)); in testFindDocumentPath_docUri() 72 final Path expected = new Path(null, Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID)); in testFindDocumentPath_treeUri() 84 mProvider.nextPath = new Path(null, Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID)); in testFindDocumentPath_treeUri_throwsOnNonChildDocument() 97 mProvider.nextPath = new Path(ROOT_ID, Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID)); in testFindDocumentPath_treeUri_erasesNonNullRootId() 103 assertEquals(Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID), path.getPath()); in testFindDocumentPath_treeUri_erasesNonNullRootId() 110 null, Arrays.asList(ANCESTOR_DOCUMENT_ID, PARENT_DOCUMENT_ID, DOCUMENT_ID)); in testFindDocumentPath_treeUri_erasesDocsOutsideTree() 115 assertEquals(Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID), path.getPath()); in testFindDocumentPath_treeUri_erasesDocsOutsideTree()
|
/frameworks/base/wifi/tests/src/android/net/wifi/nl80211/ |
D | SingleScanSettingsTest.java | 77 new ArrayList<>(Arrays.asList(mChannelSettings1, mChannelSettings2)); in canSerializeAndDeserialize() 79 new ArrayList<>(Arrays.asList(mHiddenNetwork1, mHiddenNetwork2)); in canSerializeAndDeserialize() 102 new ArrayList<>(Arrays.asList(mChannelSettings1, mChannelSettings2)); in testAsHashMapKey() 104 new ArrayList<>(Arrays.asList(mHiddenNetwork1, mHiddenNetwork2)); in testAsHashMapKey() 110 new ArrayList<>(Arrays.asList(mChannelSettings1, mChannelSettings2)); in testAsHashMapKey() 112 new ArrayList<>(Arrays.asList(mHiddenNetwork1, mHiddenNetwork2)); in testAsHashMapKey()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/license/ |
D | LicenseHtmlGeneratorFromXmlTest.java | 230 toBoth.put("", new HashSet<String>(Arrays.asList("0", "1"))); in testGenerateHtml() 231 toOne.put("", new HashSet<String>(Arrays.asList("0"))); in testGenerateHtml() 254 toBoth.put("libA", new HashSet<String>(Arrays.asList("0"))); in testGenerateNewHtml() 255 toBoth.put("libB", new HashSet<String>(Arrays.asList("1"))); in testGenerateNewHtml() 256 toOne.put("libA", new HashSet<String>(Arrays.asList("0"))); in testGenerateNewHtml() 257 toOther.put("libC", new HashSet<String>(Arrays.asList("0"))); in testGenerateNewHtml() 281 toBoth.put("", new HashSet<String>(Arrays.asList("0", "1"))); in testGenerateHtmlWithCustomHeading() 282 toOne.put("", new HashSet<String>(Arrays.asList("0"))); in testGenerateHtmlWithCustomHeading() 306 toBoth.put("libA", new HashSet<String>(Arrays.asList("0"))); in testGenerateNewHtmlWithCustomHeading() 307 toBoth.put("libB", new HashSet<String>(Arrays.asList("1"))); in testGenerateNewHtmlWithCustomHeading() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | DistractingPackageHelperTest.kt | 64 assertThat(modifiedPackages).asList().containsExactly(TEST_PACKAGE_1, TEST_PACKAGE_2) in setDistractingPackageRestrictionsAsUser() 107 assertThat(unactionedPackages).asList().hasSize(1) in setDistractingPackageRestrictionsAsUser_callerIsNotAllowed() 108 assertThat(unactionedPackages).asList().contains(TEST_PACKAGE_1) in setDistractingPackageRestrictionsAsUser_callerIsNotAllowed() 117 assertThat(unactionedPackages).asList().hasSize(1) in setDistractingPackageRestrictionsAsUser_setCallerItself() 118 assertThat(unactionedPackages).asList().contains(DEVICE_OWNER_PACKAGE) in setDistractingPackageRestrictionsAsUser_setCallerItself() 127 assertThat(unactionedPackages).asList().hasSize(1) in setDistractingPackageRestrictionsAsUser_nonexistentPackage() 128 assertThat(unactionedPackages).asList().contains(NONEXISTENT_PACKAGE) in setDistractingPackageRestrictionsAsUser_nonexistentPackage() 142 assertThat(unactionedPackages).asList().contains(pkg) in setDistractingPackageRestrictionsAsUser_setKnownPackages() 165 assertThat(modifiedPackages).asList().containsExactly(TEST_PACKAGE_1, TEST_PACKAGE_2) in removeDistractingPackageRestrictions() 209 assertThat(changedPackages).asList().containsExactly(TEST_PACKAGE_1, TEST_PACKAGE_2) in sendDistractingPackagesChanged() [all …]
|
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/ |
D | LocationAlgorithmEventTest.java | 91 Arrays.asList("--suggestion", suggestion.toString())); in testParseCommandLineArg_noStatus() 102 Arrays.asList("--status", event.getAlgorithmStatus().toString())); in testParseCommandLineArg_noSuggestion() 114 Arrays.asList("--status", event.getAlgorithmStatus().toString(), in testParseCommandLineArg_suggestionUncertain() 131 Arrays.asList("--status", event.getAlgorithmStatus().toString(), in testParseCommandLineArg_suggestionEmpty() 144 1111L, Arrays.asList("Europe/London", "Europe/Paris")); in testParseCommandLineArg_suggestionPresent() 148 Arrays.asList("--status", event.getAlgorithmStatus().toString(), in testParseCommandLineArg_suggestionPresent() 161 1111L, Arrays.asList("Europe/London", "Europe/Paris")); in testParseCommandLineArg_unknownArgument() 165 Arrays.asList("--status", event.getAlgorithmStatus().toString(), in testParseCommandLineArg_unknownArgument()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyEventLoggerTest.java | 49 assertThat(eventLogger.getStringArray()).asList() in testAllFields() 60 .setStrings("string1", "string2", "string3").getStringArray()).asList() in testStrings() 66 .asList().containsExactly("string1", "string2", "string3").inOrder(); in testStrings() 71 .asList().containsExactly("string1", "string2", "string3").inOrder(); in testStrings() 74 .setStrings((String) null).getStringArray()).asList() in testStrings()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/engine/ |
D | RuleEvaluatorTest.java | 99 RuleEvaluator.evaluateRules(Arrays.asList(rule1, rule2), APP_INSTALL_METADATA); in testEvaluateRules_oneMatch_deny() 117 Arrays.asList( in testEvaluateRules_multipleMatches_deny() 129 RuleEvaluator.evaluateRules(Arrays.asList(rule1, rule2), APP_INSTALL_METADATA); in testEvaluateRules_multipleMatches_deny() 174 Arrays.asList( in testEvaluateRules_validForm_deny() 197 Arrays.asList( in testEvaluateRules_orRules() 220 Arrays.asList( in testEvaluateRules_compoundFormulaWithNot_deny() 252 Arrays.asList( in testEvaluateRules_forceAllow() 264 RuleEvaluator.evaluateRules(Arrays.asList(rule1, rule2), APP_INSTALL_METADATA); in testEvaluateRules_forceAllow() 282 Arrays.asList( in testEvaluateRules_multipleMatches_forceAllow() 294 RuleEvaluator.evaluateRules(Arrays.asList(rule1, rule2), APP_INSTALL_METADATA); in testEvaluateRules_multipleMatches_forceAllow()
|