Home
last modified time | relevance | path

Searched refs:mBuilder (Results 1 – 25 of 41) sorted by relevance

12

/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java70 private Builder mBuilder; field in AlertDialog_BuilderTest
115 mBuilder = new AlertDialog.Builder(mContext, R.style.DialogTheme_Test); in testConstructorWithThemeId()
120 final Context themedContext = mBuilder.getContext(); in testConstructorWithThemeId()
132 mBuilder = new AlertDialog.Builder(mContext); in testSetIconWithParamInt()
133 mBuilder.setIcon(android.R.drawable.btn_default); in testSetIconWithParamInt()
134 mDialog = mBuilder.show(); in testSetIconWithParamInt()
146 mBuilder = new AlertDialog.Builder(mContext); in testSetIconWithParamDrawable()
147 mBuilder.setIcon(mDrawable); in testSetIconWithParamDrawable()
148 mDialog = mBuilder.show(); in testSetIconWithParamDrawable()
160 mBuilder = new AlertDialog.Builder(mContext); in testSetIconAttribute()
[all …]
DAlertDialog_BuilderCursorTest.java47 private Builder mBuilder; field in AlertDialog_BuilderCursorTest
103 mBuilder = null; in setUp()
174 mBuilder = new Builder(mContext); in testSetCursor()
175 mBuilder.setCursor(mCursor, mOnClickListener, TEXT_COLUMN_NAME); in testSetCursor()
176 mDialog = mBuilder.show(); in testSetCursor()
195 mBuilder = new Builder(mContext); in testSetSingleChoiceItemsWithParamCursor()
196 mBuilder.setSingleChoiceItems(mCursor, 0, TEXT_COLUMN_NAME, mOnClickListener); in testSetSingleChoiceItemsWithParamCursor()
197 mDialog = mBuilder.show(); in testSetSingleChoiceItemsWithParamCursor()
219 mBuilder = new Builder(mContext); in testSetMultiChoiceItemsWithParamCursor()
220 mBuilder.setMultiChoiceItems(mCursor, CHECKED_COLUMN_NAME, TEXT_COLUMN_NAME, in testSetMultiChoiceItemsWithParamCursor()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DFillResponseTest.java47 private final FillResponse.Builder mBuilder = new FillResponse.Builder(); field in FillResponseTest
65 () -> mBuilder.setAuthentication(null, mIntentSender, mPresentation)); in testBuilder_setAuthentication_invalid()
68 () -> mBuilder.setAuthentication(new AutofillId[] {}, mIntentSender, in testBuilder_setAuthentication_invalid()
72 () -> mBuilder.setAuthentication(new AutofillId[] {null}, mIntentSender, in testBuilder_setAuthentication_invalid()
76 () -> mBuilder.setAuthentication(mIds, null, mPresentation)); in testBuilder_setAuthentication_invalid()
79 () -> mBuilder.setAuthentication(mIds, mIntentSender, null)); in testBuilder_setAuthentication_invalid()
127 assertThrows(IllegalArgumentException.class, () -> mBuilder.setFlags(-1)); in testBuilder_setFlag_invalid()
132 mBuilder.setFlags(0); in testBuilder_setFlag_valid()
133 mBuilder.setFlags(FLAG_TRACK_CONTEXT_COMMITED); in testBuilder_setFlag_valid()
134 mBuilder.setFlags(FLAG_DISABLE_ACTIVITY_ONLY); in testBuilder_setFlag_valid()
[all …]
DUserDataTest.java86 private UserData.Builder mBuilder; field in UserDataTest
90 mBuilder = new UserData.Builder(mId, mValue, mCategoryId); in setFixtures()
113 assertThrows(NullPointerException.class, () -> mBuilder.add(null, mCategoryId)); in testAdd_invalid()
114 assertThrows(IllegalArgumentException.class, () -> mBuilder.add("", mCategoryId)); in testAdd_invalid()
115 assertThrows(IllegalArgumentException.class, () -> mBuilder.add(mShortValue, mCategoryId)); in testAdd_invalid()
116 assertThrows(IllegalArgumentException.class, () -> mBuilder.add(mLongValue, mCategoryId)); in testAdd_invalid()
117 assertThrows(NullPointerException.class, () -> mBuilder.add(mValue, null)); in testAdd_invalid()
118 assertThrows(IllegalArgumentException.class, () -> mBuilder.add(mValue, "")); in testAdd_invalid()
132 mBuilder.add(mValue2, mCategoryId2); in testAdd_maximumCategoriesReached()
133 assertThrows(IllegalStateException.class, () -> mBuilder.add(mValue3, mCategoryId3)); in testAdd_maximumCategoriesReached()
[all …]
DCustomDescriptionUnitTest.java45 private final CustomDescription.Builder mBuilder = field in CustomDescriptionUnitTest
60 assertThrows(IllegalArgumentException.class, () -> mBuilder.addChild(42, null)); in testAddChild_null()
66 () -> mBuilder.addChild(42, mock(Transformation.class))); in testAddChild_invalidImplementation()
72 () -> mBuilder.batchUpdate(null, mValidUpdate)); in testBatchUpdate_nullCondition()
78 () -> mBuilder.batchUpdate(mock(Validator.class), mValidUpdate)); in testBatchUpdate_invalidImplementation()
84 () -> mBuilder.batchUpdate(mValidCondition, null)); in testBatchUpdate_nullUpdates()
89 assertThrows(IllegalArgumentException.class, () -> mBuilder.addOnClickAction(42, null)); in testSetOnClickAction_null()
95 () -> mBuilder.addOnClickAction(42, mock(OnClickAction.class))); in testSetOnClickAction_invalidImplementation()
100 final CustomDescription customDescription = mBuilder in testSetOnClickAction_thereCanBeOnlyOne()
122 mBuilder.build(); in testNoMoreInteractionsAfterBuild()
[all …]
DBatchUpdatesTest.java39 private final BatchUpdates.Builder mBuilder = new BatchUpdates.Builder(); field in BatchUpdatesTest
43 assertThrows(IllegalArgumentException.class, () -> mBuilder.transformChild(42, null)); in testAddTransformation_null()
49 () -> mBuilder.transformChild(42, mock(Transformation.class))); in testAddTransformation_invalidClass()
54 assertThrows(NullPointerException.class, () -> mBuilder.updateTemplate(null)); in testSetUpdateTemplate_null()
59 assertThrows(IllegalStateException.class, () -> mBuilder.build()); in testEmptyObject()
64 assertThat(mBuilder.updateTemplate(mock(RemoteViews.class)).build()).isNotNull(); in testNoMoreChangesAfterBuild()
66 () -> mBuilder.updateTemplate(mock(RemoteViews.class))); in testNoMoreChangesAfterBuild()
68 () -> mBuilder.transformChild(42, mock(InternalTransformation.class))); in testNoMoreChangesAfterBuild()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupMenuTest.java75 private Builder mBuilder; field in PopupMenuTest
139 mBuilder = new Builder().inflateWithInflater(true).withDismissListener(); in testPopulateViaInflater()
141 mActivityRule.runOnUiThread(mBuilder::show); in testPopulateViaInflater()
144 verify(mBuilder.mOnDismissListener, never()).onDismiss(mPopupMenu); in testPopulateViaInflater()
151 mBuilder = new Builder().inflateWithInflater(false).withDismissListener(); in testDirectPopulate()
153 mActivityRule.runOnUiThread(mBuilder::show); in testDirectPopulate()
156 verify(mBuilder.mOnDismissListener, never()).onDismiss(mPopupMenu); in testDirectPopulate()
163 mBuilder = new Builder(); in testAccessGravity()
164 mActivityRule.runOnUiThread(mBuilder::show); in testAccessGravity()
173 mBuilder = new Builder().withGravity(Gravity.TOP); in testConstructorWithGravity()
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/
DDataRemovalRequestTest.java45 private DataRemovalRequest.Builder mBuilder = new DataRemovalRequest.Builder(); field in DataRemovalRequestTest
49 assertThrows(NullPointerException.class, () -> mBuilder.addLocusId(null, NO_FLAGS)); in testBuilder_addLocusId_invalid()
50 assertThrows(NullPointerException.class, () -> mBuilder.addLocusId(null, 666)); in testBuilder_addLocusId_invalid()
55 assertThat(mBuilder.addLocusId(mLocusId, NO_FLAGS)).isNotNull(); in testBuilder_addLocusId_valid()
56 assertThat(mBuilder.addLocusId(new LocusId("content://com.example2"), FLAG_IS_PREFIX)) in testBuilder_addLocusId_valid()
62 assertThat(mBuilder.forEverything()).isNotNull(); in testBuilder_addLocusIdAfterForEverything()
63 assertThrows(IllegalStateException.class, () -> mBuilder.addLocusId(mLocusId, NO_FLAGS)); in testBuilder_addLocusIdAfterForEverything()
68 assertThat(mBuilder.addLocusId(mLocusId, NO_FLAGS)).isNotNull(); in testBuilder_forEverythingAfterAddingLocusId()
69 assertThrows(IllegalStateException.class, () -> mBuilder.forEverything()); in testBuilder_forEverythingAfterAddingLocusId()
74 assertThrows(IllegalStateException.class, () -> mBuilder.build()); in testBuild_invalid()
[all …]
DContentCaptureContextTest.java45 private final ContentCaptureContext.Builder mBuilder = new ContentCaptureContext.Builder( field in ContentCaptureContextTest
62 assertThrows(NullPointerException.class, () -> mBuilder.setExtras(null)); in testBuilder_invalidExtras()
67 assertThat(mBuilder.build()).isNotNull(); in testAfterBuild_setExtras()
68 assertThrows(IllegalStateException.class, () -> mBuilder.setExtras(mExtras)); in testAfterBuild_setExtras()
73 assertThat(mBuilder.setExtras(mExtras).build()).isNotNull(); in testAfterBuild_build()
74 assertThrows(IllegalStateException.class, () -> mBuilder.build()); in testAfterBuild_build()
79 assertThat(mBuilder.build()).isNotNull(); in testBuild_empty()
84 final ContentCaptureContext context = mBuilder.build(); in testGetId()
91 final Builder builder = mBuilder.setExtras(mExtras); in testSetGetBundle()
92 assertThat(builder).isSameAs(mBuilder); in testSetGetBundle()
[all …]
/cts/tests/tests/nativemedia/aaudio/jni/
Dutils.cpp95 mBuilder{nullptr}, mStream{nullptr} {}
105 aaudio_result_t result = AAudio_createStreamBuilder(&mBuilder); in initBuilder()
107 ASSERT_TRUE(mBuilder != nullptr); in initBuilder()
110 AAudioStreamBuilder_setDeviceId(mBuilder, AAUDIO_UNSPECIFIED); in initBuilder()
111 AAudioStreamBuilder_setDirection(mBuilder, mDirection); in initBuilder()
112 AAudioStreamBuilder_setSampleRate(mBuilder, mRequested.sampleRate); in initBuilder()
113 AAudioStreamBuilder_setChannelCount(mBuilder, mRequested.channelCount); in initBuilder()
114 AAudioStreamBuilder_setFormat(mBuilder, mRequested.dataFormat); in initBuilder()
115 AAudioStreamBuilder_setSharingMode(mBuilder, mRequested.sharingMode); in initBuilder()
116 AAudioStreamBuilder_setPerformanceMode(mBuilder, mRequested.perfMode); in initBuilder()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_GroupMembershipTest.java32 private ContactsContract_TestDataBuilder mBuilder; field in ContactsContract_GroupMembershipTest
41 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
47 mBuilder.cleanup(); in tearDown()
51 TestRawContact rawContact = mBuilder.newRawContact().insert(); in testAddGroupMembershipWithGroupRowId()
52 TestGroup group = mBuilder.newGroup().insert(); in testAddGroupMembershipWithGroupRowId()
63 TestRawContact rawContact = mBuilder.newRawContact() in testAddGroupMembershipWithGroupSourceId()
67 TestGroup group = mBuilder.newGroup() in testAddGroupMembershipWithGroupSourceId()
83 TestRawContact rawContact = mBuilder.newRawContact() in testAddGroupMembershipWithUnknownGroupSourceId()
90 TestGroup group = mBuilder.newGroup() in testAddGroupMembershipWithUnknownGroupSourceId()
DContactsContract_StructuredPhoneticName.java40 private ContactsContract_TestDataBuilder mBuilder; field in ContactsContract_StructuredPhoneticName
48 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
53 mBuilder.cleanup(); in tearDown()
59 TestRawContact rawContact1 = mBuilder.newRawContact() in testPhoneticStructuredName()
83 TestRawContact rawContact1 = mBuilder.newRawContact() in testPhoneticStructuredName_phoneticPriority1()
93 TestRawContact rawContact2 = mBuilder.newRawContact() in testPhoneticStructuredName_phoneticPriority1()
120 TestRawContact rawContact2 = mBuilder.newRawContact() in testPhoneticStructuredName_phoneticPriority2()
130 TestRawContact rawContact1 = mBuilder.newRawContact() in testPhoneticStructuredName_phoneticPriority2()
DContactsContract_ContactCountsTest.java40 private ContactsContract_TestDataBuilder mBuilder; field in ContactsContract_ContactCountsTest
50 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
56 mBuilder.cleanup(); in tearDown()
117 TestRawContact rawContact = mBuilder.newRawContact() in setupTestData()
127 TestRawContact rawContact2 = mBuilder.newRawContact() in setupTestData()
137 TestRawContact rawContact3 = mBuilder.newRawContact() in setupTestData()
147 TestRawContact rawContact4 = mBuilder.newRawContact() in setupTestData()
157 TestRawContact rawContact5 = mBuilder.newRawContact() in setupTestData()
167 TestRawContact rawContact6 = mBuilder.newRawContact() in setupTestData()
DContactsContract_RawContactsTest.java35 private ContactsContract_TestDataBuilder mBuilder; field in ContactsContract_RawContactsTest
76 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
82 mBuilder.cleanup(); in tearDown()
86 TestRawContact rawContact = mBuilder.newRawContact() in testGetLookupUriBySourceId()
101 TestContact lookupContact = mBuilder.newContact().setUri(lookupUri).load(); in testGetLookupUriBySourceId()
107 TestRawContact rawContact = mBuilder.newRawContact() in testGetLookupUriByDisplayName()
118 TestContact lookupContact = mBuilder.newContact().setUri(lookupUri).load(); in testGetLookupUriByDisplayName()
221 TestRawContact rawContact = mBuilder.newRawContact() in testProjection()
241 TestRawContact rawContact = mBuilder.newRawContact() in testInsertUsageStat()
254 TestRawContact rawContact = mBuilder.newRawContact() in testInsertUsageStat()
[all …]
DContactsContract_IsSuperPrimaryName.java43 private ContactsContract_TestDataBuilder mBuilder; field in ContactsContract_IsSuperPrimaryName
51 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
56 mBuilder.cleanup(); in tearDown()
72 TestRawContact rawContact1 = mBuilder.newRawContact() in testInner_displayNameFromIsSuperPrimary()
83 TestRawContact rawContact2 = mBuilder.newRawContact() in testInner_displayNameFromIsSuperPrimary()
133 TestRawContact rawContact1 = mBuilder.newRawContact() in testIsSuperPrimaryName_mergeBothSuperPrimary()
144 TestRawContact rawContact2 = mBuilder.newRawContact() in testIsSuperPrimaryName_mergeBothSuperPrimary()
DContactsContract_ProviderStatus.java39 private ContactsContract_TestDataBuilder mBuilder; field in ContactsContract_ProviderStatus
47 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
53 mBuilder.cleanup(); in tearDown()
58 TestRawContact rawContact1 = mBuilder.newRawContact() in testProviderStatus_addedContacts()
/cts/tests/tests/view/src/android/view/cts/
DMotionEvent_PointerPropertiesTest.java36 private MotionEventUtils.PointerPropertiesBuilder mBuilder; field in MotionEvent_PointerPropertiesTest
41 mBuilder = withProperties(3, MotionEvent.TOOL_TYPE_MOUSE); in setup()
42 mPointerProperties = mBuilder.build(); in setup()
47 mBuilder.verifyMatchesPointerProperties(mPointerProperties); in testCreation()
54 mBuilder.verifyMatchesPointerProperties(pointerProperties); in testCopyFrom()
DView_DragShadowBuilderTest.java42 private DragShadowBuilder mBuilder; field in View_DragShadowBuilderTest
52 mBuilder = new DragShadowBuilder(mView); in setup()
64 assertSame(mView, mBuilder.getView()); in testGetView()
73 mBuilder.onProvideShadowMetrics(outShadowSize, outShadowTouchPoint); in testOnProvideShadowMetrics()
85 mBuilder.onDrawShadow(canvas); in testOnDrawShadow()
DMotionEvent_PointerCoordsTest.java37 private PointerCoordsBuilder mBuilder; field in MotionEvent_PointerCoordsTest
42 mBuilder = withCoords(10.0f, 20.0f).withPressure(1.2f).withSize(2.0f).withTool(1.2f, 1.4f). in setup()
44 mPointerCoords = mBuilder.build(); in setup()
49 mBuilder.verifyMatchesPointerCoords(mPointerCoords); in testCreation()
99 mBuilder.verifyMatchesPointerCoords(pointerCoords); in testCopyFrom()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DConnectivityConstraintTest.java67 private JobInfo.Builder mBuilder; field in ConnectivityConstraintTest
82 mBuilder = in setUp()
126 mBuilder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) in testUnmeteredConstraintExecutes_withWifi()
147 mBuilder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in testConnectivityConstraintExecutes_withWifi()
170 mBuilder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in testConnectivityConstraintExecutes_withWifi_DataSaverOn()
191 mBuilder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in testConnectivityConstraintExecutes_withMobile()
218 mBuilder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in testConnectivityConstraintExecutes_transitionNetworks()
245 mBuilder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_METERED) in testConnectivityConstraintExecutes_metered()
300 mBuilder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_CELLULAR) in testCellularConstraintExecutedAndStopped()
332 mBuilder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) in testUnmeteredConstraintFails_withMobile()
[all …]
DStorageConstraintTest.java36 private JobInfo.Builder mBuilder; field in StorageConstraintTest
42 mBuilder = new JobInfo.Builder(STORAGE_JOB_ID, kJobServiceComponent); in setUp()
79 mJobScheduler.schedule(mBuilder.setRequiresStorageNotLow(true).build()); in testNotLowConstraintExecutes()
99 mJobScheduler.schedule(mBuilder.setRequiresStorageNotLow(true).build()); in testNotLowConstraintFails()
127 mJobScheduler.schedule(mBuilder.setRequiresStorageNotLow(true).build()); in testJobStoppedWhenStorageLow()
DBatteryConstraintTest.java54 private JobInfo.Builder mBuilder; field in BatteryConstraintTest
72 mBuilder = new JobInfo.Builder(BATTERY_JOB_ID, kJobServiceComponent); in setUp()
188 mJobScheduler.schedule(mBuilder.setRequiresCharging(true).build()); in testChargingConstraintExecutes()
208 mJobScheduler.schedule(mBuilder.setRequiresBatteryNotLow(true).build()); in testBatteryNotLowConstraintExecutes_withPower()
233 mJobScheduler.schedule(mBuilder.setRequiresBatteryNotLow(true).build()); in testBatteryNotLowConstraintExecutes_withoutPower()
260 mJobScheduler.schedule(mBuilder.setRequiresCharging(true).build()); in testChargingConstraintFails()
314 mJobScheduler.schedule(mBuilder.setRequiresBatteryNotLow(true).build()); in testBatteryNotLowConstraintFails_withoutPower()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DClipDataJobTest.java38 JobInfo.Builder mBuilder; field in ClipDataJobTest
45 mBuilder = new JobInfo.Builder(CLIP_DATA_JOB_ID, kJobServiceComponent); in setUp()
75 mJobScheduler.schedule(mBuilder.setRequiresStorageNotLow(true) in testClipDataGrant()
107 mJobScheduler.schedule(mBuilder.setRequiresStorageNotLow(true) in testClipDataGrant_Failed()
133 mJobScheduler.schedule(mBuilder.setMinimumLatency(60*60*1000) in testClipDataGrantReschedule()
147 mJobScheduler.schedule(mBuilder.setMinimumLatency(0) in testClipDataGrantReschedule()
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/
DContactsContract_Subquery.java31 private ContactsContract_TestDataBuilder mBuilder; field in ContactsContract_Subquery
39 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
45 mBuilder.cleanup(); in tearDown()
49 TestRawContact rawContact1 = mBuilder.newRawContact() in testProviderStatus_addedContacts()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Dialogs/
DBaseResultsDialog.java44 protected AlertDialog.Builder mBuilder; field in BaseResultsDialog
65 mBuilder.setView(mRootView); in onCreateDialog()
67 mBuilder.setTitle(title) in onCreateDialog()
71 return mBuilder.create(); in onCreateDialog()

12