Home
last modified time | relevance | path

Searched refs:getStaticField (Results 1 – 23 of 23) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowQueuedWork.java26 Handler queuedWorkHandler = ReflectionHelpers.getStaticField(QueuedWork.class, "sHandler"); in resetStateApi26()
30 ((List) ReflectionHelpers.getStaticField(QueuedWork.class, "sFinishers")).clear(); in resetStateApi26()
31 ((List) ReflectionHelpers.getStaticField(QueuedWork.class, "sWork")).clear(); in resetStateApi26()
DShadowUsbManager.java10 import static org.robolectric.util.ReflectionHelpers.getStaticField;
179 from(int.class, getStaticField(UsbPort.class, "MODE_DUAL"))), in addPort()
181 getStaticField(UsbPort.class, "MODE_DUAL"), in addPort()
182 getStaticField(UsbPort.class, "POWER_ROLE_SINK"), in addPort()
183 getStaticField(UsbPort.class, "DATA_ROLE_DEVICE"), in addPort()
DShadowValueAnimator.java35 ReflectionHelpers.getStaticField(AnimationHandler.class, "sAnimatorHandler"); in reset()
40 ReflectionHelpers.getStaticField(ValueAnimator.class, "sAnimationHandler"); in reset()
DShadowMediaRouter.java59 ReflectionHelpers.getStaticField(MediaRouter.class, "sStatic"), "mBluetoothA2dpRoute"); in getBluetoothA2dpRoute()
87 ReflectionHelpers.getStaticField(MediaRouter.class, "sStatic"), in callUpdateAudioRoutes()
DShadowMessage.java8 import static org.robolectric.util.ReflectionHelpers.getStaticField;
29 private static final Object lock = getStaticField(Message.class, "sPoolSync");
DShadowEnvironment.java188 ReflectionHelpers.getStaticField(Environment.class, "sCurrentUser"); in addExternalDir()
194 ReflectionHelpers.getStaticField(Environment.class, "sCurrentUser"); in addExternalDir()
DShadowBackgroundThread.java15 … BackgroundThread instance = ReflectionHelpers.getStaticField(BackgroundThread.class, "sInstance"); in reset()
DShadowSystemServiceRegistry.java20 ReflectionHelpers.getStaticField( in reset()
DShadowWindowManagerImpl.java100 ReflectionHelpers.getStaticField(WindowManagerImpl.class, "sCompatWindowManagers"); in reset()
DShadowSmsManager.java25 ReflectionHelpers.getStaticField(SmsManager.class, "sSubInstances"); in reset()
DShadowAccessibilityNodeInfo.java1195 …if (((id & (int)ReflectionHelpers.getStaticField(AccessibilityNodeInfo.class, "ACTION_TYPE_MASK"))… in __constructor__()
1259 return (int)ReflectionHelpers.getStaticField(AccessibilityNodeInfo.class, "ACTION_TYPE_MASK"); in getActionTypeMaskFromFramework()
1269 …return (int)ReflectionHelpers.getStaticField(AccessibilityNodeInfo.class, "LAST_LEGACY_STANDARD_AC… in getLastLegacyActionFromFrameWork()
DShadowAudioManager.java130 …if (ringerMode < 0 || ringerMode > (int)ReflectionHelpers.getStaticField(AudioManager.class, "RING… in isValidRingerMode()
DShadowArscApkAssets9.java56 ReflectionHelpers.getStaticField(AssetManager.class, "FRAMEWORK_APK_PATH");
DShadowContextImpl.java288 ReflectionHelpers.getStaticField(contextImplClass, "SYSTEM_SERVICE_MAP"); in reset()
DShadowAppOpsManager.java120 String[] sOpToString = ReflectionHelpers.getStaticField(AppOpsManager.class, "sOpToString"); in setMode()
DShadowArscAssetManager10.java206 AssetManager sSystem = ReflectionHelpers.getStaticField(AssetManager.class, "sSystem"); in createSystemAssetsInZygoteLocked()
216 ReflectionHelpers.getStaticField(AssetManager.class, "sSystemApkAssets"); in createSystemAssetsInZygoteLocked()
218 ReflectionHelpers.getStaticField(AssetManager.class, "sSystemApkAssetsSet"); in createSystemAssetsInZygoteLocked()
DShadowArscAssetManager9.java200 AssetManager sSystem = ReflectionHelpers.getStaticField(AssetManager.class, "sSystem"); in createSystemAssetsInZygoteLocked()
210 ReflectionHelpers.getStaticField(AssetManager.class, "sSystemApkAssets"); in createSystemAssetsInZygoteLocked()
212 ReflectionHelpers.getStaticField(AssetManager.class, "sSystemApkAssetsSet"); in createSystemAssetsInZygoteLocked()
/external/robolectric-shadows/shadowapi/src/test/java/org/robolectric/util/
DReflectionHelpersTest.java75 int result = ReflectionHelpers.getStaticField(field); in getStaticFieldReflectively_withField_getsStaticField()
81 assertThat((int) ReflectionHelpers.getStaticField(ExampleDescendant.class, "DESCENDANT")) in getStaticFieldReflectively_withFieldName_getsStaticField()
88 int startingValue = ReflectionHelpers.getStaticField(field); in setStaticFieldReflectively_withField_setsStaticFields()
100 int startingValue = ReflectionHelpers.getStaticField(ExampleDescendant.class, "DESCENDANT"); in setStaticFieldReflectively_withFieldName_setsStaticFields()
/external/deqp/framework/platform/android/
DtcuAndroidUtil.cpp269 FieldType getStaticField (JNIEnv* env, const char* className, const char* fieldName) in getStaticField() function
341 …<< ": " << getStaticField<string>(env, s_stringFields[ndx].classPath, s_stringFields[ndx].fieldNam… in describePlatform()
344 dst << "Build.VERSION.SDK_INT: " << getStaticField<int>(env, versionClass, "SDK_INT") << "\n"; in describePlatform()
347 …const vector<string> supportedAbis = getStaticField<vector<string> >(env, buildClass, "SUPPORTED_A… in describePlatform()
360 return getStaticField<vector<string> >(env, "android/os/Build", "SUPPORTED_ABIS"); in getSupportedABIs()
/external/robolectric-shadows/shadowapi/src/main/java/org/robolectric/util/
DReflectionHelpers.java172 public static <R> R getStaticField(Field field) {
189 public static <R> R getStaticField(Class<?> clazz, String fieldName) {
191 return getStaticField(clazz.getDeclaredField(fieldName));
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSQLiteConnectionTest.java177 CONNECTIONS = ReflectionHelpers.getStaticField(ShadowSQLiteConnection.class, "CONNECTIONS"); in getSQLiteConnection()
DShadowMediaPlayerTest.java1314 …Map<DataSource,Exception> exceptions = ReflectionHelpers.getStaticField(ShadowMediaPlayer.class, "… in testSetDataSourceExceptionWithWrongExceptionTypeAsserts()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DDrawableResourceLoaderNoRunnerTest.java148 originalSeparator = ReflectionHelpers.getStaticField(field); in setFileSeparator()