Home | History | Annotate | Download | only in pm

Lines Matching refs:mContext

53     private Context mContext;
58 mContext = spy(new ContextWrapper(InstrumentationRegistry.getContext()));
59 mAction = new Intent(Intent.ACTION_VIEW).setPackage(mContext.getPackageName());
61 mBuilder = new ShortcutInfoCompat.Builder(mContext, "test-shortcut")
64 .setIcon(IconCompat.createWithResource(mContext, R.drawable.test_drawable_red));
70 mBuilder.setActivity(new ComponentName(mContext, TestActivity.class))
82 mBuilder.setActivity(new ComponentName(mContext, TestActivity.class))
90 verifyBadgeBitmap(intent, ContextCompat.getColor(mContext, R.color.test_red),
91 ContextCompat.getColor(mContext, R.color.test_blue));
96 ApplicationInfo appInfo = spy(mContext.getApplicationInfo());
97 doReturn(ContextCompat.getDrawable(mContext, R.drawable.test_drawable_green))
99 doReturn(appInfo).when(mContext).getApplicationInfo();
109 verifyBadgeBitmap(intent, ContextCompat.getColor(mContext, R.color.test_red),
110 ContextCompat.getColor(mContext, R.color.test_green));