Home
last modified time | relevance | path

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

12

/platform_testing/libraries/system-helpers/connectivity-helper/src/android/system/helpers/
DConnectivityHelper.java47 private Context mContext = null; field in ConnectivityHelper
50 mContext = InstrumentationRegistry.getTargetContext(); in ConnectivityHelper()
61 return (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in getTelecomManager()
65 return (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in getWifiManager()
69 return (ConnectivityManager) (ConnectivityManager) mContext in getConnectivityManager()
74 return (DownloadManager) (DownloadManager) mContext in getDownloadManager()
171 TelephonyManager telMgr = (TelephonyManager) mContext in hasDeviceSim()
172 .getSystemService(mContext.TELEPHONY_SERVICE); in hasDeviceSim()
/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()
DCrashCheckBase.java32 private Context mContext; field in CrashCheckBase
40 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in setUp()
50 DropBoxManager dropbox = (DropBoxManager) mContext in checkCrash()
/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.java31 private Context mContext; field in HealthCheckBase
39 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in setUp()
49 DropBoxManager dropbox = (DropBoxManager) mContext in checkCrash()
/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/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()
131 PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0); in sendNotification()
133 Notification.Builder notification = new Notification.Builder(mContext) in sendNotification()
156 Notification.Builder notification = new Notification.Builder(mContext) in sendNotifications()
170 Notification childNotification = new Notification.Builder(mContext) in sendBundlingNotifications()
177 childNotification = new Notification.Builder(mContext) in sendBundlingNotifications()
184 Notification notification = new Notification.Builder(mContext) in sendBundlingNotifications()
246 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()
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()
119 InputMethodManager imm = (InputMethodManager) mContext in testMultipleHeadsUpNotificationWithInlineReply()
158 mContext.startActivity(intent); in setAlarmNow()
DNotificationSecurityLargeTests.java39 private Context mContext; field in NotificationSecurityLargeTests
47 mContext = getInstrumentation().getContext(); in setUp()
48 mNotificationManager = (NotificationManager) mContext in setUp()
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/
DLogcatOnFailureCollectorHostTest.java61 private IInvocationContext mContext; field in LogcatOnFailureCollectorHostTest
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/aoa-helper/src/com/android/helper/aoa/
DUsbHelper.java51 private Pointer mContext; field in UsbHelper
65 mContext = context.getValue(); in UsbHelper()
195 if (mContext != null) { in close()
196 mUsb.libusb_exit(mContext); in close()
197 mContext = null; in close()
209 this.count = checkResult(mUsb.libusb_get_device_list(checkNotNull(mContext), list)); in DeviceList()
/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/device-helper/src/android/system/helpers/
DDeviceHelper.java39 private Context mContext = null; field in DeviceHelper
43 mContext = InstrumentationRegistry.getTargetContext(); in DeviceHelper()
57 WindowManager wm = (WindowManager) mContext.getSystemService( in isTablet()
/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/libraries/system-helpers/user-helper/src/android/system/helpers/
DUserHelper.java34 private Context mContext = null; field in UserHelper
40 mContext = InstrumentationRegistry.getTargetContext(); in UserHelper()
51 return (UserManager)mContext.getSystemService(Context.USER_SERVICE); in getUserManager()
/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()
78 mContext, in testDeviceWithBattery_registersReceiver()
96 mContext, in testDeviceWithoutBattery_doesNotRegisterReceiver()
115 mContext, in testReportingIteration_notSet()
150 mContext, in testReportingIteration_set()
197 mContext, in testThrowingErrorReportingRunnerCauses()
DProfileSuiteTest.java67 @Mock private Context mContext; field in ProfileSuiteTest
85 mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_notScenarios()
93 mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_notSupportedRunner()
102 new ProfileSuite(BasicSuite.class, builder, mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_badRunnerBuilder()
109 mInstrumentation, mContext, new Bundle()); in testValidScenario_basic()
173 mContext, in testTimestampScheduling_respectsSchedule()
266 mContext, in testTimestampScheduling_respectsSuiteTimeout()
324 mContext, in testIndexedScheduling_respectsSchedule()
/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.java44 private Context mContext = null; field in NotificationHelper
49 mContext = InstrumentationRegistry.getTargetContext(); in NotificationHelper()
142 Notification childNotification = new Notification.Builder(mContext) in sendBundlingNotifications()
152 childNotification = new Notification.Builder(mContext) in sendBundlingNotifications()
162 Notification notification = new Notification.Builder(mContext) in sendBundlingNotifications()
189 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/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
DUiBenchJankTestsHelper.java58 private Context mContext; field in UiBenchJankTestsHelper
62 mContext = context; in UiBenchJankTestsHelper()
78 Intent intent = mContext.getPackageManager() in launchUiBench()
81 mContext.startActivity(intent); in launchUiBench()

12