Home
last modified time | relevance | path

Searched refs:build (Results 1 – 25 of 1306) sorted by relevance

12345678910>>...53

/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DSparseRectFArrayTest.java71 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/
DSuspendDialogInfoTest.java49 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesIcons()
52 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesIcons()
59 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesTitle()
62 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesTitle()
69 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesButtonText()
72 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesButtonText()
79 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesMessageIds()
82 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesMessageIds()
94 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsIgnoresMessageStringsWhenIdsSet()
104 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesMessageStringsWhenNoIdsSet()
[all …]
DScanTests.java100 createBasicScanRequestBuilder(createBasicPackage(DUMMY_PACKAGE_NAME).build()) in newInstallSimpleAllNominal()
103 .build(); in newInstallSimpleAllNominal()
118 createBasicScanRequestBuilder(createBasicPackage(DUMMY_PACKAGE_NAME).build()) in newInstallForAllUsers()
122 .build(); in newInstallForAllUsers()
133 createBasicScanRequestBuilder(createBasicPackage(DUMMY_PACKAGE_NAME).build()) in installRealPackageName()
135 .build(); in installRealPackageName()
144 .setRealPackageName("com.package.real").build()) in installRealPackageName()
145 .build(); in installRealPackageName()
158 .build(); in updateSimpleNominal()
160 createBasicScanRequestBuilder(createBasicPackage(DUMMY_PACKAGE_NAME).build()) in updateSimpleNominal()
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DScanFilterTest.java62 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/
DTelephonyTimeZoneSuggestionTest.java42 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/
DCompatConfigTest.java82 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testUnknownChangeEnabled()
90 .build(); in testDisabledChangeDisabled()
92 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testDisabledChangeDisabled()
100 .build(); in testTargetSdkChangeDisabled()
103 ApplicationInfoBuilder.create().withTargetSdk(2).build())) in testTargetSdkChangeDisabled()
111 .build(); in testTargetSdkChangeEnabled()
114 ApplicationInfoBuilder.create().withTargetSdk(3).build())).isTrue(); in testTargetSdkChangeEnabled()
121 .build(); in testDisabledOverrideTargetSdkChange()
124 ApplicationInfoBuilder.create().withTargetSdk(3).build())).isFalse(); in testDisabledOverrideTargetSdkChange()
132 .build(); in testGetDisabledChanges()
[all …]
DOverrideValidatorImplTest.java94 .addLoggingOnlyChangeWithId(6).build(); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
100 .withPackageName(PACKAGE_NAME).build()); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
138 .addLoggingOnlyChangeWithId(6).build(); in getOverrideAllowedState_debugBuildAnyChangeReleaseApp_allowOverride()
143 .withTargetSdk(TARGET_SDK).build()); in getOverrideAllowedState_debugBuildAnyChangeReleaseApp_allowOverride()
179 .addDisabledChangeWithId(4).build(); in getOverrideAllowedState_betaBuildTargetSdkChangeDebugApp_allowOverride()
185 .withPackageName(PACKAGE_NAME).build()); in getOverrideAllowedState_betaBuildTargetSdkChangeDebugApp_allowOverride()
210 .addEnabledChangeWithId(1).build(); in getOverrideAllowedState_betaBuildEnabledChangeDebugApp_allowOverride()
216 .build()); in getOverrideAllowedState_betaBuildEnabledChangeDebugApp_allowOverride()
229 .addDisabledChangeWithId(1).build(); in getOverrideAllowedState_betaBuildDisabledChangeDebugApp_allowOverride()
234 .withPackageName(PACKAGE_NAME).build()); in getOverrideAllowedState_betaBuildDisabledChangeDebugApp_allowOverride()
[all …]
/frameworks/av/media/codec2/components/base/
DSimpleC2Interface.cpp43 .build()); in BaseParams()
56 .build()); in BaseParams()
62 .build()); in BaseParams()
67 .build()); in BaseParams()
73 .build()); in BaseParams()
78 .build()); in BaseParams()
122 .build()); in BaseParams()
128 .build()); in BaseParams()
134 .build()); in BaseParams()
140 .build()); in BaseParams()
[all …]
/frameworks/base/core/tests/benchmarks/src/com/android/internal/util/
DIndentingPrintWriterBenchmark.java42 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/
DTelephonyTimeSuggestionTest.java36 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/
DZenPolicyTest.java41 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
47 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
65 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyAllowedToUnset()
69 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToUnset()
82 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyDisallowedToUnset()
86 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyDisallowedToUnset()
101 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyDisallowedToAllowed()
105 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyDisallowedToAllowed()
119 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyUnsetToAllowed()
123 ZenPolicy remindersUnset = builder2.build(); in testZenPolicyApplyUnsetToAllowed()
[all …]
DNotificationTest.java82 Notification before = nb.build(); in testStripsExtendersInLowRamModeNoWhitelistNoTv()
108 Notification before = nb.build(); in testStripsExtendersInLowRamModeHasWhitelist()
141 .build(); in testStripsRemoteViewsInLowRamMode()
159 Notification before = nb.build(); in testDoesNotStripsExtendersInNormalRamMode()
434 .build(); in testActionsDifferent_null()
436 .build(); in testActionsDifferent_null()
447 .addAction(new Notification.Action.Builder(icon, "TEXT 1", intent).build()) in testActionsDifferentSame()
448 .build(); in testActionsDifferentSame()
450 .addAction(new Notification.Action.Builder(icon, "TEXT 1", intent).build()) in testActionsDifferentSame()
451 .build(); in testActionsDifferentSame()
[all …]
/frameworks/base/packages/SettingsLib/search/processor-src/com/android/settingslib/search/
DIndexableProcessor.java83 .build(); in process()
89 .build(); in process()
142 .build(); in process()
148 .addMethod(baseConstructorBuilder.build()) in process()
151 .build(); in process()
152 final JavaFile searchIndexableResourcesBase = JavaFile.builder(PACKAGE, baseClass).build(); in process()
158 .addMethod(mobileConstructorBuilder.build()) in process()
159 .build()) in process()
160 .build(); in process()
166 .addMethod(tvConstructorBuilder.build()) in process()
[all …]
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java123 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/base/tests/FlickerTests/src/com/android/server/wm/flicker/
DDebugTest.java55 .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()
99 .build().run(); in openAppToSplitScreen()
109 .build().run(); in splitScreenToLauncher()
120 .includeJankyRuns().build().run(); in resizeSplitScreen()
133 .build().run(); in editTextSetFocus()
144 .build().run(); in editTextLoseFocusToHome()
[all …]
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/
DEthernetTrackerTest.java50 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/core/tests/coretests/src/android/service/euicc/
DEuiccProfileInfoTest.java57 .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 testBuilder_BasedOnAnotherProfileWithEmptyAccessRules()
174 EuiccProfileInfo copied = new EuiccProfileInfo.Builder(p).build(); in testBuilder_BasedOnAnotherProfileWithEmptyAccessRules()
195 .build(); in testEqualsHashCode()
203 t = new EuiccProfileInfo.Builder(p).setIccid("21").build(); in testEqualsHashCode()
207 t = new EuiccProfileInfo.Builder(p).setNickname(null).build(); in testEqualsHashCode()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationTest.java66 .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/
DRecentTasksTest.java130 mTasks.add(createTaskBuilder(".Task1").build()); in setUp()
131 mTasks.add(createTaskBuilder(".Task2").build()); in setUp()
132 mTasks.add(createTaskBuilder(".Task3").build()); in setUp()
133 mTasks.add(createTaskBuilder(".Task4").build()); in setUp()
134 mTasks.add(createTaskBuilder(".Task5").build()); in setUp()
235 .build(); in testAddTasksMultipleTasks_expectRemovedNoTrim()
238 .build(); in testAddTasksMultipleTasks_expectRemovedNoTrim()
259 .setStack(mHomeStack).build(); in testAddTasksDifferentStacks_expectNoRemove()
262 .setStack(mStack).build(); in testAddTasksDifferentStacks_expectNoRemove()
279 .build(); in testAddTaskCompatibleActivityType_expectRemove()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceClientPermissionsTest.java62 .authority("com.android.pkg.slices").build(); in testRemoveBasic()
68 .build(), testPkg); in testRemoveBasic()
71 .build(), testPkg); in testRemoveBasic()
76 .build(), testPkg.getUserId())); in testRemoveBasic()
88 .authority("com.android.pkg.slices").build(); in testRemoveSubtrees()
95 .build(), testPkg); in testRemoveSubtrees()
99 .build(), testPkg); in testRemoveSubtrees()
102 .build(), testPkg); in testRemoveSubtrees()
107 .build(), testPkg.getUserId())); in testRemoveSubtrees()
119 .authority("com.android.pkg.slices").build(); in testAddConsolidate_addFirst()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationUiAdjustmentTest.java44 createActionBuilder("first", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentLength()
56 createActionBuilder("first", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentLabels()
58 createActionBuilder("second", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentLabels()
71 createActionBuilder("same", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentIcons()
74 .build(); in needReinflate_differentIcons()
90 .build(); in needReinflate_differentPendingIntent()
93 .build(); in needReinflate_differentPendingIntent()
114 .build(); in needReinflate_differentChoices()
118 .build(); in needReinflate_differentChoices()
139 .build(); in needReinflate_differentRemoteInputLabel()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DActionsSuggestionsHelperTest.java73 new ConversationActions.Message.Builder(PERSON_USER_OTHERS).build(); in testToNativeMessages_noTextMessages()
84 Person userA = new Person.Builder().setName("userA").build(); in testToNativeMessages_userIdEncoding()
85 Person userB = new Person.Builder().setName("userB").build(); in testToNativeMessages_userIdEncoding()
90 .build(); in testToNativeMessages_userIdEncoding()
94 .build(); in testToNativeMessages_userIdEncoding()
98 .build(); in testToNativeMessages_userIdEncoding()
102 .build(); in testToNativeMessages_userIdEncoding()
122 .build(); in testToNativeMessages_referenceTime()
126 .build(); in testToNativeMessages_referenceTime()
131 .build(); in testToNativeMessages_referenceTime()
[all …]
DTextClassifierTest.java92 .build(); in testSuggestSelection()
113 .build(); in testSuggestSelection_url()
131 .build(); in testSmartSelection_withEmoji()
149 .build(); in testClassifyText()
166 .build(); in testClassifyText_url()
181 .build(); in testClassifyText_address()
198 .build(); in testClassifyText_url_inCaps()
216 .build(); in testClassifyText_date()
238 .build(); in testClassifyText_datetime()
253 .build(); in testClassifyText_foreignText()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkSpecifierTest.java60 .build(); in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern()
85 .build(); in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
118 .build(); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
149 .build(); in testWifiNetworkSpecifierBuilderSetSsidWithNonUnicodeString()
161 .build(); in testWifiNetworkSpecifierSetWpa2PasphraseWithNonAsciiString()
170 new WifiNetworkSpecifier.Builder().build(); in testWifiNetworkSpecifierBuilderWithNoSsidAndBssidPattern()
181 .build(); in testWifiNetworkSpecifierBuilderWithMatchAllSsidPattern1()
192 .build(); in testWifiNetworkSpecifierBuilderWithMatchAllSsidPattern2()
203 .build(); in testWifiNetworkSpecifierBuilderWithMatchAllSsidPattern3()
214 .build(); in testWifiNetworkSpecifierBuilderWithMatchAllBssidPattern()
[all …]
/frameworks/base/tests/net/common/java/android/net/
DCaptivePortalDataTest.kt44 .build()
52 assertParcelingIsLossless(makeBuilder().setUserPortalUrl(null).build()) in makeBuilder()
53 assertParcelingIsLossless(makeBuilder().setVenueInfoUrl(null).build()) in makeBuilder()
58 assertEquals(data, makeBuilder().build()) in testEquals()
90 assertEquals(-1L, CaptivePortalData.Builder(null).build().byteLimit) in testByteLimit()
102 assertEquals(-1L, CaptivePortalData.Builder(null).build().expiryTimeMillis) in testExpiryTimeMillis()
108 assertFalse(makeBuilder().setCaptive(false).build().isCaptive) in testIsCaptive()
112 CaptivePortalData.Builder(this).apply { mutator(this) }.build() in mutate()

12345678910>>...53