/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | BitmapTest.java | 24 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class); in shouldCreateScaledBitmap() 46 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class); in shouldCreateBitmapFromAnotherBitmap() 82 Bitmap bitmap1 = Robolectric.newInstanceOf(Bitmap.class); in shouldReceiveDescriptionWhenDrawingToCanvas() 85 Bitmap bitmap2 = Robolectric.newInstanceOf(Bitmap.class); in shouldReceiveDescriptionWhenDrawingToCanvas() 96 Bitmap bitmap1 = Robolectric.newInstanceOf(Bitmap.class); in shouldReceiveDescriptionWhenDrawingToCanvasWithBitmapAndMatrixAndPaint() 99 Bitmap bitmap2 = Robolectric.newInstanceOf(Bitmap.class); in shouldReceiveDescriptionWhenDrawingToCanvasWithBitmapAndMatrixAndPaint() 110 Bitmap bitmap1 = Robolectric.newInstanceOf(Bitmap.class); in shouldReceiveDescriptionWhenDrawABitmapToCanvasWithAPaintEffect() 113 Bitmap bitmap2 = Robolectric.newInstanceOf(Bitmap.class); in shouldReceiveDescriptionWhenDrawABitmapToCanvasWithAPaintEffect() 126 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); in visualize_shouldReturnDescription() 135 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); in shouldCopyBitmap()
|
D | PaintTest.java | 20 Paint paint = Robolectric.newInstanceOf(Paint.class); in shouldGetIsDitherInfo() 29 Paint paint = Robolectric.newInstanceOf(Paint.class); in shouldGetIsAntiAlias() 38 Paint paint = Robolectric.newInstanceOf(Paint.class); in testCtor()
|
D | PathTest.java | 22 Path path = Robolectric.newInstanceOf(Path.class); in testGradTo() 30 Path path = Robolectric.newInstanceOf(Path.class); in testMoveTo() 42 Path path = Robolectric.newInstanceOf(Path.class); in testLineTo()
|
D | ServiceTest.java | 3 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf; 45 ServiceConnection conn = Robolectric.newInstanceOf(MediaScannerConnection.class); in shouldUnbindServiceSuccessfully() 54 ServiceConnection conn = newInstanceOf(MediaScannerConnection.class); in shouldUnbindServiceWithExceptionWhenRequested()
|
D | TelephonyManagerTest.java | 12 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf; 29 manager = newInstanceOf(TelephonyManager.class); in setUp()
|
D | HandlerTest.java | 14 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf; 47 Looper looper = newInstanceOf(Looper.class); in testInsertsRunnablesBasedOnLooper() 75 Looper looper1 = Robolectric.newInstanceOf(Looper.class); in testDifferentLoopersGetDifferentQueues() 78 Looper looper2 = Robolectric.newInstanceOf(Looper.class); in testDifferentLoopersGetDifferentQueues()
|
D | JsResultTest.java | 18 JsResult jsResult = Robolectric.newInstanceOf(JsResult.class); in shouldRecordCanceled()
|
D | NetworkInfoTest.java | 18 NetworkInfo networkInfo = Robolectric.newInstanceOf(NetworkInfo.class); in getDetailedState_shouldReturnTheAssignedState()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowContentProviderOperation.java | 26 Builder builder = Robolectric.newInstanceOf(Builder.class); in newInsert() 35 Builder builder = Robolectric.newInstanceOf(Builder.class); in newUpdate() 44 Builder builder = Robolectric.newInstanceOf(Builder.class); in newDelete()
|
D | ShadowResources.java | 26 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf; 142 display = Robolectric.newInstanceOf(Display.class); in getDisplayMetrics() 205 … return ShadowAssetManager.bind(Robolectric.newInstanceOf(AssetManager.class), resourceLoader); in getAssets() 210 return newInstanceOf(Resources.Theme.class); in newTheme() 229 return newInstanceOf(TypedArray.class); in obtainStyledAttributes()
|
D | ShadowCameraParameters.java | 29 Camera.Size pictureSize = Robolectric.newInstanceOf(Camera.class).new Size(0, 0); in getPictureSize() 53 Camera.Size previewSize = Robolectric.newInstanceOf(Camera.class).new Size(0, 0); in getPreviewSize() 154 Camera.Size newSize = Robolectric.newInstanceOf(Camera.class).new Size(0, 0); in addSize()
|
D | ShadowBitmap.java | 40 Bitmap scaledBitmap = Robolectric.newInstanceOf(Bitmap.class); in createBitmap() 58 Bitmap scaledBitmap = Robolectric.newInstanceOf(Bitmap.class); in createScaledBitmap() 119 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); in create()
|
D | ShadowDrawable.java | 44 BitmapDrawable drawable = new BitmapDrawable(Robolectric.newInstanceOf(Bitmap.class)); in createFromStream() 62 BitmapDrawable drawable = new BitmapDrawable(Robolectric.newInstanceOf(Bitmap.class)); in createFromPath() 68 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); in createFromResourceId()
|
D | ShadowAppWidgetManager.java | 21 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf; 145 AppWidgetProvider appWidgetProvider = newInstanceOf(appWidgetProviderClass); in createWidgets() 161 AppWidgetProvider appWidgetProvider = newInstanceOf(appWidgetProviderClass); in createWidgetProvider()
|
D | ShadowCamera.java | 41 return Robolectric.newInstanceOf(Camera.class); in open() 57 parameters = Robolectric.newInstanceOf(Camera.Parameters.class); in getParameters()
|
D | ShadowAndroidHttpClient.java | 32 return Robolectric.newInstanceOf(AndroidHttpClient.class); in newInstance() 37 return Robolectric.newInstanceOf(AndroidHttpClient.class); in newInstance()
|
D | ShadowCanvas.java | 10 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf; 26 private Bitmap targetBitmap = newInstanceOf(Bitmap.class);
|
D | ShadowWifiManager.java | 48 wifiInfo = Robolectric.newInstanceOf(WifiInfo.class); in getConnectionInfo() 105 return Robolectric.newInstanceOf(WifiManager.WifiLock.class); in createWifiLock()
|
D | ShadowJsPromptResult.java | 11 return Robolectric.newInstanceOf(JsPromptResult.class); in newInstance()
|
D | ShadowKeyguardManager.java | 16 …private KeyguardManager.KeyguardLock keyguardLock = Robolectric.newInstanceOf(KeyguardManager.Keyg…
|
D | ShadowCookieSyncManager.java | 23 sRef = Robolectric.newInstanceOf(CookieSyncManager.class); in createInstance()
|
D | ShadowSQLiteDatabase.java | 23 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf; 68 return newInstanceOf(SQLiteDatabase.class); in openDatabase() 350 SQLiteStatement stmt = Robolectric.newInstanceOf(SQLiteStatement.class);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/internal/ |
D | AppSingletonizer.java | 7 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf; 33 return newInstanceOf(clazz); in createInstance()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/view/ |
D | TestWindowManager.java | 10 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf; 34 return display == null ? display = newInstanceOf(Display.class) : display; in getDefaultDisplay()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/ |
D | Robolectric.java | 81 public static <T> T newInstanceOf(Class<T> clazz) { in newInstanceOf() method in Robolectric 82 return RobolectricInternals.newInstanceOf(clazz); in newInstanceOf() 85 public static Object newInstanceOf(String className) { in newInstanceOf() method in Robolectric 89 return newInstanceOf(clazz); in newInstanceOf() 1290 public static <T> T newInstanceOf(Class<T> clazz) { in newInstanceOf() method in Robolectric.Reflection 1291 return Robolectric.newInstanceOf(clazz); in newInstanceOf() 1294 public static Object newInstanceOf(String className) { in newInstanceOf() method in Robolectric.Reflection 1295 return Robolectric.newInstanceOf(className); in newInstanceOf()
|