Home
last modified time | relevance | path

Searched refs:context (Results 1 – 11 of 11) sorted by relevance

/test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/internal/
DAppManager.kt25 internal class AppManager(private val context: Context) { constant in androidx.test.uiautomator.internal.AppManager
27 private val packageManager = context.packageManager
29 context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager
52 context.startActivity(intent) in startApp()
62 context.startActivity(intent) in startActivity()
72 context.startActivity(intent) in startActivity()
78 context.startActivity(intent) in startIntent()
DUtils.kt35 instrumentation.context.getSystemService(DISPLAY_SERVICE) as DisplayManager
/test/screenshot/screenshot/src/androidTest/java/androidx/test/screenshot/utils/
DBitmapUtils.kt24 val context = InstrumentationRegistry.getInstrumentation().targetContext.applicationContext in loadBitmap() constant
25 context.assets.open("$imageName.png").use { in loadBitmap()
/test/uiautomator/integration-tests/testapp/src/main/java/androidx/test/uiautomator/testapp/
DDrawingOrderTestActivity.java44 public Layout(@Nullable Context context, @Nullable AttributeSet attrs) { in Layout() argument
45 super(context, attrs); in Layout()
DDialogActivity.kt57 val context = LocalContext.current in DialogScreen() constant
68 AlertDialog.Builder(context) in DialogScreen()
/test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/
DBaseTest.java84 Context context = ApplicationProvider.getApplicationContext(); in launchTestActivity() local
85 context.startActivity(new Intent(intent).setClass(context, activity), options); in launchTestActivity()
DMultiDisplayTest.java168 Context context = ApplicationProvider.getApplicationContext(); in getDisplayIds() local
169 DisplayManager displayManager = context.getSystemService(DisplayManager.class); in getDisplayIds()
/test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/
DUiDevice.java321 Context context = getUiContext(Display.DEFAULT_DISPLAY); in getDisplaySizeDp() local
322 int densityDpi = context.getResources().getConfiguration().densityDpi; in getDisplaySizeDp()
1450 Context context = mUiContexts.get(displayId); in getUiContext() local
1451 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 …]
DGestureController.java88 Context context = instrumentation.getContext(); in GestureController() local
89 if (context.getPackageManager().hasSystemFeature("android.software.xr.immersive")) { in GestureController()
DUiAutomatorTestScope.kt71 private val appManager = AppManager(context = instrumentation.targetContext)
/test/screenshot/screenshot/src/main/java/androidx/test/screenshot/
DScreenshotTestRule.kt141 val context = InstrumentationRegistry.getInstrumentation().targetContext.applicationContext in fetchExpectedImage() constant
144 context.assets.open(goldenIdentifierResolver(goldenIdentifier)).use { in fetchExpectedImage()