/external/robolectric-shadows/shadowapi/src/main/java/org/robolectric/shadow/api/ |
D | Shadow.java | 28 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/ |
D | ShadowPaintTest.java | 20 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()
|
D | ShadowTest.java | 24 public void newInstanceOf() throws Exception { in newInstanceOf() method in ShadowTest 25 assertThat(Shadow.newInstanceOf(Activity.class.getName()).getClass().getClassLoader()) in newInstanceOf()
|
D | ShadowServiceTest.java | 48 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()
|
D | ShadowNetworkInfoTest.java | 17 NetworkInfo networkInfo = Shadow.newInstanceOf(NetworkInfo.class); in getDetailedState_shouldReturnTheAssignedState()
|
D | ShadowJsResultTest.java | 18 JsResult jsResult = Shadow.newInstanceOf(JsResult.class); in shouldRecordCanceled()
|
D | ShadowTileTest.java | 24 tile = Shadow.newInstanceOf(Tile.class); in setUp()
|
D | ShadowSslErrorHandlerTest.java | 21 handler = Shadow.newInstanceOf(SslErrorHandler.class); in setUp()
|
D | ShadowCameraSizeTest.java | 19 cameraSize = Shadow.newInstanceOf(Camera.class).new Size(480, 320); in setUp()
|
D | ShadowBluetoothSocketTest.java | 23 bluetoothSocket = Shadow.newInstanceOf(BluetoothSocket.class); in setUp()
|
D | ShadowMediaRecorderTest.java | 69 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/ |
D | ShadowCamera.java | 3 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()
|
D | ShadowJsPromptResult.java | 3 import static org.robolectric.shadow.api.Shadow.newInstanceOf; 12 return newInstanceOf(JsPromptResult.class); in newInstance()
|
D | ShadowHttpResponseCache.java | 3 import static org.robolectric.shadow.api.Shadow.newInstanceOf; 33 HttpResponseCache cache = newInstanceOf(HttpResponseCache.class); in install()
|
D | ShadowKeyguardManager.java | 23 Shadow.newInstanceOf(KeyguardManager.KeyguardLock.class); 261 keyguardLock = Shadow.newInstanceOf(KeyguardManager.KeyguardLock.class); in reset()
|
D | ShadowCookieSyncManager.java | 17 sRef = Shadow.newInstanceOf(CookieSyncManager.class); in createInstance()
|
D | ShadowWallpaperManager.java | 16 return Shadow.newInstanceOf(WallpaperManager.class); in getInstance()
|
D | ShadowTileService.java | 24 return Shadow.newInstanceOf(Tile.class); in createTile()
|
D | ShadowInputDevice.java | 13 InputDevice inputDevice = Shadow.newInstanceOf(InputDevice.class); in makeInputDeviceNamed()
|
D | ShadowSensor.java | 19 Sensor sensor = Shadow.newInstanceOf(Sensor.class); in newInstance()
|
D | ShadowApplication.java | 3 import static org.robolectric.shadow.api.Shadow.newInstanceOf; 45 private Object bluetoothAdapter = newInstanceOf("android.bluetooth.BluetoothAdapter");
|
D | ShadowScanResult.java | 15 ScanResult scanResult = Shadow.newInstanceOf(ScanResult.class); in newInstance()
|
D | ShadowMimeTypeMap.java | 23 singleton = Shadow.newInstanceOf(MimeTypeMap.class); in getSingleton()
|
D | ShadowNetworkInfo.java | 45 NetworkInfo networkInfo = Shadow.newInstanceOf(NetworkInfo.class); in newInstance()
|
/external/robolectric-shadows/shadowapi/src/main/java/org/robolectric/internal/ |
D | IShadow.java | 9 <T> T newInstanceOf(Class<T> clazz); in newInstanceOf() method
|