Home
last modified time | relevance | path

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

1234567

/frameworks/base/services/tests/servicestests/src/com/android/server/flags/
DFlagCacheTest.java28 private static final String NAME = "name"; field in FlagCacheTest
34 assertThat(mFlagCache.getOrNull(NS, NAME)).isNull(); in testGetOrNull_unset()
39 assertThat(mFlagCache.getOrSet(NS, NAME, "value")).isEqualTo("value"); in testGetOrSet_unset()
44 mFlagCache.setIfChanged(NS, NAME, "value"); in testGetOrSet_alreadySet()
45 assertThat(mFlagCache.getOrSet(NS, NAME, "newvalue")).isEqualTo("value"); in testGetOrSet_alreadySet()
50 assertThat(mFlagCache.setIfChanged(NS, NAME, "value")).isTrue(); in testSetIfChanged_unset()
55 mFlagCache.setIfChanged(NS, NAME, "value"); in testSetIfChanged_noChange()
56 assertThat(mFlagCache.setIfChanged(NS, NAME, "value")).isFalse(); in testSetIfChanged_noChange()
61 mFlagCache.setIfChanged(NS, NAME, "value"); in testSetIfChanged_changing()
62 assertThat(mFlagCache.setIfChanged(NS, NAME, "newvalue")).isTrue(); in testSetIfChanged_changing()
[all …]
DFlagOverrideStoreTest.java39 private static final String NAME = "name"; field in FlagOverrideStoreTest
40 private static final String PROP_NAME = FlagOverrideStore.getPropName(NS, NAME);
60 mFlagStore.set(NS, NAME, "value"); in testSet_unset()
66 mFlagStore.set(NS, NAME, "value"); in testSet_setTwice()
67 mFlagStore.set(NS, NAME, "newvalue"); in testSet_setTwice()
74 assertThat(mFlagStore.get(NS, NAME)).isNull(); in testGet_unset()
80 assertThat(mFlagStore.get(NS, NAME)).isEqualTo("value"); in testGet_set()
85 mFlagStore.erase(NS, NAME); in testErase()
91 assertThat(mFlagStore.contains(NS, NAME)).isFalse(); in testContains_unset()
97 assertThat(mFlagStore.contains(NS, NAME)).isTrue(); in testContains_set()
[all …]
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayConfigTest.java45 private static final String NAME = "VirtualDisplayConfigTest"; field in VirtualDisplayConfigTest
60 final VirtualDisplayConfig originalConfig = buildGenericVirtualDisplay(NAME); in testParcelAndUnparcel_matches()
63 assertThat(originalConfig.getName()).isEqualTo(NAME); in testParcelAndUnparcel_matches()
73 assertThat(recreatedConfig.getName()).isEqualTo(NAME); in testParcelAndUnparcel_matches()
78 assertThat(buildGenericVirtualDisplay(NAME)).isEqualTo(buildGenericVirtualDisplay(NAME)); in testEquals_matches()
83 assertThat(buildGenericVirtualDisplay(NAME + "2")).isNotEqualTo( in testEquals_different()
84 buildGenericVirtualDisplay(NAME)); in testEquals_different()
DVirtualDisplayTest.java63 private static final String NAME = TAG; field in VirtualDisplayTest
121 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivateVirtualDisplay()
142 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivatePresentationVirtualDisplay()
167 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPublicPresentationVirtualDisplay()
213 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testSecurePublicPresentationVirtualDisplay()
246 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testTrustedVirtualDisplay()
266 assertEquals("display name must match supplied name", NAME, display.getName()); in assertDisplayRegistered()
274 findDisplay(mDisplayManager.getDisplays(), NAME)); in assertDisplayRegistered()
279 DisplayManager.DISPLAY_CATEGORY_PRESENTATION), NAME)); in assertDisplayRegistered()
283 DisplayManager.DISPLAY_CATEGORY_PRESENTATION), NAME)); in assertDisplayRegistered()
[all …]
/frameworks/base/packages/SettingsLib/DataStore/tests/src/com/android/settingslib/datastore/
DSharedPreferencesStorageTest.kt58 application.getSharedPreferences(NAME, MODE).edit().clear().applySync() in <lambda>()
63 val storage1 = SharedPreferencesStorage(application, NAME, MODE) in <lambda>()
67 NAME, in <lambda>()
68 application.getSharedPreferences(NAME, MODE), in <lambda>()
77 val storage = SharedPreferencesStorage(application, NAME, MODE) in <lambda>()
97 spy(SharedPreferencesStorage(application, NAME, MODE)) { in <lambda>()
106 val storage = SharedPreferencesStorage(application, NAME, MODE, codec) in <lambda>()
129 SharedPreferencesStorage(application, NAME, MODE) { key, value -> in <lambda>()
139 val storage = SharedPreferencesStorage(application, NAME, MODE, verbose = true) in <lambda>()
152 val storage = SharedPreferencesStorage(application, NAME, MODE) in <lambda>()
[all …]
/frameworks/native/include/binder/
DIInterface.h113 #define IMPLEMENT_META_INTERFACE(INTERFACE, NAME) \ argument
114 static_assert(internal::allowedManualInterface(NAME), \
121 DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_INTERFACE(INTERFACE, NAME)
125 #define IMPLEMENT_META_INTERFACE(INTERFACE, NAME) \ argument
126 DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_INTERFACE(INTERFACE, NAME) \
160 #define DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_INTERFACE(INTERFACE, NAME) \ argument
162 __IINTF_CONCAT(u, NAME)); \
170 #define DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_NESTED_INTERFACE(PARENT, INTERFACE, NAME) \ argument
171 const ::android::String16 PARENT::I##INTERFACE::descriptor(NAME); \
/frameworks/native/libs/binder/include/binder/
DIInterface.h113 #define IMPLEMENT_META_INTERFACE(INTERFACE, NAME) \ argument
114 static_assert(internal::allowedManualInterface(NAME), \
121 DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_INTERFACE(INTERFACE, NAME)
125 #define IMPLEMENT_META_INTERFACE(INTERFACE, NAME) \ argument
126 DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_INTERFACE(INTERFACE, NAME) \
160 #define DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_INTERFACE(INTERFACE, NAME) \ argument
162 __IINTF_CONCAT(u, NAME)); \
170 #define DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_NESTED_INTERFACE(PARENT, INTERFACE, NAME) \ argument
171 const ::android::String16 PARENT::I##INTERFACE::descriptor(NAME); \
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DLocationProviderManagerTest.java135 private static final String NAME = "test"; field in LocationProviderManagerTest
207 createManager(NAME); in setUp()
244 assertThat(mManager.getName()).isEqualTo(NAME); in testProperties()
277 verify(mStateChangedListener, timeout(TIMEOUT_MS).times(2)).onStateChanged(eq(NAME), in testStateChangedListener()
316 verify(listener, timeout(TIMEOUT_MS).times(1)).onProviderEnabledChanged(NAME, CURRENT_USER, in testIsEnabledListener()
320 verify(listener, timeout(TIMEOUT_MS).times(1)).onProviderEnabledChanged(NAME, CURRENT_USER, in testIsEnabledListener()
324 verify(listener, timeout(TIMEOUT_MS).times(2)).onProviderEnabledChanged(NAME, CURRENT_USER, in testIsEnabledListener()
326 verify(listener, timeout(TIMEOUT_MS).times(1)).onProviderEnabledChanged(NAME, OTHER_USER, in testIsEnabledListener()
330 verify(listener, timeout(TIMEOUT_MS).times(2)).onProviderEnabledChanged(NAME, CURRENT_USER, in testIsEnabledListener()
332 verify(listener, timeout(TIMEOUT_MS).times(1)).onProviderEnabledChanged(NAME, OTHER_USER, in testIsEnabledListener()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/policy/
DWorkProfilePolicy.kt46 return NotMatched(policy = NAME, reason = SHADE_EXPANDED) in <lambda>()
52 return NotMatched(policy = NAME, reason = DESKTOP_MODE_ENABLED) in <lambda>()
68 policy = NAME, in <lambda>()
74 policy = NAME, in <lambda>()
85 const val NAME = "WorkProfile" in <lambda>() constant
DPrivateProfilePolicy.kt42 return NotMatched(policy = NAME, reason = SHADE_EXPANDED) in <lambda>()
56 ?: return NotMatched(policy = NAME, reason = NO_VISIBLE_TASKS) in <lambda>()
60 policy = NAME, in <lambda>()
70 const val NAME = "PrivateProfile" in <lambda>() constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DStatusBarInsetsCommand.kt27 ) : ParseableCommand(NAME) {
40 const val NAME = "status-bar-insets" in onExecute() constant
44 class BottomMarginCommand : ParseableCommand(NAME) {
71 const val NAME = "bottom-margin" constant
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothProfileManager.java148 addProfile(mA2dpProfile, A2dpProfile.NAME, in updateLocalProfiles()
154 addProfile(mA2dpSinkProfile, A2dpSinkProfile.NAME, in updateLocalProfiles()
160 addHeadsetProfile(mHeadsetProfile, HeadsetProfile.NAME, in updateLocalProfiles()
168 addProfile(mHfpClientProfile, HfpClientProfile.NAME, in updateLocalProfiles()
174 addProfile(mMapClientProfile, MapClientProfile.NAME, in updateLocalProfiles()
180 addProfile(mMapProfile, MapProfile.NAME, BluetoothMap.ACTION_CONNECTION_STATE_CHANGED); in updateLocalProfiles()
186 mProfileNameMap.put(OppProfile.NAME, mOppProfile); in updateLocalProfiles()
192 addProfile(mHearingAidProfile, HearingAidProfile.NAME, in updateLocalProfiles()
198 addProfile(mHapClientProfile, HapClientProfile.NAME, in updateLocalProfiles()
204 addProfile(mHidProfile, HidProfile.NAME, in updateLocalProfiles()
[all …]
DOppProfile.java30 static final String NAME = "OPP"; field in OppProfile
72 return NAME; in toString()
/frameworks/compile/libbcc/tests/debuginfo/
Dbuild_test_apk.sh23 NAME=""
78 NAME="$2"
159 if [ -z "$NAME" ]; then
160 NAME="$ACTIVITY"
168 run $SDK/tools/android create project --target $TARGET --name $NAME --path $OUT_DIR --activity $ACT…
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/policy/
DWorkProfilePolicyTest.kt78 WorkProfilePolicy.NAME, in <lambda>()
94 WorkProfilePolicy.NAME, in <lambda>()
113 WorkProfilePolicy.NAME, in <lambda>()
127 policy = WorkProfilePolicy.NAME, in withWorkFullScreen_matched()
152 policy = WorkProfilePolicy.NAME, in <lambda>()
177 WorkProfilePolicy.NAME, in <lambda>()
196 policy = WorkProfilePolicy.NAME, in <lambda>()
222 policy = WorkProfilePolicy.NAME, in <lambda>()
248 WorkProfilePolicy.NAME, in <lambda>()
DPrivateProfilePolicyTest.kt64 .isEqualTo(NotMatched(PrivateProfilePolicy.NAME, PrivateProfilePolicy.SHADE_EXPANDED)) in <lambda>()
75 .isEqualTo(NotMatched(PrivateProfilePolicy.NAME, PrivateProfilePolicy.NO_VISIBLE_TASKS)) in <lambda>()
88 PrivateProfilePolicy.NAME, in <lambda>()
125 PrivateProfilePolicy.NAME, in <lambda>()
145 PrivateProfilePolicy.NAME, in <lambda>()
170 PrivateProfilePolicy.NAME, in <lambda>()
191 PrivateProfilePolicy.NAME, in <lambda>()
215 PrivateProfilePolicy.NAME, in <lambda>()
/frameworks/base/core/jni/
Dscoped_nullable_primitive_array.h24 #define ARRAY_TRAITS(ARRAY_TYPE, POINTER_TYPE, NAME) \ argument
25 class NAME ## ArrayTraits { \
29 env->Get ## NAME ## ArrayRegion(array, start, len, out); \
33 return env->Get ## NAME ## ArrayElements(array, nullptr); \
38 env->Release ## NAME ## ArrayElements(array, buffer, mode); \
/frameworks/base/libs/hwui/jni/
Dscoped_nullable_primitive_array.h24 #define ARRAY_TRAITS(ARRAY_TYPE, POINTER_TYPE, NAME) \ argument
25 class NAME ## ArrayTraits { \
29 env->Get ## NAME ## ArrayRegion(array, start, len, out); \
33 return env->Get ## NAME ## ArrayElements(array, nullptr); \
38 env->Release ## NAME ## ArrayElements(array, buffer, mode); \
/frameworks/compile/slang/
Drs_cc_options.cpp39 #define PREFIX(NAME, VALUE) argument
40 #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \ argument
49 #define PREFIX(NAME, VALUE) const char *const NAME[] = VALUE; argument
50 #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \ argument
57 #define PREFIX(NAME, VALUE) argument
58 #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \ argument
61 PREFIX, NAME, HELPTEXT, METAVAR, OPT_##ID, llvm::opt::Option::KIND##Class, \
/frameworks/av/media/libstagefright/httplive/fuzzer/corpus/
Dprog_index2 #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",LANGUAGE="eng",NAME="English",AUTOSELECT=YES,DEFAULT=YES,U…
3 #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",LANGUAGE="fre",NAME="Français",AUTOSELECT=YES,DEFAULT=NO,U…
4 #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",LANGUAGE="sp",NAME="Espanol",AUTOSELECT=YES,DEFAULT=NO,URI…
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DPeopleTileViewHelperTest.java87 private static final String NAME = "username"; field in PeopleTileViewHelperTest
100 .Builder(SHORTCUT_ID_1, NAME, ICON, new Intent())
106 .Builder(SHORTCUT_ID_1, NAME, ICON, new Intent())
115 .Builder(SHORTCUT_ID_1, NAME, ICON, new Intent())
220 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithLastInteractionTime() local
267 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithLastInteractionTime() local
292 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithGameTypeOnlyIsIgnored() local
339 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithGameTypeOnlyIsIgnored() local
364 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithBirthdayTypeOnlyIsNotIgnored() local
377 mContext.getString(R.string.new_status_content_description, NAME, in testCreateRemoteViewsWithBirthdayTypeOnlyIsNotIgnored()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/provider/
DPhotoContract.java35 public static final String NAME = OpenableColumns.DISPLAY_NAME; field
62 PhotoViewColumns.NAME,
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DVolumeLoader.java38 map.put(Mandelbulb.NAME,null); in VolumeLoader()
39 map.put(Droid.NAME,null); in VolumeLoader()
59 if (name.equals(Mandelbulb.NAME)) { in getVolume()
62 if (name.equals(Droid.NAME)) { in getVolume()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DVoiceMailConstants.java46 static final int NAME = 0; field in VoiceMailConstants
63 return data[NAME]; in getCarrierName()
106 data[NAME] = parser.getAttributeValue(null, "carrier"); in loadVoiceMail()
/frameworks/av/camera/ndk/
DNdkCaptureRequest.cpp133 #define SET_ENTRY(NAME,NDK_TYPE) \ argument
135 camera_status_t ACaptureRequest_setEntry_##NAME( \
155 #define SET_PHYSICAL_ENTRY(NAME,NDK_TYPE) \ in SET_ENTRY() argument
157 camera_status_t ACaptureRequest_setEntry_physicalCamera_##NAME( \ in SET_ENTRY()

1234567