Home
last modified time | relevance | path

Searched refs:mContext (Results 1 – 25 of 51) sorted by relevance

123

/platform_testing/libraries/system-helpers/connectivity-helper/src/android/system/helpers/
DConnectivityHelper.java48 private Context mContext = null; field in ConnectivityHelper
51 mContext = InstrumentationRegistry.getTargetContext(); in ConnectivityHelper()
62 return (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in getTelecomManager()
66 return (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in getWifiManager()
70 return (ConnectivityManager) (ConnectivityManager) mContext in getConnectivityManager()
75 return (DownloadManager) (DownloadManager) mContext in getDownloadManager()
172 TelephonyManager telMgr = (TelephonyManager) mContext in hasDeviceSim()
173 .getSystemService(mContext.TELEPHONY_SERVICE); in hasDeviceSim()
/platform_testing/libraries/sts-common-util/sts-sdk/package/test-app/src/main/java/android/security/sts/sts_test_app_package/
DDeviceTest.java47 Context mContext; field in DeviceTest
57 mContext = getApplicationContext(); in testDeviceSideMethod()
82 mContext.registerReceiver(broadcastReceiver, filter); in testDeviceSideMethod()
87 Intent newActivityIntent = new Intent(mContext, PocActivity.class); in testDeviceSideMethod()
90 mContext.startActivity(newActivityIntent); in testDeviceSideMethod()
/platform_testing/tests/automotive/functional/lockscreen/src/android/platform/tests/
DLockScreenTest.java47 private final Context mContext; field in LockScreenTest
54 mContext = ApplicationProvider.getApplicationContext(); in LockScreenTest()
61 mContext.getContentResolver(), in openSecuritySettingFacet()
65 mContext.getContentResolver(), in openSecuritySettingFacet()
78 mContext.getContentResolver(), in goBackToSettingsScreen()
/platform_testing/tests/functional/devicehealthchecks/src/com/android/devicehealthchecks/
DSensorsBootCheck.java37 private Context mContext; field in SensorsBootCheck
43 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in setUp()
60 mPackageManager = mContext.getPackageManager(); in checkSensors()
63 mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); in checkSensors()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DFinishActivitiesWithoutProcessKillRule.java42 private Context mContext; field in FinishActivitiesWithoutProcessKillRule
62 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in FinishActivitiesWithoutProcessKillRule()
91 mContext.getPackageManager().setApplicationEnabledSetting(mPkgName, in starting()
100 mContext.getPackageManager().setApplicationEnabledSetting(mPkgName, in starting()
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/
DLogcatCollectorHostTest.java61 private IInvocationContext mContext; field in LogcatCollectorHostTest
74 mContext = mock(IInvocationContext.class); in setUp()
75 doReturn(Arrays.asList(getDevice())).when(mContext).getDevices(); in setUp()
76 doReturn(Arrays.asList(getBuild())).when(mContext).getBuildInfos(); in setUp()
85 collector.init(mContext, new CollectingTestListener()); in testCollect()
DScreenshotOnFailureCollectorHostTest.java60 private IInvocationContext mContext; field in ScreenshotOnFailureCollectorHostTest
69 mContext = mock(IInvocationContext.class); in setUp()
70 doReturn(Arrays.asList(getDevice())).when(mContext).getDevices(); in setUp()
71 doReturn(Arrays.asList(getBuild())).when(mContext).getBuildInfos(); in setUp()
109 collector.init(mContext, listener); in testScreenshotListener()
DBatterystatsCollectorHostTest.java69 private IInvocationContext mContext; field in BatterystatsCollectorHostTest
77 mContext = mock(IInvocationContext.class); in setUp()
78 doReturn(Arrays.asList(getDevice())).when(mContext).getDevices(); in setUp()
79 doReturn(Arrays.asList(getBuild())).when(mContext).getBuildInfos(); in setUp()
119 collector.init(mContext, listener); in testBatteryStatsListener_perRun()
166 collector.init(mContext, listener); in testBatteryStatsListener_perTest()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/listener/
DBatteryTerminator.java39 private final Context mContext; field in BatteryTerminator
45 mContext = context; in BatteryTerminator()
53 mContext.registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in getBatteryLevel()
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/loggers/
DDeviceFileLoggerHostTest.java55 private IInvocationContext mContext; field in DeviceFileLoggerHostTest
65 mContext = mock(IInvocationContext.class); in setUp()
66 doReturn(Arrays.asList(getDevice())).when(mContext).getDevices(); in setUp()
67 doReturn(Arrays.asList(getBuild())).when(mContext).getBuildInfos(); in setUp()
/platform_testing/libraries/system-helpers/user-helper/src/android/system/helpers/
DUserHelper.java36 private Context mContext = null; field in UserHelper
42 mContext = InstrumentationRegistry.getTargetContext(); in UserHelper()
53 return (UserManager)mContext.getSystemService(Context.USER_SERVICE); in getUserManager()
/platform_testing/libraries/system-helpers/device-helper/src/android/system/helpers/
DDeviceHelper.java40 private Context mContext = null; field in DeviceHelper
44 mContext = InstrumentationRegistry.getTargetContext(); in DeviceHelper()
58 WindowManager wm = (WindowManager) mContext.getSystemService( in isTablet()
/platform_testing/libraries/device-collectors/src/main/java/android/device/stressmodes/
DBackgroundTranscodingStressTestMode.java42 private Context mContext; field in BackgroundTranscodingStressTestMode
54 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in BackgroundTranscodingStressTestMode()
58 mMediaTranscodingManager = mContext.getSystemService(MediaTranscodingManager.class); in BackgroundTranscodingStressTestMode()
75 + mContext.getCacheDir().getAbsolutePath() in testStarted()
DIOContentionStressTestMode.java46 private Context mContext; field in IOContentionStressTestMode
53 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in IOContentionStressTestMode()
57 mContentResolver = mContext.getContentResolver(); in IOContentionStressTestMode()
73 + mContext.getCacheDir().getAbsolutePath() in doCopyFile()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/listener/
DBatteryTerminatorTest.java48 @Mock private Context mContext; field in BatteryTerminatorTest
54 when(mContext.registerReceiver(any(), any())).thenReturn(mIntent); in setupListener()
58 mListener = new BatteryTerminator(mNotifier, args, mContext); in setupListener()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/
DValidatingResourceParser.java39 private final ScanningContext mContext; field in ValidatingResourceParser
51 mContext = context; in ValidatingResourceParser()
74 if (mContext.needsFullAapt()) { in parse()
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchJankTestsHelper.java57 private Context mContext; field in UiBenchJankTestsHelper
62 mContext = context; in UiBenchJankTestsHelper()
88 mContext.startActivity(intent); in launchActivity()
107 mContext.getResources() in getEdgeSensitivity()
109 return mContext.getResources().getDimensionPixelSize(resId) + 1; in getEdgeSensitivity()
/platform_testing/libraries/sts-common-util/device-side/src/com/android/sts/common/
DLockSettingsUtil.java28 private Context mContext; field in LockSettingsUtil
42 mContext = context; in LockSettingsUtil()
130 KeyguardManager keyguardManager = mContext.getSystemService(KeyguardManager.class); in withLockScreen()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DNotificationHelper.java45 private Context mContext = null; field in NotificationHelper
50 mContext = InstrumentationRegistry.getTargetContext(); in NotificationHelper()
143 Notification childNotification = new Notification.Builder(mContext) in sendBundlingNotifications()
153 childNotification = new Notification.Builder(mContext) in sendBundlingNotifications()
163 Notification notification = new Notification.Builder(mContext) in sendBundlingNotifications()
190 Notification.Builder n = new Notification.Builder(mContext) in sendNotificationsWithInLineReply()
DThemeHelper.java51 @NonNull private final Context mContext; field in ThemeHelper
56 mContext = context; in ThemeHelper()
58 Objects.requireNonNull(mContext.getSystemService(WallpaperManager.class)); in ThemeHelper()
130 File f = new File(mContext.getFilesDir(), filename); in takeScreenshotToFile()
172 return Color.valueOf(mContext.getColor(android.R.color.system_accent1_100)); in getSysuiActivatedThemeColor()
DHotseatHelper.java37 private Context mContext = null; field in HotseatHelper
42 mContext = InstrumentationRegistry.getTargetContext(); in HotseatHelper()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DLongevitySuiteTest.java56 private final Context mContext = Mockito.mock(Context.class); field in LongevitySuiteTest
66 when(mContext.registerReceiver(any(), any())).thenReturn(mBatteryIntent); in setUp()
79 mContext, in testDeviceWithBattery_registersReceiver()
98 mContext, in testDeviceWithoutBattery_doesNotRegisterReceiver()
118 mContext, in testReportingIteration_notSet()
154 mContext, in testReportingIteration_set()
197 mContext, in testAdditionalRunners()
251 mContext, in testThrowingErrorReportingRunnerCauses()
DProfileSuiteTest.java75 @Mock private Context mContext; field in ProfileSuiteTest
105 mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_notScenarios()
113 mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_notSupportedRunner()
122 new ProfileSuite(BasicSuite.class, builder, mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_badRunnerBuilder()
129 mInstrumentation, mContext, new Bundle()); in testValidScenario_basic()
193 mContext, in testTimestampScheduling_respectsSchedule()
286 mContext, in testTimestampScheduling_respectsSuiteTimeout()
344 mContext, in testIndexedScheduling_respectsSchedule()
404 mContext, in testSequentialScheduling_respectsSchedule()
453 mContext, in testExtraArgs_registeredBeforeTest()
[all …]
/platform_testing/libraries/automotive-helpers/settings-app-helper/src/android/platform/helpers/
DSettingsDisplayHelperImpl.java41 private Context mContext; field in SettingsDisplayHelperImpl
45 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in SettingsDisplayHelperImpl()
104 mContext.getContentResolver(), Settings.System.SCREEN_BRIGHTNESS_MODE); in isAdaptiveBrightnessEnabled()
/platform_testing/libraries/system-helpers/account-helper/src/android/system/helpers/
DAccountHelper.java38 private Context mContext = null; field in AccountHelper
44 mContext = InstrumentationRegistry.getTargetContext(); in AccountHelper()
86 Account[] accounts = AccountManager.get(mContext).getAccounts(); in getRegisteredGoogleAccountOnDevice()

123