Searched refs:context (Results 1 – 11 of 11) sorted by relevance
25 internal class AppManager(private val context: Context) { constant in androidx.test.uiautomator.internal.AppManager27 private val packageManager = context.packageManager29 context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager52 context.startActivity(intent) in startApp()62 context.startActivity(intent) in startActivity()72 context.startActivity(intent) in startActivity()78 context.startActivity(intent) in startIntent()
35 instrumentation.context.getSystemService(DISPLAY_SERVICE) as DisplayManager
24 val context = InstrumentationRegistry.getInstrumentation().targetContext.applicationContext in loadBitmap() constant25 context.assets.open("$imageName.png").use { in loadBitmap()
44 public Layout(@Nullable Context context, @Nullable AttributeSet attrs) { in Layout() argument45 super(context, attrs); in Layout()
57 val context = LocalContext.current in DialogScreen() constant68 AlertDialog.Builder(context) in DialogScreen()
84 Context context = ApplicationProvider.getApplicationContext(); in launchTestActivity() local85 context.startActivity(new Intent(intent).setClass(context, activity), options); in launchTestActivity()
168 Context context = ApplicationProvider.getApplicationContext(); in getDisplayIds() local169 DisplayManager displayManager = context.getSystemService(DisplayManager.class); in getDisplayIds()
321 Context context = getUiContext(Display.DEFAULT_DISPLAY); in getDisplaySizeDp() local322 int densityDpi = context.getResources().getConfiguration().densityDpi; in getDisplaySizeDp()1450 Context context = mUiContexts.get(displayId); in getUiContext() local1451 if (context == null) { in getUiContext()1455 context = Api31Impl.createWindowContext(mInstrumentation.getContext(), display); in getUiContext()1459 context = mInstrumentation.getContext(); in getUiContext()1462 context = mInstrumentation.getContext(); in getUiContext()1464 mUiContexts.put(displayId, context); in getUiContext()1466 return context; in getUiContext()1563 static Context createWindowContext(Context context, Display display) { in createWindowContext() argument[all …]
88 Context context = instrumentation.getContext(); in GestureController() local89 if (context.getPackageManager().hasSystemFeature("android.software.xr.immersive")) { in GestureController()
71 private val appManager = AppManager(context = instrumentation.targetContext)
141 val context = InstrumentationRegistry.getInstrumentation().targetContext.applicationContext in fetchExpectedImage() constant144 context.assets.open(goldenIdentifierResolver(goldenIdentifier)).use { in fetchExpectedImage()