Home
last modified time | relevance | path

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

123

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DBitmapTest.java24 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()
DPaintTest.java20 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()
DPathTest.java22 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()
DServiceTest.java3 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf;
45 ServiceConnection conn = Robolectric.newInstanceOf(MediaScannerConnection.class); in shouldUnbindServiceSuccessfully()
54 ServiceConnection conn = newInstanceOf(MediaScannerConnection.class); in shouldUnbindServiceWithExceptionWhenRequested()
DTelephonyManagerTest.java12 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf;
29 manager = newInstanceOf(TelephonyManager.class); in setUp()
DHandlerTest.java14 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()
DJsResultTest.java18 JsResult jsResult = Robolectric.newInstanceOf(JsResult.class); in shouldRecordCanceled()
DNetworkInfoTest.java18 NetworkInfo networkInfo = Robolectric.newInstanceOf(NetworkInfo.class); in getDetailedState_shouldReturnTheAssignedState()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowContentProviderOperation.java26 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()
DShadowResources.java26 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()
DShadowCameraParameters.java29 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()
DShadowBitmap.java40 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()
DShadowDrawable.java44 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()
DShadowAppWidgetManager.java21 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf;
145 AppWidgetProvider appWidgetProvider = newInstanceOf(appWidgetProviderClass); in createWidgets()
161 AppWidgetProvider appWidgetProvider = newInstanceOf(appWidgetProviderClass); in createWidgetProvider()
DShadowCamera.java41 return Robolectric.newInstanceOf(Camera.class); in open()
57 parameters = Robolectric.newInstanceOf(Camera.Parameters.class); in getParameters()
DShadowAndroidHttpClient.java32 return Robolectric.newInstanceOf(AndroidHttpClient.class); in newInstance()
37 return Robolectric.newInstanceOf(AndroidHttpClient.class); in newInstance()
DShadowCanvas.java10 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf;
26 private Bitmap targetBitmap = newInstanceOf(Bitmap.class);
DShadowWifiManager.java48 wifiInfo = Robolectric.newInstanceOf(WifiInfo.class); in getConnectionInfo()
105 return Robolectric.newInstanceOf(WifiManager.WifiLock.class); in createWifiLock()
DShadowJsPromptResult.java11 return Robolectric.newInstanceOf(JsPromptResult.class); in newInstance()
DShadowKeyguardManager.java16 …private KeyguardManager.KeyguardLock keyguardLock = Robolectric.newInstanceOf(KeyguardManager.Keyg…
DShadowCookieSyncManager.java23 sRef = Robolectric.newInstanceOf(CookieSyncManager.class); in createInstance()
DShadowSQLiteDatabase.java23 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/
DAppSingletonizer.java7 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf;
33 return newInstanceOf(clazz); in createInstance()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/view/
DTestWindowManager.java10 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/
DRobolectric.java81 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()

123