Home
last modified time | relevance | path

Searched refs:newInstanceOf (Results 1 – 25 of 43) sorted by relevance

12

/external/robolectric-shadows/shadowapi/src/main/java/org/robolectric/shadow/api/
DShadow.java28 public static <T> T newInstanceOf(Class<T> clazz) { in newInstanceOf() method in Shadow
29 return SHADOW_IMPL.newInstanceOf(clazz); in newInstanceOf()
32 public static Object newInstanceOf(String className) { in newInstanceOf() method in Shadow
35 return SHADOW_IMPL.newInstanceOf(aClass); in newInstanceOf()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPaintTest.java20 Paint paint = Shadow.newInstanceOf(Paint.class); in shouldGetIsDitherInfo()
29 Paint paint = Shadow.newInstanceOf(Paint.class); in shouldGetIsAntiAlias()
59 Paint paint = Shadow.newInstanceOf(Paint.class); in shouldGetAndSetTextAlignment()
67 Paint paint = Shadow.newInstanceOf(Paint.class); in measureTextActuallyMeasuresLength()
DShadowTest.java24 public void newInstanceOf() throws Exception { in newInstanceOf() method in ShadowTest
25 assertThat(Shadow.newInstanceOf(Activity.class.getName()).getClass().getClassLoader()) in newInstanceOf()
DShadowServiceTest.java48 ServiceConnection conn = Shadow.newInstanceOf(MediaScannerConnection.class); in shouldUnbindServiceAtShadowApplication()
57 ServiceConnection conn = Shadow.newInstanceOf(MediaScannerConnection.class); in shouldUnbindServiceSuccessfully()
64 ServiceConnection conn = Shadow.newInstanceOf(MediaScannerConnection.class); in shouldUnbindServiceWithExceptionWhenRequested()
DShadowNetworkInfoTest.java17 NetworkInfo networkInfo = Shadow.newInstanceOf(NetworkInfo.class); in getDetailedState_shouldReturnTheAssignedState()
DShadowJsResultTest.java18 JsResult jsResult = Shadow.newInstanceOf(JsResult.class); in shouldRecordCanceled()
DShadowTileTest.java24 tile = Shadow.newInstanceOf(Tile.class); in setUp()
DShadowSslErrorHandlerTest.java21 handler = Shadow.newInstanceOf(SslErrorHandler.class); in setUp()
DShadowCameraSizeTest.java19 cameraSize = Shadow.newInstanceOf(Camera.class).new Size(480, 320); in setUp()
DShadowBluetoothSocketTest.java23 bluetoothSocket = Shadow.newInstanceOf(BluetoothSocket.class); in setUp()
DShadowMediaRecorderTest.java69 Camera c = Shadow.newInstanceOf(Camera.class); in testCamera()
129 Surface surface = Shadow.newInstanceOf(Surface.class); in testPreviewDisplay()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCamera.java3 import static org.robolectric.shadow.api.Shadow.newInstanceOf;
51 Camera camera = newInstanceOf(Camera.class); in open()
60 Camera camera = newInstanceOf(Camera.class); in open()
83 parameters = newInstanceOf(Camera.Parameters.class); in getParameters()
282 Camera.Size pictureSize = newInstanceOf(Camera.class).new Size(0, 0); in getPictureSize()
306 Camera.Size previewSize = newInstanceOf(Camera.class).new Size(0, 0); in getPreviewSize()
482 Camera.Size newSize = newInstanceOf(Camera.class).new Size(0, 0); in addSize()
DShadowJsPromptResult.java3 import static org.robolectric.shadow.api.Shadow.newInstanceOf;
12 return newInstanceOf(JsPromptResult.class); in newInstance()
DShadowHttpResponseCache.java3 import static org.robolectric.shadow.api.Shadow.newInstanceOf;
33 HttpResponseCache cache = newInstanceOf(HttpResponseCache.class); in install()
DShadowKeyguardManager.java23 Shadow.newInstanceOf(KeyguardManager.KeyguardLock.class);
261 keyguardLock = Shadow.newInstanceOf(KeyguardManager.KeyguardLock.class); in reset()
DShadowCookieSyncManager.java17 sRef = Shadow.newInstanceOf(CookieSyncManager.class); in createInstance()
DShadowWallpaperManager.java16 return Shadow.newInstanceOf(WallpaperManager.class); in getInstance()
DShadowTileService.java24 return Shadow.newInstanceOf(Tile.class); in createTile()
DShadowInputDevice.java13 InputDevice inputDevice = Shadow.newInstanceOf(InputDevice.class); in makeInputDeviceNamed()
DShadowSensor.java19 Sensor sensor = Shadow.newInstanceOf(Sensor.class); in newInstance()
DShadowApplication.java3 import static org.robolectric.shadow.api.Shadow.newInstanceOf;
45 private Object bluetoothAdapter = newInstanceOf("android.bluetooth.BluetoothAdapter");
DShadowScanResult.java15 ScanResult scanResult = Shadow.newInstanceOf(ScanResult.class); in newInstance()
DShadowMimeTypeMap.java23 singleton = Shadow.newInstanceOf(MimeTypeMap.class); in getSingleton()
DShadowNetworkInfo.java45 NetworkInfo networkInfo = Shadow.newInstanceOf(NetworkInfo.class); in newInstance()
/external/robolectric-shadows/shadowapi/src/main/java/org/robolectric/internal/
DIShadow.java9 <T> T newInstanceOf(Class<T> clazz); in newInstanceOf() method

12