Home
last modified time | relevance | path

Searched refs:NAME (Results 1 – 25 of 214) sorted by relevance

123456789

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/
DDeviceConfigFlagsHelperTest.java31 private static final String NAME = "Flag, James Flag"; field in DeviceConfigFlagsHelperTest
35 mockGetAdServicesFlag(NAME, true); in testGetBooleanDeviceConfigFlag()
37 expect.that(DeviceConfigFlagsHelper.getDeviceConfigFlag(NAME, /* defaultValue= */ false)) in testGetBooleanDeviceConfigFlag()
43 mockGetAdServicesFlag(NAME, "of the rose"); in testGetStringDeviceConfigFlag()
45 expect.that(DeviceConfigFlagsHelper.getDeviceConfigFlag(NAME, /* defaultValue= */ "D'OH")) in testGetStringDeviceConfigFlag()
51 mockGetAdServicesFlag(NAME, 42); in testGetIntDeviceConfigFlag()
53 expect.that(DeviceConfigFlagsHelper.getDeviceConfigFlag(NAME, /* defaultValue= */ 108)) in testGetIntDeviceConfigFlag()
59 mockGetAdServicesFlag(NAME, 42L); in testGetLongDeviceConfigFlag()
61 expect.that(DeviceConfigFlagsHelper.getDeviceConfigFlag(NAME, /* defaultValue= */ 108L)) in testGetLongDeviceConfigFlag()
67 mockGetAdServicesFlag(NAME, 42f); in testGetFloatDeviceConfigFlag()
[all …]
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DCustomAudienceOverrideRequestTest.java33 private static final String NAME = "name"; field in CustomAudienceOverrideRequestTest
46 BUYER, NAME, BIDDING_LOGIC_JS, TRUSTED_BIDDING_DATA); in testCreateAddCustomAudienceOverrideRequest_withoutBiddingLogicVersion_Success()
49 assertEquals(request.getName(), NAME); in testCreateAddCustomAudienceOverrideRequest_withoutBiddingLogicVersion_Success() local
60 .setName(NAME) in testBuildAddCustomAudienceOverrideRequest_biddingLogicVersionNotSet_Success()
66 assertEquals(request.getName(), NAME); in testBuildAddCustomAudienceOverrideRequest_biddingLogicVersionNotSet_Success() local
77 .setName(NAME) in testBuildAddCustomAudienceOverrideRequest_Success()
84 assertEquals(request.getName(), NAME); in testBuildAddCustomAudienceOverrideRequest_Success() local
93 new RemoveCustomAudienceOverrideRequest(BUYER, NAME); in testCreateRemoveCustomAudienceOverrideRequestSuccess()
96 assertEquals(request.getName(), NAME); in testCreateRemoveCustomAudienceOverrideRequestSuccess() local
104 .setName(NAME) in testBuildRemoveCustomAudienceOverrideRequestSuccess()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/devapi/
DCustomAudienceDevOverridesHelperTest.java44 private static final String NAME = "name"; field in CustomAudienceDevOverridesHelperTest
70 .setName(NAME) in testGetOverridesFindsMatchingOverride()
86 assertThat(helper.getBiddingLogicOverride(APP_PACKAGE_NAME, BUYER, NAME)) in testGetOverridesFindsMatchingOverride()
93 assertThat(helper.getTrustedBiddingSignalsOverride(APP_PACKAGE_NAME, BUYER, NAME)) in testGetOverridesFindsMatchingOverride()
103 .setName(NAME) in testGetOverridesFindsMatchingOverride_nullJsVersion()
118 assertThat(helper.getBiddingLogicOverride(APP_PACKAGE_NAME, BUYER, NAME)) in testGetOverridesFindsMatchingOverride_nullJsVersion()
120 assertThat(helper.getTrustedBiddingSignalsOverride(APP_PACKAGE_NAME, BUYER, NAME)) in testGetOverridesFindsMatchingOverride_nullJsVersion()
130 .setName(NAME) in testGetOverridesReturnsNullIfDevOptionsAreDisabled()
141 assertThat(helper.getBiddingLogicOverride(APP_PACKAGE_NAME, BUYER, NAME)).isNull(); in testGetOverridesReturnsNullIfDevOptionsAreDisabled()
142 assertThat(helper.getTrustedBiddingSignalsOverride(APP_PACKAGE_NAME, BUYER, NAME)).isNull(); in testGetOverridesReturnsNullIfDevOptionsAreDisabled()
[all …]
/packages/modules/ImsMedia/tests/unit/src/com/android/telephony/imsmedia/
DRtcpConfigTest.java31 private static final String NAME = "name"; field in RtcpConfigTest
39 .setCanonicalName(NAME) in testConstructorAndGetters()
45 assertThat(rtcp.getCanonicalName()).isEqualTo(NAME); in testConstructorAndGetters()
54 .setCanonicalName(NAME) in testParcel()
71 .setCanonicalName(NAME) in testEqual()
78 .setCanonicalName(NAME) in testEqual()
90 .setCanonicalName(NAME) in testNotEqual()
97 .setCanonicalName(NAME) in testNotEqual()
115 .setCanonicalName(NAME) in testNotEqual()
124 .setCanonicalName(NAME) in testNotEqual()
/packages/modules/Bluetooth/system/gd/storage/
Ddevice.h48 #define GENERATE_PROPERTY_GETTER_SETTER_REMOVER(NAME, RETURN_TYPE, PROPERTY_KEY) … argument
50 …std::optional<RETURN_TYPE> Get##NAME() const { …
53 …MutationEntry Set##NAME(const RETURN_TYPE& value) { …
56 …MutationEntry Remove##NAME() { …
68 #define GENERATE_PROPERTY_GETTER_SETTER_REMOVER_WITH_CUSTOM_SETTER(NAME, RETURN_TYPE, PROPERTY_KEY,… argument
70 …std::optional<RETURN_TYPE> Get##NAME() const { …
73 …MutationEntry Set##NAME(const RETURN_TYPE& value) { …
77 …MutationEntry Remove##NAME() { …
89 #define GENERATE_TEMP_PROPERTY_GETTER_SETTER_REMOVER(NAME, RETURN_TYPE, PROPERTY_KEY) … argument
91 …std::optional<RETURN_TYPE> GetTemp##NAME() const { …
[all …]
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/
DSetAdCounterHistogramOverrideInputTest.java44 private static final String NAME = "test_ca_name"; field in SetAdCounterHistogramOverrideInputTest
55 .setCustomAudienceName(NAME) in testBuildValidInput_success()
65 expect.that(originalInput.getCustomAudienceName()).isEqualTo(NAME); in testBuildValidInput_success()
77 .setCustomAudienceName(NAME) in testParcelValidInput_success()
93 expect.that(inputFromParcel.getCustomAudienceName()).isEqualTo(NAME); in testParcelValidInput_success()
114 .setCustomAudienceName(NAME) in testToString()
127 NAME); in testToString()
174 .setCustomAudienceName(NAME) in testBuildUnsetAdEventType()
186 .setCustomAudienceName(NAME) in testBuildUnsetAdCounterKey_success()
196 expect.that(originalInput.getCustomAudienceName()).isEqualTo(NAME); in testBuildUnsetAdCounterKey_success()
[all …]
DSetAdCounterHistogramOverrideRequestTest.java43 private static final String NAME = "test_ca_name"; field in SetAdCounterHistogramOverrideRequestTest
54 .setCustomAudienceName(NAME) in testBuildValidRequest_success()
64 expect.that(originalRequest.getCustomAudienceName()).isEqualTo(NAME); in testBuildValidRequest_success()
76 .setCustomAudienceName(NAME) in testToString()
89 NAME); in testToString()
138 .setCustomAudienceName(NAME) in testBuildUnsetAdEventType()
150 .setCustomAudienceName(NAME) in testBuildUnsetAdCounterKey_success()
160 expect.that(originalRequest.getCustomAudienceName()).isEqualTo(NAME); in testBuildUnsetAdCounterKey_success()
171 .setCustomAudienceName(NAME) in testBuildUnsetHistogramTimestamps_success()
187 .setCustomAudienceName(NAME) in testBuildUnsetBuyer_throws()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/
DCustomAudienceOverrideTest.java32 private static final String NAME = "name"; field in CustomAudienceOverrideTest
47 .setName(NAME) in testBuildDBAdSelectionOverride()
56 assertEquals(dbCustomAudienceOverride.getName(), NAME); in testBuildDBAdSelectionOverride() local
70 .setName(NAME) in testThrowsExceptionWithNoOwner()
86 .setName(NAME) in testThrowsExceptionWithNoBuyer()
119 .setName(NAME) in testThrowsExceptionWithNoAppPackageName()
135 .setName(NAME) in testThrowsExceptionWithNoBiddingLogicJS()
151 .setName(NAME) in testThrowsExceptionWithNoTrustedBiddingData()
165 .setName(NAME) in testNoBiddingLogicJsVersion()
173 assertEquals(dbCustomAudienceOverride.getName(), NAME); in testNoBiddingLogicJsVersion() local
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/customaudience/
DCustomAudienceRefreshCommandTest.java65 private static final String NAME = CUSTOM_AUDIENCE.getName(); field in CustomAudienceRefreshCommandTest
83 when(mCustomAudienceDao.getDebuggableCustomAudienceByPrimaryKey(OWNER, BUYER, NAME)) in testRun_withValidCustomAudience_returnsSuccess()
86 OWNER, BUYER, NAME)) in testRun_withValidCustomAudience_returnsSuccess()
106 when(mCustomAudienceDao.getDebuggableCustomAudienceByPrimaryKey(OWNER, BUYER, NAME)) in testRun_withInvalidCustomAudienceBackgroundFetchData_returnsGenericFailure()
109 OWNER, BUYER, NAME)) in testRun_withInvalidCustomAudienceBackgroundFetchData_returnsGenericFailure()
133 when(mCustomAudienceDao.getDebuggableCustomAudienceByPrimaryKey(OWNER, BUYER, NAME)) in testRun_withFailedBackgroundFetch_returnsTimeoutFailure()
136 OWNER, BUYER, NAME)) in testRun_withFailedBackgroundFetch_returnsTimeoutFailure()
163 when(mCustomAudienceDao.getDebuggableCustomAudienceByPrimaryKey(OWNER, BUYER, NAME)) in testRun_withFailedBackgroundFetch_returnsUnknownFailure()
166 OWNER, BUYER, NAME)) in testRun_withFailedBackgroundFetch_returnsUnknownFailure()
192 when(mCustomAudienceDao.getDebuggableCustomAudienceByPrimaryKey(OWNER, BUYER, NAME)) in testRun_withTimedOutBackgroundFetch_returnsTimeoutFailure()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DUrlQuerySanitizerTest.java63 private static final String NAME = "name"; field in UrlQuerySanitizerTest
102 assertTrue(uqs.hasParameter(NAME)); in testUrlQuerySanitizer()
107 assertEquals(EXPECTED_UNDERLINE_NAME, uqs.getValue(NAME)); in testUrlQuerySanitizer()
115 assertTrue(urlSet.contains(NAME)); in testUrlQuerySanitizer()
123 assertEquals(NAME, pvp.mParameter); in testUrlQuerySanitizer()
145 uqs.registerParameter(NAME, null); in testUrlQuerySanitizer()
146 assertNull(uqs.getValueSanitizer(NAME)); in testUrlQuerySanitizer()
147 assertNotNull(uqs.getEffectiveValueSanitizer(NAME)); in testUrlQuerySanitizer()
151 uqs.registerParameter(NAME, null); in testUrlQuerySanitizer()
152 assertNull(uqs.getEffectiveValueSanitizer(NAME)); in testUrlQuerySanitizer()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForNickname.java39 applySimpleFieldMaxSize(cv, Nickname.NAME); in applySimpleFieldMaxSize()
46 String nickname = values.getAsString(Nickname.NAME); in insert()
69 if (values.containsKey(Nickname.NAME)) { in update()
70 String nickname = values.getAsString(Nickname.NAME); in update()
95 return values.containsKey(Nickname.NAME); in containsSearchableColumns()
100 builder.appendNameFromColumn(Nickname.NAME); in appendSearchableData()
101 builder.appendContentFromColumn(Nickname.NAME); in appendSearchableData()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DLocalRenameDialogFragmentTest.java50 private static final String NAME = "name"; field in LocalRenameDialogFragmentTest
69 BluetoothAdapter.getDefaultAdapter().setName(NAME); in getDeviceName_adapterEnabled_returnsLocalAdapterName()
71 assertThat(mFragment.getDeviceName()).isEqualTo(NAME); in getDeviceName_adapterEnabled_returnsLocalAdapterName()
76 BluetoothAdapter.getDefaultAdapter().setName(NAME); in getDeviceName_adapterDisabled_returnsNull()
84 BluetoothAdapter.getDefaultAdapter().setName(NAME); in localNameChangedBroadcast_updatesDeviceName()
87 assertThat(editText.getText().toString()).isEqualTo(NAME); in localNameChangedBroadcast_updatesDeviceName()
100 BluetoothAdapter.getDefaultAdapter().setName(NAME); in setDeviceName_updatesLocalAdapterName()
DBluetoothNamePreferenceControllerTest.java58 private static final String NAME = "name"; field in BluetoothNamePreferenceControllerTest
90 BluetoothAdapter.getDefaultAdapter().setName(NAME); in refreshUi_setsNameAsSummary()
94 assertThat(mPreference.getSummary()).isEqualTo(NAME); in refreshUi_setsNameAsSummary()
116 BluetoothAdapter.getDefaultAdapter().setName(NAME); in started_localNameChangedBroadcast_updatesSummary()
118 assertThat(mPreference.getSummary()).isEqualTo(NAME); in started_localNameChangedBroadcast_updatesSummary()
129 BluetoothAdapter.getDefaultAdapter().setName(NAME); in stopped_noUpdateOnLocalNameChangedBroadcast()
131 assertThat(mPreference.getSummary()).isEqualTo(NAME); in stopped_noUpdateOnLocalNameChangedBroadcast()
138 assertThat(mPreference.getSummary()).isEqualTo(NAME); in stopped_noUpdateOnLocalNameChangedBroadcast()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTest.java446 contentValues.put(Carriers.NAME, insertName); in testBulkInsertCarriers()
456 contentValues2.put(Carriers.NAME, insertName2); in testBulkInsertCarriers()
471 Carriers.NAME, in testBulkInsertCarriers()
581 contentValues.put(Carriers.NAME, insertName); in testUpdateConflictingCarriers()
588 contentValues2.put(Carriers.NAME, insertName2); in testUpdateConflictingCarriers()
595 contentValues.put(Carriers.NAME, insertName2); in testUpdateConflictingCarriers()
602 Carriers.NAME, in testUpdateConflictingCarriers()
638 contentValues.put(Carriers.NAME, insertName); in doSimpleTestForUri()
648 Carriers.NAME, in doSimpleTestForUri()
691 contentValues.put(Carriers.NAME, insertName); in testOwnedBy()
[all …]
/packages/modules/Connectivity/nearby/tests/unit/src/android/nearby/
DFastPairDeviceTest.java30 private static final String NAME = "name"; field in FastPairDeviceTest
42 sDevice = new FastPairDevice(NAME, sMediums, RSSI, TX_POWER, MODEL_ID, MAC_ADDRESS, DATA); in setup()
51 assertThat(compareDevice.getName()).isEqualTo(NAME); in testParcelable()
84 FastPairDevice compareDevice = builder.setName(NAME) in testBuilder()
92 assertThat(compareDevice.getName()).isEqualTo(NAME); in testBuilder()
/packages/services/Telephony/tests/src/com/android/phone/
DSimPhonebookProviderTest.java395 SimRecords.NAME, in query_simRecords_singleSim_returnsDataForCorrectEf()
436 SimRecords.NAME, in query_adnRecords_returnsAdnData()
476 SimRecords.NAME, in query_fdnRecords_returnsFdnData()
513 SimRecords.NAME, in query_sdnRecords_returnsSdnData()
549 values.put(SimRecords.NAME, "Name"); in insert_nonExistentSim_throwsCorrectException()
561 values.put(SimRecords.NAME, "Name"); in update_nonExistentSim_throwsCorrectException()
607 SimRecords.RECORD_NUMBER, SimRecords.NAME, SimRecords.PHONE_NUMBER in query_itemUri_returnsCorrectRow()
718 values.put(SimRecords.NAME, "First Last"); in insert_adnRecord_addsAdnRecordAndReturnsUriForNewRecord()
744 values.put(SimRecords.NAME, "New1"); in insert_adnRecordWithExistingRecords_returnsUriWithCorrectIndex()
748 values.put(SimRecords.NAME, "New2"); in insert_adnRecordWithExistingRecords_returnsUriWithCorrectIndex()
[all …]
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNoCaptureVideoPermissionTest.java33 private static final String NAME = "VirtualDisplayTest"; field in NoCaptureVideoPermissionTest
51 displayManager.createVirtualDisplay(NAME, WIDTH, HEIGHT, DENSITY, in testCreatePublicVirtualDisplay()
74 displayManager.createVirtualDisplay(NAME, WIDTH, HEIGHT, DENSITY, in testCreateSecureVirtualDisplay()
96 NAME, WIDTH, HEIGHT, DENSITY, in testCreatePrivateVirtualDisplay()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicensePreferenceTest.java37 public static final String NAME = "Test Package"; field in ModuleLicensePreferenceTest
47 mModuleInfo.setName(NAME); in setup()
55 assertThat(pref.getTitle()).isEqualTo(NAME); in ctor_properKeyAndTitle()
69 assertThat(intent.getCharSequenceExtra(Intent.EXTRA_TITLE)).isEqualTo(NAME); in onClick_sendsCorrectIntent()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/
DCustomAudienceCtsDebuggableTest.java46 private static final String NAME = "name"; field in CustomAudienceCtsDebuggableTest
86 .setName(NAME) in testAddOverrideSucceeds()
104 .setName(NAME) in testRemoveNotExistingOverrideSucceeds()
120 .setName(NAME) in testRemoveExistingOverrideSucceeds()
133 .setName(NAME) in testRemoveExistingOverrideSucceeds()
/packages/modules/Bluetooth/system/osi/test/
Dtest_stubs.h51 #define OVERLOAD_SELECT(NAME, NUM) OVERLOAD_CAT(NAME##_, NUM) argument
54 #define OVERLOAD_OF(NAME, ...) \ argument
55 OVERLOAD_SELECT(NAME, OVERLOAD_VA_SIZE(__VA_ARGS__))(__VA_ARGS__)
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/customaudience/
DRemoveCustomAudienceOverrideRequestTest.java29 private static final String NAME = "name"; field in RemoveCustomAudienceOverrideRequestTest
36 .setName(NAME) in testBuildAddCustomAudienceOverrideRequest()
40 expect.that(request.getName()).isEqualTo(NAME); in testBuildAddCustomAudienceOverrideRequest()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/apn/
DApnStatusTest.kt63 val enabled = apnData.isFieldEnabled(Telephony.Carriers.NAME) in isFieldEnabled_default()
72 val enabled = apnData.isFieldEnabled(Telephony.Carriers.NAME) in isFieldEnabled_readOnlyApn()
81 readOnlyApnFields = listOf(Telephony.Carriers.NAME, Telephony.Carriers.PROXY), in isFieldEnabled_readOnlyApnFields()
85 assertThat(apnData.isFieldEnabled(Telephony.Carriers.NAME)).isFalse() in isFieldEnabled_readOnlyApnFields()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DBitmapPoolTest.java38 private static final String NAME = "BitmapPoolTest"; field in BitmapPoolTest
65 final BitmapPool pool = new BitmapPool(POOL_SIZE, NAME); in testCreateAndPutBackInPoolTest()
76 final BitmapPool pool = new BitmapPool(POOL_SIZE, NAME); in testCreateBeyondFullAndCheckReuseTest()
94 final BitmapPool pool = new BitmapPool(POOL_SIZE, NAME); in testDecodeFromResourceBitmap()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/
DContactPreferenceTest.java43 private static final String NAME = "Jake"; field in ContactPreferenceTest
56 mPhoneUri = ContactTestUtils.createContact(contentResolver, NAME, PHONE_NUMBER); in setUp()
59 when(mContact.getName()).thenReturn(NAME); in setUp()
71 assertThat(mPreference.getContact().getName()).isEqualTo(NAME); in testContactPreference()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DLegacyContactsProviderTest.java114 values.put(People.NAME, "John Doe"); in testPeopleDelete()
118 Cursor c = mResolver.query(personId, null, People.NAME + "='John Doe'" , null, null); in testPeopleDelete()
131 values.put(People.NAME, "Deer Doe"); in testPeopleFilter()
135 values.put(People.NAME, "Dear Dough"); in testPeopleFilter()
139 values.put(People.NAME, "D.R. Dauwe"); in testPeopleFilter()
150 values.put(People.NAME, "John Doe"); in testDefaultDisplayName()
620 values.put(Extensions.NAME, "Foo"); in testExtensionsInsert()
640 values.put(Extensions.NAME, "Foo"); in testExtensionsUpdate()
646 values.put(Extensions.NAME, "Biz"); in testExtensionsUpdate()
655 values.put(Groups.NAME, "Galois"); in testGroupsInsert()
[all …]

123456789