/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowActivity.java | 49 import org.robolectric.util.ReflectionHelpers; 79 ReflectionHelpers.setField(realActivity, "mApplication", application); in setApplication() 100 ReflectionHelpers.callInstanceMethod( in callAttach() 104 ReflectionHelpers.ClassParameter.from(Context.class, baseContext), in callAttach() 105 ReflectionHelpers.ClassParameter.from( in callAttach() 107 ReflectionHelpers.ClassParameter.from(Instrumentation.class, instrumentation), in callAttach() 108 ReflectionHelpers.ClassParameter.from(IBinder.class, null), in callAttach() 109 ReflectionHelpers.ClassParameter.from(int.class, 0), in callAttach() 110 ReflectionHelpers.ClassParameter.from(Application.class, application), in callAttach() 111 ReflectionHelpers.ClassParameter.from(Intent.class, intent), in callAttach() [all …]
|
D | ShadowLocaleData.java | 17 import org.robolectric.util.ReflectionHelpers; 69 ReflectionHelpers.setField(localeData, "timeFormat12", "h:mm a"); in setEnUsLocaleData() 70 ReflectionHelpers.setField(localeData, "timeFormat24", "HH:mm"); in setEnUsLocaleData() 76 ReflectionHelpers.setField(localeData, "currencySymbol", "$"); in setEnUsLocaleData() 77 ReflectionHelpers.setField(localeData, "internationalCurrencySymbol", "USD"); in setEnUsLocaleData() 78 ReflectionHelpers.setField(localeData, "yesterday", "Yesterday"); in setEnUsLocaleData() 84 ReflectionHelpers.setField(localeData, "fullDateFormat", "EEEE, MMMM d, y"); in setEnUsLocaleData() 85 ReflectionHelpers.setField(localeData, "longDateFormat", "MMMM d, y"); in setEnUsLocaleData() 86 ReflectionHelpers.setField(localeData, "mediumDateFormat", "MMM d, y"); in setEnUsLocaleData() 87 ReflectionHelpers.setField(localeData, "shortDateFormat", "M/d/yy"); in setEnUsLocaleData() [all …]
|
D | ShadowBuild.java | 12 import org.robolectric.util.ReflectionHelpers; 25 ReflectionHelpers.setStaticField(Build.class, "DEVICE", device); in setDevice() 34 ReflectionHelpers.setStaticField(Build.class, "FINGERPRINT", fingerprint); in setFingerprint() 43 ReflectionHelpers.setStaticField(Build.class, "ID", id); in setId() 52 ReflectionHelpers.setStaticField(Build.class, "MODEL", model); in setModel() 61 ReflectionHelpers.setStaticField(Build.class, "MANUFACTURER", manufacturer); in setManufacturer() 70 ReflectionHelpers.setStaticField(Build.VERSION.class, "CODENAME", versionCodename); in setVersionCodename() 79 ReflectionHelpers.setStaticField(Build.VERSION.class, "INCREMENTAL", versionIncremental); in setVersionIncremental() 88 ReflectionHelpers.setStaticField(Build.VERSION.class, "RELEASE", release); in setVersionRelease() 97 ReflectionHelpers.setStaticField(Build.class, "TAGS", tags); in setTags() [all …]
|
D | ShadowSensor.java | 9 import org.robolectric.util.ReflectionHelpers; 20 …Shadow.directlyOn(sensor, Sensor.class, "setType", ReflectionHelpers.ClassParameter.from(int.class… in newInstance() 22 ReflectionHelpers.setField(Sensor.class, sensor, "mType", type); in newInstance() 39 int value = ReflectionHelpers.getField(realSensor, "mFlags"); in setMask() 40 ReflectionHelpers.setField(realSensor, "mFlags", (value | mask)); in setMask() 44 int value = ReflectionHelpers.getField(realSensor, "mFlags"); in clearMask() 45 ReflectionHelpers.setField(realSensor, "mFlags", (value & ~mask)); in clearMask() 49 return ReflectionHelpers.getStaticField(Sensor.class, "SENSOR_FLAG_WAKE_UP_SENSOR"); in getWakeUpSensorFlag()
|
D | ShadowViewRootImpl.java | 24 import org.robolectric.util.ReflectionHelpers; 25 import org.robolectric.util.ReflectionHelpers.ClassParameter; 53 ReflectionHelpers.callInstanceMethod(ViewRootImpl.class, component, "dispatchResized", in callDispatchResized() 61 ReflectionHelpers.callInstanceMethod(ViewRootImpl.class, component, "dispatchResized", in callDispatchResized() 68 ReflectionHelpers.callInstanceMethod(ViewRootImpl.class, component, "dispatchResized", in callDispatchResized() 76 ReflectionHelpers.callInstanceMethod(ViewRootImpl.class, component, "dispatchResized", in callDispatchResized() 85 ReflectionHelpers.callInstanceMethod(ViewRootImpl.class, component, "dispatchResized", in callDispatchResized() 95 ReflectionHelpers.callInstanceMethod(ViewRootImpl.class, component, "dispatchResized", in callDispatchResized() 108 ReflectionHelpers.callInstanceMethod( in callDispatchResized() 125 ReflectionHelpers.callInstanceMethod(ViewRootImpl.class, component, "dispatchResized", in callDispatchResized() [all …]
|
D | ShadowAsyncTaskBridge.java | 5 import org.robolectric.util.ReflectionHelpers; 6 import org.robolectric.util.ReflectionHelpers.ClassParameter; 20 …return ReflectionHelpers.callInstanceMethod(asyncTask, "doInBackground", ClassParameter.from(Objec… in doInBackground() 24 ReflectionHelpers.callInstanceMethod(asyncTask, "onPreExecute"); in onPreExecute() 28 …ReflectionHelpers.callInstanceMethod(asyncTask, "onPostExecute", ClassParameter.from(Object.class,… in onPostExecute() 32 …ReflectionHelpers.callInstanceMethod(asyncTask, "onProgressUpdate", ClassParameter.from(Object[].c… in onProgressUpdate() 38 ReflectionHelpers.callInstanceMethod( in onCancelled()
|
D | ShadowMediaRouter.java | 16 import org.robolectric.util.ReflectionHelpers; 17 import org.robolectric.util.ReflectionHelpers.ClassParameter; 34 ReflectionHelpers.callInstanceMethod( in addBluetoothRoute() 58 return ReflectionHelpers.getField( in getBluetoothA2dpRoute() 59 ReflectionHelpers.getStaticField(MediaRouter.class, "sStatic"), "mBluetoothA2dpRoute"); in getBluetoothA2dpRoute() 86 ReflectionHelpers.callInstanceMethod( in callUpdateAudioRoutes() 87 ReflectionHelpers.getStaticField(MediaRouter.class, "sStatic"), in callUpdateAudioRoutes() 96 ReflectionHelpers.setStaticField(MediaRouter.class, "sStatic", null); in reset()
|
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowRangingResult.java | 10 import org.robolectric.util.ReflectionHelpers; 142 return ReflectionHelpers.callConstructor( in asRangingResultP() 144 ReflectionHelpers.ClassParameter.from(int.class, status), in asRangingResultP() 145 ReflectionHelpers.ClassParameter.from(MacAddress.class, mac), in asRangingResultP() 146 ReflectionHelpers.ClassParameter.from(int.class, distanceMm), in asRangingResultP() 147 ReflectionHelpers.ClassParameter.from(int.class, distanceStdDevMm), in asRangingResultP() 148 ReflectionHelpers.ClassParameter.from(int.class, rssi), in asRangingResultP() 149 ReflectionHelpers.ClassParameter.from(int.class, numAttemptedMeasurements), in asRangingResultP() 150 ReflectionHelpers.ClassParameter.from(int.class, numSuccessfulMeasurements), in asRangingResultP() 151 ReflectionHelpers.ClassParameter.from(byte[].class, lci), in asRangingResultP() [all …]
|
D | ShadowBuild.java | 14 import org.robolectric.util.ReflectionHelpers; 31 ReflectionHelpers.setStaticField(Build.class, "BOARD", board); in setBoard() 40 ReflectionHelpers.setStaticField(Build.class, "DEVICE", device); in setDevice() 49 ReflectionHelpers.setStaticField(Build.class, "FINGERPRINT", fingerprint); in setFingerprint() 58 ReflectionHelpers.setStaticField(Build.class, "ID", id); in setId() 67 ReflectionHelpers.setStaticField(Build.class, "PRODUCT", product); in setProduct() 76 ReflectionHelpers.setStaticField(Build.class, "MODEL", model); in setModel() 85 ReflectionHelpers.setStaticField(Build.class, "MANUFACTURER", manufacturer); in setManufacturer() 94 ReflectionHelpers.setStaticField(Build.class, "BRAND", brand); in setBrand() 103 ReflectionHelpers.setStaticField(Build.class, "HARDWARE", hardware); in setHardware() [all …]
|
D | PackageRollbackInfoBuilder.java | 16 import org.robolectric.util.ReflectionHelpers; 126 return ReflectionHelpers.callConstructor( in build() 128 ReflectionHelpers.ClassParameter.from(VersionedPackage.class, packageRolledBackFrom), in build() 129 ReflectionHelpers.ClassParameter.from(VersionedPackage.class, packageRolledBackTo), in build() 130 ReflectionHelpers.ClassParameter.from(IntArray.class, pendingBackups), in build() 131 ReflectionHelpers.ClassParameter.from(ArrayList.class, pendingRestores), in build() 132 ReflectionHelpers.ClassParameter.from(Boolean.TYPE, isApex), in build() 133 ReflectionHelpers.ClassParameter.from(IntArray.class, installedUsers), in build() 134 ReflectionHelpers.ClassParameter.from(SparseLongArray.class, ceSnapshotInodes)); in build() 136 return ReflectionHelpers.callConstructor( in build() [all …]
|
D | ShadowCameraDeviceImpl.java | 20 import org.robolectric.util.ReflectionHelpers; 32 String cameraId = ReflectionHelpers.getField(realObject, "mCameraId"); in createCaptureRequest() 44 ReflectionHelpers.callConstructor( in createCaptureRequest() 46 ReflectionHelpers.ClassParameter.from(CameraMetadataNative.class, templatedRequest), in createCaptureRequest() 47 ReflectionHelpers.ClassParameter.from(Boolean.TYPE, false), in createCaptureRequest() 48 ReflectionHelpers.ClassParameter.from( in createCaptureRequest() 52 ReflectionHelpers.callConstructor( in createCaptureRequest() 54 ReflectionHelpers.ClassParameter.from(CameraMetadataNative.class, templatedRequest)); in createCaptureRequest() 78 Runnable callOnClosed = ReflectionHelpers.getField(realObject, "mCallOnClosed"); in close() 80 Executor deviceExecutor = ReflectionHelpers.getField(realObject, "mDeviceExecutor"); in close() [all …]
|
D | ShadowVoiceInteractionSession.java | 4 import static org.robolectric.util.ReflectionHelpers.callConstructor; 27 import org.robolectric.util.ReflectionHelpers; 28 import org.robolectric.util.ReflectionHelpers.ClassParameter; 52 ReflectionHelpers.createDelegatingProxy( in create() 57 ReflectionHelpers.callInstanceMethod( in create() 106 return ReflectionHelpers.getField(realSession, "mWindowVisible"); in isWindowVisible() 111 Dialog window = ReflectionHelpers.getField(realSession, "mWindow"); in isWindowShowing() 120 return ReflectionHelpers.getField(realSession, "mUiEnabled"); in isUiEnabled() 154 String command = ReflectionHelpers.getField(commandRequest, "mCommand"); in sendCommandRequest() 155 Bundle extras = ReflectionHelpers.getField(commandRequest, "mArgs"); in sendCommandRequest() [all …]
|
D | ShadowSubscriptionManager.java | 29 import org.robolectric.util.ReflectionHelpers; 37 ReflectionHelpers.getStaticField(SubscriptionManager.class, "INVALID_PHONE_INDEX"); 481 ReflectionHelpers.callConstructor(SubscriptionInfo.class); 492 ReflectionHelpers.setField(subscriptionInfo, "mId", id); in setId() 497 ReflectionHelpers.setField(subscriptionInfo, "mIccId", iccId); in setIccId() 502 ReflectionHelpers.setField(subscriptionInfo, "mSimSlotIndex", index); in setSimSlotIndex() 507 ReflectionHelpers.setField(subscriptionInfo, "mDisplayName", name); in setDisplayName() 512 ReflectionHelpers.setField(subscriptionInfo, "mCarrierName", carrierName); in setCarrierName() 517 ReflectionHelpers.setField(subscriptionInfo, "mIconTint", iconTint); in setIconTint() 522 ReflectionHelpers.setField(subscriptionInfo, "mNumber", number); in setNumber() [all …]
|
D | ShadowMediaRouter.java | 16 import org.robolectric.util.ReflectionHelpers; 17 import org.robolectric.util.ReflectionHelpers.ClassParameter; 34 ReflectionHelpers.callInstanceMethod( in addBluetoothRoute() 58 return ReflectionHelpers.getField( in getBluetoothA2dpRoute() 59 ReflectionHelpers.getStaticField(MediaRouter.class, "sStatic"), "mBluetoothA2dpRoute"); in getBluetoothA2dpRoute() 86 ReflectionHelpers.callInstanceMethod( in callUpdateAudioRoutes() 87 ReflectionHelpers.getStaticField(MediaRouter.class, "sStatic"), in callUpdateAudioRoutes() 96 ReflectionHelpers.setStaticField(MediaRouter.class, "sStatic", null); in reset()
|
D | ShadowTimeManager.java | 18 import org.robolectric.util.ReflectionHelpers; 19 import org.robolectric.util.ReflectionHelpers.ClassParameter; 59 ReflectionHelpers.callConstructor( in getTimeZoneCapabilitiesAndConfig() 63 ReflectionHelpers.callConstructor( in getTimeZoneCapabilitiesAndConfig() 74 ReflectionHelpers.callConstructor( in getTimeZoneCapabilitiesAndConfig() 83 return ReflectionHelpers.callConstructor( in getTimeZoneCapabilitiesAndConfig() 92 return ReflectionHelpers.callConstructor( in getTimeZoneCapabilitiesAndConfig() 125 ReflectionHelpers.callInstanceMethod( in getTimeZoneCapabilities() 129 ReflectionHelpers.callInstanceMethod( in getTimeZoneCapabilities() 135 ReflectionHelpers.callInstanceMethod( in getTimeZoneCapabilities()
|
/external/robolectric-shadows/shadowapi/src/test/java/org/robolectric/util/ |
D | ReflectionHelpersTest.java | 11 import org.robolectric.util.ReflectionHelpers.ClassParameter; 20 assertThat((int) ReflectionHelpers.getField(example, "overridden")).isEqualTo(5); in getFieldReflectively_getsPrivateFields() 27 assertThat((int) ReflectionHelpers.getField(example, "notOverridden")).isEqualTo(6); in getFieldReflectively_getsInheritedFields() 34 ReflectionHelpers.getField(example, "nonExistent"); in getFieldReflectively_givesHelpfulExceptions() 47 ReflectionHelpers.setField(example, "overridden", 10); in setFieldReflectively_setsPrivateFields() 55 ReflectionHelpers.setField(example, "notOverridden", 10); in setFieldReflectively_setsInheritedFields() 63 ReflectionHelpers.setField(example, "nonExistent", 6); in setFieldReflectively_givesHelpfulExceptions() 76 int result = ReflectionHelpers.getStaticField(field); in getStaticFieldReflectively_withField_getsStaticField() 82 assertThat((int) ReflectionHelpers.getStaticField(ExampleDescendant.class, "DESCENDANT")) in getStaticFieldReflectively_withFieldName_getsStaticField() 90 int result = ReflectionHelpers.getStaticField(field); in getFinalStaticFieldReflectively_withField_getsStaticField() [all …]
|
/external/robolectric/shadowapi/src/test/java/org/robolectric/util/ |
D | ReflectionHelpersTest.java | 12 import org.robolectric.util.ReflectionHelpers.ClassParameter; 21 assertThat((int) ReflectionHelpers.getField(example, "overridden")).isEqualTo(5); in getFieldReflectively_getsPrivateFields() 28 assertThat((int) ReflectionHelpers.getField(example, "notOverridden")).isEqualTo(6); in getFieldReflectively_getsInheritedFields() 35 ReflectionHelpers.getField(example, "nonExistent"); in getFieldReflectively_givesHelpfulExceptions() 48 ReflectionHelpers.setField(example, "overridden", 10); in setFieldReflectively_setsPrivateFields() 56 ReflectionHelpers.setField(example, "notOverridden", 10); in setFieldReflectively_setsInheritedFields() 64 ReflectionHelpers.setField(example, "nonExistent", 6); in setFieldReflectively_givesHelpfulExceptions() 77 int result = ReflectionHelpers.getStaticField(field); in getStaticFieldReflectively_withField_getsStaticField() 83 assertThat((int) ReflectionHelpers.getStaticField(ExampleDescendant.class, "DESCENDANT")) in getStaticFieldReflectively_withFieldName_getsStaticField() 91 int result = ReflectionHelpers.getStaticField(field); in getFinalStaticFieldReflectively_withField_getsStaticField() [all …]
|
/external/cronet/base/test/android/junit/src/org/chromium/base/test/util/ |
D | DisableIfTest.java | 15 import org.robolectric.util.ReflectionHelpers; 85 ReflectionHelpers.setStaticField(Build.class, "SUPPORTED_ABIS", in testSupportedAbiIncludesAndCpuAbiMatches() 89 ReflectionHelpers.setStaticField(Build.class, "SUPPORTED_ABIS", originalAbis); in testSupportedAbiIncludesAndCpuAbiMatches() 101 ReflectionHelpers.setStaticField(Build.class, "SUPPORTED_ABIS", in testSupportedAbiIncludesAndCpuAbi2Matches() 105 ReflectionHelpers.setStaticField(Build.class, "SUPPORTED_ABIS", originalAbis); in testSupportedAbiIncludesAndCpuAbi2Matches() 117 ReflectionHelpers.setStaticField(Build.class, "SUPPORTED_ABIS", in testSupportedAbiIncludesButNoMatch() 121 ReflectionHelpers.setStaticField(Build.class, "SUPPORTED_ABIS", originalAbis); in testSupportedAbiIncludesButNoMatch() 133 ReflectionHelpers.setStaticField(Build.class, "HARDWARE", "hammerhead"); in testHardwareIsMatches() 136 ReflectionHelpers.setStaticField(Build.class, "HARDWARE", originalHardware); in testHardwareIsMatches() 148 ReflectionHelpers.setStaticField(Build.class, "HARDWARE", "mako"); in testHardwareIsDoesntMatch() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowLocaleDataTest.java | 17 import org.robolectric.util.ReflectionHelpers; 45 …assertThat((String) ReflectionHelpers.getField(localeData, "fullTimeFormat")).isEqualTo("h:mm:ss a… in shouldSupportLocaleEn_US() 46 …assertThat((String) ReflectionHelpers.getField(localeData, "longTimeFormat")).isEqualTo("h:mm:ss a… in shouldSupportLocaleEn_US() 47 …assertThat((String) ReflectionHelpers.getField(localeData, "mediumTimeFormat")).isEqualTo("h:mm:ss… in shouldSupportLocaleEn_US() 48 …assertThat((String) ReflectionHelpers.getField(localeData, "shortTimeFormat")).isEqualTo("h:mm a"); in shouldSupportLocaleEn_US() 50 …assertThat((String) ReflectionHelpers.getField(localeData, "fullDateFormat")).isEqualTo("EEEE, MMM… in shouldSupportLocaleEn_US() 51 …assertThat((String) ReflectionHelpers.getField(localeData, "longDateFormat")).isEqualTo("MMMM d, y… in shouldSupportLocaleEn_US() 52 …assertThat((String) ReflectionHelpers.getField(localeData, "mediumDateFormat")).isEqualTo("MMM d, … in shouldSupportLocaleEn_US() 53 …assertThat((String) ReflectionHelpers.getField(localeData, "shortDateFormat")).isEqualTo("M/d/yy"); in shouldSupportLocaleEn_US() 55 assertThat((char) ReflectionHelpers.getField(localeData, "zeroDigit")).isEqualTo('0'); in shouldSupportLocaleEn_US() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/ |
D | ActivityController.java | 7 import static org.robolectric.util.ReflectionHelpers.ClassParameter.from; 27 import org.robolectric.util.ReflectionHelpers; 132 ReflectionHelpers.setField(component, "mDecor", component.getWindow().getDecorView()); in visible() 133 ReflectionHelpers.callInstanceMethod(component, "makeVisible"); in visible() 165 ReflectionHelpers.callInstanceMethod(root, "windowFocusChanged", in windowFocusChanged() 168 ReflectionHelpers.callInstanceMethod(root, "windowFocusChanged", in windowFocusChanged() 277 ReflectionHelpers.callInstanceMethod(Activity.class, component, "onConfigurationChanged", in configurationChange() 285 final T recreatedActivity = (T) ReflectionHelpers.callConstructor(component.getClass()); in configurationChange() 292 ReflectionHelpers.setField( in configurationChange() 294 ReflectionHelpers.setField( in configurationChange() [all …]
|
/external/libchrome/base/test/android/junit/src/org/chromium/base/test/util/ |
D | DisableIfTest.java | 15 import org.robolectric.util.ReflectionHelpers; 85 ReflectionHelpers.setStaticField(Build.class, "SUPPORTED_ABIS", in testSupportedAbiIncludesAndCpuAbiMatches() 89 ReflectionHelpers.setStaticField(Build.class, "SUPPORTED_ABIS", originalAbis); in testSupportedAbiIncludesAndCpuAbiMatches() 101 ReflectionHelpers.setStaticField(Build.class, "SUPPORTED_ABIS", in testSupportedAbiIncludesAndCpuAbi2Matches() 105 ReflectionHelpers.setStaticField(Build.class, "SUPPORTED_ABIS", originalAbis); in testSupportedAbiIncludesAndCpuAbi2Matches() 117 ReflectionHelpers.setStaticField(Build.class, "SUPPORTED_ABIS", in testSupportedAbiIncludesButNoMatch() 121 ReflectionHelpers.setStaticField(Build.class, "SUPPORTED_ABIS", originalAbis); in testSupportedAbiIncludesButNoMatch() 133 ReflectionHelpers.setStaticField(Build.class, "HARDWARE", "hammerhead"); in testHardwareIsMatches() 136 ReflectionHelpers.setStaticField(Build.class, "HARDWARE", originalHardware); in testHardwareIsMatches() 148 ReflectionHelpers.setStaticField(Build.class, "HARDWARE", "mako"); in testHardwareIsDoesntMatch() [all …]
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/ |
D | ParallelUniverse.java | 6 import static org.robolectric.util.ReflectionHelpers.ClassParameter.from; 64 import org.robolectric.util.ReflectionHelpers; 77 ReflectionHelpers.setStaticField(RuntimeEnvironment.class, "apiLevel", sdkConfig.getApiLevel()); in setSdkConfig() 88 ReflectionHelpers.setStaticField(RuntimeEnvironment.class, "apiLevel", sdkConfig.getApiLevel()); in setUpApplicationState() 121 ActivityThread activityThread = ReflectionHelpers.newInstance(ActivityThread.class); in setUpApplicationState() 159 activityThread = ReflectionHelpers.newInstance(ActivityThread.class); in setUpApplicationState() 182 ReflectionHelpers.loadClass( in setUpApplicationState() 186 ReflectionHelpers.setField(activityThread, "mCompatConfiguration", configuration); in setUpApplicationState() 189 ReflectionHelpers.loadClass( in setUpApplicationState() 192 ReflectionHelpers.loadClass( in setUpApplicationState() [all …]
|
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/ |
D | ShadowImpl.java | 4 import org.robolectric.util.ReflectionHelpers; 24 return ReflectionHelpers.callConstructor(clazz); in newInstanceOf() 28 …return ReflectionHelpers.callConstructor(clazz, ReflectionHelpers.ClassParameter.fromComponentList… in newInstance() 44 …ectlyOn(Object shadowedObject, String clazzName, String methodName, ReflectionHelpers.ClassParamet… in directlyOn() 54 …public <R, T> R directlyOn(T shadowedObject, Class<T> clazz, String methodName, ReflectionHelpers.… in directlyOn() 56 …return (R) ReflectionHelpers.callInstanceMethod(clazz, shadowedObject, directMethodName, paramValu… in directlyOn() 60 …public <R, T> R directlyOn(Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter... … in directlyOn() 62 return (R) ReflectionHelpers.callStaticMethod(clazz, directMethodName, paramValues); in directlyOn() 66 …public <R> R invokeConstructor(Class<? extends R> clazz, R instance, ReflectionHelpers.ClassParame… in invokeConstructor() 69 return (R) ReflectionHelpers.callInstanceMethod(clazz, instance, directMethodName, paramValues); in invokeConstructor()
|
/external/robolectric/sandbox/src/main/java/org/robolectric/internal/bytecode/ |
D | ShadowImpl.java | 5 import org.robolectric.util.ReflectionHelpers; 18 return ReflectionHelpers.callConstructor(clazz); in newInstanceOf() 22 …return ReflectionHelpers.callConstructor(clazz, ReflectionHelpers.ClassParameter.fromComponentList… in newInstance() 48 …ectlyOn(Object shadowedObject, String clazzName, String methodName, ReflectionHelpers.ClassParamet… in directlyOn() 58 …public <R, T> R directlyOn(T shadowedObject, Class<T> clazz, String methodName, ReflectionHelpers.… in directlyOn() 60 …return (R) ReflectionHelpers.callInstanceMethod(clazz, shadowedObject, directMethodName, paramValu… in directlyOn() 64 …public <R, T> R directlyOn(Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter... … in directlyOn() 66 return (R) ReflectionHelpers.callStaticMethod(clazz, directMethodName, paramValues); in directlyOn() 70 …public <R> R invokeConstructor(Class<? extends R> clazz, R instance, ReflectionHelpers.ClassParame… in invokeConstructor() 73 return (R) ReflectionHelpers.callInstanceMethod(clazz, instance, directMethodName, paramValues); in invokeConstructor()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/ |
D | Robolectric.java | 26 import org.robolectric.util.ReflectionHelpers; 36 return ServiceController.of(ReflectionHelpers.callConstructor(serviceClass), intent); in buildService() 48 return IntentServiceController.of(ReflectionHelpers.callConstructor(serviceClass), intent); in buildIntentService() 56 return ContentProviderController.of(ReflectionHelpers.callConstructor(contentProviderClass)); in buildContentProvider() 72 return ActivityController.of(ReflectionHelpers.callConstructor(activityClass), intent); in buildActivity() 80 return FragmentController.of(ReflectionHelpers.callConstructor(fragmentClass)); in buildFragment() 85 return FragmentController.of(ReflectionHelpers.callConstructor(fragmentClass), arguments); in buildFragment() 90 return FragmentController.of(ReflectionHelpers.callConstructor(fragmentClass), activityClass); in buildFragment() 94 return FragmentController.of(ReflectionHelpers.callConstructor(fragmentClass), intent); in buildFragment() 100 … return FragmentController.of(ReflectionHelpers.callConstructor(fragmentClass), intent, arguments); in buildFragment() [all …]
|