/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
D | SparseRectFArrayTest.java | 71 assertNull(builder.build().get(-1)); in testBuilder() 72 assertNull(builder.build().get(0)); in testBuilder() 73 assertNull(builder.build().get(99)); in testBuilder() 74 assertEquals(0, builder.build().getFlags(99, 0 /* valueIfKeyNotFound */)); in testBuilder() 75 assertEquals(1, builder.build().getFlags(99, 1 /* valueIfKeyNotFound */)); in testBuilder() 76 assertEquals(TEMP_RECT, builder.build().get(100)); in testBuilder() 77 assertEquals(TEMP_FLAGS, builder.build().getFlags(100, 0 /* valueIfKeyNotFound */)); in testBuilder() 78 assertEquals(TEMP_FLAGS, builder.build().getFlags(100, 1 /* valueIfKeyNotFound */)); in testBuilder() 79 assertNull(builder.build().get(101)); in testBuilder() 80 assertEquals(0, builder.build().getFlags(101, 0 /* valueIfKeyNotFound */)); in testBuilder() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | SuspendDialogInfoTest.java | 53 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesIcons() 56 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesIcons() 63 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesTitle() 66 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesTitle() 73 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesButtonText() 76 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesButtonText() 83 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesButtonAction() 86 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesButtonAction() 95 assertEquals(BUTTON_ACTION_MORE_DETAILS, dialogBuilder.build().getNeutralButtonAction()); in defaultButtonAction() 102 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesMessageIds() [all …]
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/ |
D | ScanFilterTest.java | 62 ScanFilter filter = mFilterBuilder.setDeviceName("Ped").build(); in testsetNameFilter() 65 filter = mFilterBuilder.setDeviceName("Pem").build(); in testsetNameFilter() 72 ScanFilter filter = mFilterBuilder.setDeviceAddress(DEVICE_MAC).build(); in testDeviceFilter() 75 filter = mFilterBuilder.setDeviceAddress("11:22:33:44:55:66").build(); in testDeviceFilter() 82 ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB")).build(); in testsetServiceUuidFilter() 86 ParcelUuid.fromString("0000110C-0000-1000-8000-00805F9B34FB")).build(); in testsetServiceUuidFilter() 92 .build(); in testsetServiceUuidFilter() 101 ScanFilter filter = mFilterBuilder.setServiceData(serviceDataUuid, setServiceData).build(); in testsetServiceDataFilter() 105 filter = mFilterBuilder.setServiceData(serviceDataUuid, emptyData).build(); in testsetServiceDataFilter() 110 filter = mFilterBuilder.setServiceData(serviceDataUuid, prefixData).build(); in testsetServiceDataFilter() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/timezonedetector/ |
D | TelephonyTimeZoneSuggestionTest.java | 42 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals() 49 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals() 50 TelephonyTimeZoneSuggestion two = builder2.build(); in testEquals() 58 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals() 59 TelephonyTimeZoneSuggestion three = builder3.build(); in testEquals() 68 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals() 69 TelephonyTimeZoneSuggestion two = builder2.build(); in testEquals() 77 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals() 78 TelephonyTimeZoneSuggestion two = builder2.build(); in testEquals() 84 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatConfigTest.java | 84 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testUnknownChangeEnabled() 92 .build(); in testDisabledChangeDisabled() 94 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testDisabledChangeDisabled() 102 .build(); in testTargetSdkChangeDisabled() 105 ApplicationInfoBuilder.create().withTargetSdk(2).build())) in testTargetSdkChangeDisabled() 113 .build(); in testTargetSdkChangeEnabled() 116 ApplicationInfoBuilder.create().withTargetSdk(3).build())).isTrue(); in testTargetSdkChangeEnabled() 123 .build(); in testDisabledOverrideTargetSdkChange() 126 ApplicationInfoBuilder.create().withTargetSdk(3).build())).isFalse(); in testDisabledOverrideTargetSdkChange() 134 .build(); in testGetDisabledChanges() [all …]
|
/frameworks/av/media/codec2/components/base/ |
D | SimpleC2Interface.cpp | 49 .build()); in BaseParams() 54 .build()); in BaseParams() 67 .build()); in BaseParams() 73 .build()); in BaseParams() 78 .build()); in BaseParams() 84 .build()); in BaseParams() 89 .build()); in BaseParams() 135 .build()); in BaseParams() 141 .build()); in BaseParams() 147 .build()); in BaseParams() [all …]
|
/frameworks/base/core/tests/benchmarks/src/com/android/internal/util/ |
D | IndentingPrintWriterBenchmark.java | 42 final Node manyChildren = Node.build("ManyChildren", Node.build("1"), Node.build("2"), in setUp() 43 Node.build("3"), Node.build("4"), Node.build("5"), Node.build("6"), Node.build("7"), in setUp() 44 Node.build("8"), Node.build("9"), Node.build("10")); in setUp() 46 mSimple = Node.build("RED"); in setUp() 47 mComplex = Node.build("PARENT", Node.build("RED"), Node.build("GREEN", in setUp() 48 Node.build("BLUE", manyChildren, manyChildren), manyChildren, manyChildren), in setUp() 105 public static Node build(String name, Node... children) { in build() method in IndentingPrintWriterBenchmark.Node
|
/frameworks/base/core/tests/coretests/src/android/app/timedetector/ |
D | TelephonyTimeSuggestionTest.java | 36 TelephonyTimeSuggestion one = builder1.build(); in testEquals() 42 TelephonyTimeSuggestion one = builder1.build(); in testEquals() 43 TelephonyTimeSuggestion two = builder2.build(); in testEquals() 50 TelephonyTimeSuggestion one = builder1.build(); in testEquals() 56 TelephonyTimeSuggestion one = builder1.build(); in testEquals() 57 TelephonyTimeSuggestion two = builder2.build(); in testEquals() 66 TelephonyTimeSuggestion one = builder1.build(); in testEquals() 67 TelephonyTimeSuggestion three = builder3.build(); in testEquals() 76 TelephonyTimeSuggestion one = builder1.build(); in testEquals() 77 TelephonyTimeSuggestion two = builder2.build(); in testEquals() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenPolicyTest.java | 45 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed() 51 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed() 69 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyAllowedToUnset() 73 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToUnset() 86 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyDisallowedToUnset() 90 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyDisallowedToUnset() 105 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyDisallowedToAllowed() 109 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyDisallowedToAllowed() 123 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyUnsetToAllowed() 127 ZenPolicy remindersUnset = builder2.build(); in testZenPolicyApplyUnsetToAllowed() [all …]
|
D | NotificationTest.java | 77 Notification before = nb.build(); in testDoesNotStripsExtenders() 351 .build(); in testActionsDifferent_null() 353 .build(); in testActionsDifferent_null() 364 .addAction(new Notification.Action.Builder(icon, "TEXT 1", intent).build()) in testActionsDifferentSame() 365 .build(); in testActionsDifferentSame() 367 .addAction(new Notification.Action.Builder(icon, "TEXT 1", intent).build()) in testActionsDifferentSame() 368 .build(); in testActionsDifferentSame() 379 .addAction(new Notification.Action.Builder(icon, "TEXT 1", intent).build()) in testActionsDifferentText() 380 .build(); in testActionsDifferentText() 382 .addAction(new Notification.Action.Builder(icon, "TEXT 2", intent).build()) in testActionsDifferentText() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationEntryTest.java | 89 .setNotification(n.build()) in setup() 91 .build(); in setup() 111 .setNotification(n.build()) in testIsExemptFromDndVisualSuppression_media() 112 .build(); in testIsExemptFromDndVisualSuppression_media() 130 .build(); in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 132 modifyRanking(entry).setSuppressedVisualEffects(SUPPRESSED_EFFECT_AMBIENT).build(); in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 136 new Notification.Builder(mContext, "").setCategory(CATEGORY_CALL).build()) in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 137 .build(); in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 145 .build()) in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 146 .build(); in testIsNotExemptFromDndVisualSuppression_hiddenCategories() [all …]
|
D | NotificationRankingManagerTest.kt | 97 .build()) in <lambda>() 101 .build() in <lambda>() 111 .build()) in <lambda>() 115 .build() in <lambda>() 127 .build() in <lambda>() 138 .build() in <lambda>() 142 .build() in <lambda>() 153 .build() in <lambda>() 165 .build() in <lambda>() 175 .build() in <lambda>() [all …]
|
/frameworks/base/packages/SettingsLib/search/processor-src/com/android/settingslib/search/ |
D | IndexableProcessor.java | 84 .build(); in process() 90 .build(); in process() 149 .build(); in process() 155 .addMethod(baseConstructorBuilder.build()) in process() 158 .build(); in process() 159 final JavaFile searchIndexableResourcesBase = JavaFile.builder(PACKAGE, baseClass).build(); in process() 165 .addMethod(mobileConstructorBuilder.build()) in process() 166 .build()) in process() 167 .build(); in process() 173 .addMethod(tvConstructorBuilder.build()) in process() [all …]
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/ |
D | DebugTest.java | 55 .recordAllRuns().build().run(); in openAppCold() 64 .recordAllRuns().build().run(); in openAppWarm() 73 Surface.ROTATION_270).recordAllRuns().build().run(); in changeOrientationFromNaturalToLeft() 81 CommonTransitions.closeAppWithBackKey(testApp, uiDevice).recordAllRuns().build().run(); in closeAppWithBackKey() 89 CommonTransitions.closeAppWithHomeKey(testApp, uiDevice).recordAllRuns().build().run(); in closeAppWithHomeKey() 98 .build().run(); in openAppToSplitScreen() 108 .build().run(); in splitScreenToLauncher() 119 .includeJankyRuns().recordEachRun().build().run(); in resizeSplitScreen() 132 .build().run(); in editTextSetFocus() 143 .build().run(); in editTextLoseFocusToHome() [all …]
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | NotificationTestList.java | 123 AudioAttributes.USAGE_NOTIFICATION_RINGTONE).build()); 128 .build(); 140 .build(); 158 .build(); 175 .build(); 181 .build(); 189 .build(); 196 .build(); 207 .build(); 213 .build(); [all …]
|
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/ |
D | EthernetTrackerTest.java | 50 new StaticIpConfigBuilder().setIp("192.0.2.10/24").build(), in createStaticIpConfiguration() 60 .build(), in createStaticIpConfiguration() 70 .build(), in createStaticIpConfiguration() 131 StaticIpConfiguration build() { in build() method in EthernetTrackerTest.StaticIpConfigBuilder 148 .build(); in createNetworkCapabilities() 159 .build(); in createNetworkCapabilities() 172 .build(), in createNetworkCapabilities() 184 .build(), in createNetworkCapabilities() 203 .build(), in createNetworkCapabilities() 211 .build(), in createNetworkCapabilities() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiNetworkSuggestionTest.java | 53 .build(); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction() 81 .build(); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction() 111 .build(); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction() 141 .build(); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithNotMeteredAndReqUserInteraction() 167 .build(); in testWifiNetworkSuggestionBuilderForEnhancedOpenNetworkWithBssid() 190 .build(); in testWifiNetworkSuggestionBuilderForWpa3PskNetwork() 218 .build(); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork() 249 .build(); in testWifiNetworkSuggestionBuilderForEapNetworkWithoutCa() 266 .build(); in testWifiNetworkSuggestionBuilderForEapNetworkWithoutMatch() 278 .build(); in testWifiNetworkSuggestionBuilderForWapiPskNetwork() [all …]
|
D | WifiNetworkSpecifierTest.java | 57 .build(); in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern() 83 .build(); in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern() 116 .build(); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() 147 .build(); in testWifiNetworkSpecifierBuilderSetSsidWithNonUnicodeString() 159 .build(); in testWifiNetworkSpecifierSetWpa2PasphraseWithNonAsciiString() 168 new WifiNetworkSpecifier.Builder().build(); in testWifiNetworkSpecifierBuilderWithNoSsidAndBssidPattern() 179 .build(); in testWifiNetworkSpecifierBuilderWithMatchAllSsidPattern1() 190 .build(); in testWifiNetworkSpecifierBuilderWithMatchAllSsidPattern2() 201 .build(); in testWifiNetworkSpecifierBuilderWithMatchAllSsidPattern3() 213 .build(); in testWifiNetworkSpecifierBuilderWithMatchAllBssidPattern() [all …]
|
D | SoftApConfigurationTest.java | 72 .build(); in testBasicSettings() 87 SoftApConfiguration copy = new SoftApConfiguration.Builder(original).build(); in testBasicSettings() 97 .build(); in testWpa2() 111 SoftApConfiguration copy = new SoftApConfiguration.Builder(original).build(); in testWpa2() 133 .build(); in testWpa2WithAllFieldCustomized() 152 SoftApConfiguration copy = new SoftApConfiguration.Builder(original).build(); in testWpa2WithAllFieldCustomized() 164 .build(); in testWpa3Sae() 178 SoftApConfiguration copy = new SoftApConfiguration.Builder(original).build(); in testWpa3Sae() 191 .build(); in testWpa3SaeTransition() 205 SoftApConfiguration copy = new SoftApConfiguration.Builder(original).build(); in testWpa3SaeTransition() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | NotificationTest.java | 66 .build(); in testColorizedByPermission() 71 .build(); in testColorizedByPermission() 77 .build(); in testColorizedByPermission() 86 .build(); in testColorizedByForeground() 91 .build(); in testColorizedByForeground() 97 .build(); in testColorizedByForeground() 104 Notification n = builder.build(); in testColorSatisfiedWhenBgDarkTextDarker() 120 Notification n = new Notification.Builder(mContext).build(); in testHasCompletedProgress_noProgress() 129 .build(); in testHasCompletedProgress_complete() 132 .build(); in testHasCompletedProgress_complete() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RecentTasksTest.java | 140 mTasks.add(createTaskBuilder(".Task1").build()); in setUp() 141 mTasks.add(createTaskBuilder(".Task2").build()); in setUp() 142 mTasks.add(createTaskBuilder(".Task3").build()); in setUp() 143 mTasks.add(createTaskBuilder(".Task4").build()); in setUp() 144 mTasks.add(createTaskBuilder(".Task5").build()); in setUp() 310 .build(); in testAddTasksMultipleTasks_expectRemovedNoTrim() 313 .build(); in testAddTasksMultipleTasks_expectRemovedNoTrim() 334 .setStack(mTaskContainer.getRootHomeTask()).build(); in testAddTasksDifferentStacks_expectNoRemove() 337 .setStack(mStack).build(); in testAddTasksDifferentStacks_expectNoRemove() 354 .build(); in testAddTaskCompatibleActivityType_expectRemove() [all …]
|
/frameworks/base/core/tests/coretests/src/android/service/euicc/ |
D | EuiccProfileInfoTest.java | 57 .build(); in testWriteToParcel() 82 .build(); in testWriteToParcelNullCarrierId() 110 .build(); in testBuilderAndGetters() 148 .build(); in testBuilder_BasedOnAnotherProfile() 150 EuiccProfileInfo copied = new EuiccProfileInfo.Builder(p).build(); in testBuilder_BasedOnAnotherProfile() 172 .build(); in testEqualsHashCode() 180 t = new EuiccProfileInfo.Builder(p).setIccid("21").build(); in testEqualsHashCode() 184 t = new EuiccProfileInfo.Builder(p).setNickname(null).build(); in testEqualsHashCode() 188 t = new EuiccProfileInfo.Builder(p).setProfileName(null).build(); in testEqualsHashCode() 192 t = new EuiccProfileInfo.Builder(p).setServiceProviderName(null).build(); in testEqualsHashCode() [all …]
|
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/ |
D | StubMediaRoute2ProviderService.java | 88 .build(); in initializeRoutes() 92 .build(); in initializeRoutes() 96 .build(); in initializeRoutes() 100 .build(); in initializeRoutes() 104 .build(); in initializeRoutes() 108 .build(); in initializeRoutes() 113 .build(); in initializeRoutes() 118 .build(); in initializeRoutes() 124 .build(); in initializeRoutes() 205 .build()); in onSetRouteVolume() [all …]
|
/frameworks/base/tests/net/java/android/net/ |
D | TelephonyNetworkSpecifierTest.java | 47 new TelephonyNetworkSpecifier.Builder().build(); in testBuilderBuildWithDefault() 61 .build(); in testBuilderBuildWithInvalidSubId() 72 .build(); in testBuilderBuildWithValidSubId() 83 .build(); in testParcel() 94 .build(); in testCanBeSatisfiedBy() 97 .build(); in testCanBeSatisfiedBy() 100 .build(); in testCanBeSatisfiedBy()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationUiAdjustmentTest.java | 45 createActionBuilder("first", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentLength() 57 createActionBuilder("first", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentLabels() 59 createActionBuilder("second", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentLabels() 72 createActionBuilder("same", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentIcons() 75 .build(); in needReinflate_differentIcons() 91 .build(); in needReinflate_differentPendingIntent() 94 .build(); in needReinflate_differentPendingIntent() 115 .build(); in needReinflate_differentChoices() 119 .build(); in needReinflate_differentChoices() 140 .build(); in needReinflate_differentRemoteInputLabel() [all …]
|