Home
last modified time | relevance | path

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

12

/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/health/rules/src/android/platform/test/rule/
DFinishActivitiesWithoutProcessKillRule.java42 private Context mContext; field in FinishActivitiesWithoutProcessKillRule
56 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in FinishActivitiesWithoutProcessKillRule()
82 mContext.getPackageManager().setApplicationEnabledSetting(mPkgName, in starting()
89 mContext.getPackageManager().setApplicationEnabledSetting(mPkgName, in starting()
/platform_testing/tests/functional/devicehealthtests/src/com/android/devicehealth/tests/
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()
DHealthCheckBase.java32 private Context mContext; field in HealthCheckBase
40 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in setUp()
50 DropBoxManager dropbox = (DropBoxManager) mContext in checkCrash()
/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/tests/functional/notificationtests/src/com/android/notification/functional/
DNotificationInlineReplyTests.java43 private Context mContext; field in NotificationInlineReplyTests
50 mContext = getInstrumentation().getContext(); in setUp()
51 mNotificationManager = (NotificationManager) mContext in setUp()
84 InputMethodManager imm = (InputMethodManager) mContext in testInLineNotificationWithLockScreen()
104 InputMethodManager imm = (InputMethodManager) mContext in testInLineNotificationsWithQuickSetting()
129 InputMethodManager imm = (InputMethodManager) mContext in testInlineReplyNotification()
DNotificationHelper.java77 private Context mContext = null; field in NotificationHelper
83 mContext = inst.getContext(); in NotificationHelper()
128 PendingIntent emptyIntent = PendingIntent.getBroadcast(mContext, 0, in sendNotification()
132 PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, in sendNotification()
135 Notification.Builder notification = new Notification.Builder(mContext) in sendNotification()
158 Notification.Builder notification = new Notification.Builder(mContext) in sendNotifications()
172 Notification childNotification = new Notification.Builder(mContext) in sendBundlingNotifications()
179 childNotification = new Notification.Builder(mContext) in sendBundlingNotifications()
186 Notification notification = new Notification.Builder(mContext) in sendBundlingNotifications()
248 KeyguardManager myKM = (KeyguardManager) mContext in unlockScreen()
[all …]
DNotificationSecurityTests.java34 private Context mContext; field in NotificationSecurityTests
41 mContext = getInstrumentation().getContext(); in setUp()
42 mNotificationManager = (NotificationManager) mContext in setUp()
DNotificationSecurityLargeTests.java39 private Context mContext; field in NotificationSecurityLargeTests
47 mContext = getInstrumentation().getContext(); in setUp()
48 mNotificationManager = (NotificationManager) mContext in setUp()
DHeadsUpNotificationTests.java44 private Context mContext; field in HeadsUpNotificationTests
51 mContext = getInstrumentation().getContext(); in setUp()
52 mNotificationManager = (NotificationManager) mContext in setUp()
78 InputMethodManager imm = (InputMethodManager) mContext in testHeadsUpNotificationInlineReply()
143 InputMethodManager imm = (InputMethodManager) mContext in testMultipleHeadsUpNotificationWithInlineReply()
179 mContext.startActivity(intent); in setAlarmNow()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/listener/
DBatteryTerminator.java38 private final Context mContext; field in BatteryTerminator
44 mContext = context; in BatteryTerminator()
52 mContext.registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in getBatteryLevel()
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/
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()
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()
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/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()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/listener/
DBatteryTerminatorTest.java47 @Mock private Context mContext; field in BatteryTerminatorTest
53 when(mContext.registerReceiver(any(), any())).thenReturn(mIntent); in setupListener()
57 mListener = new BatteryTerminator(mNotifier, args, mContext); in setupListener()
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchJankTestsHelper.java56 private Context mContext; field in UiBenchJankTestsHelper
61 mContext = context; in UiBenchJankTestsHelper()
87 mContext.startActivity(intent); in launchActivity()
106 mContext.getResources() in getEdgeSensitivity()
108 return mContext.getResources().getDimensionPixelSize(resId) + 1; in getEdgeSensitivity()
/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()
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.java73 @Mock private Context mContext; field in ProfileSuiteTest
103 mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_notScenarios()
111 mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_notSupportedRunner()
120 new ProfileSuite(BasicSuite.class, builder, mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_badRunnerBuilder()
127 mInstrumentation, mContext, new Bundle()); in testValidScenario_basic()
191 mContext, in testTimestampScheduling_respectsSchedule()
284 mContext, in testTimestampScheduling_respectsSuiteTimeout()
342 mContext, in testIndexedScheduling_respectsSchedule()
402 mContext, in testSequentialScheduling_respectsSchedule()
451 mContext, in testExtraArgs_registeredBeforeTest()
[all …]
/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()

12