/platform_testing/libraries/system-helpers/connectivity-helper/src/android/system/helpers/ |
D | ConnectivityHelper.java | 48 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/ |
D | FinishActivitiesWithoutProcessKillRule.java | 42 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/ |
D | SensorsBootCheck.java | 37 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()
|
D | HealthCheckBase.java | 32 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/ |
D | SensorsBootCheck.java | 37 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/ |
D | NotificationInlineReplyTests.java | 43 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()
|
D | NotificationHelper.java | 77 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 …]
|
D | NotificationSecurityTests.java | 34 private Context mContext; field in NotificationSecurityTests 41 mContext = getInstrumentation().getContext(); in setUp() 42 mNotificationManager = (NotificationManager) mContext in setUp()
|
D | NotificationSecurityLargeTests.java | 39 private Context mContext; field in NotificationSecurityLargeTests 47 mContext = getInstrumentation().getContext(); in setUp() 48 mNotificationManager = (NotificationManager) mContext in setUp()
|
D | HeadsUpNotificationTests.java | 44 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/ |
D | BatteryTerminator.java | 38 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/ |
D | ScreenshotOnFailureCollectorHostTest.java | 60 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()
|
D | LogcatCollectorHostTest.java | 61 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()
|
D | BatterystatsCollectorHostTest.java | 69 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/ |
D | DeviceFileLoggerHostTest.java | 55 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/ |
D | UserHelper.java | 36 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/ |
D | DeviceHelper.java | 40 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/ |
D | BackgroundTranscodingStressTestMode.java | 42 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/ |
D | BatteryTerminatorTest.java | 47 @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/ |
D | UiBenchJankTestsHelper.java | 56 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/ |
D | NotificationHelper.java | 45 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()
|
D | HotseatHelper.java | 37 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/ |
D | LongevitySuiteTest.java | 56 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()
|
D | ProfileSuiteTest.java | 73 @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/ |
D | AccountHelper.java | 38 private Context mContext = null; field in AccountHelper 44 mContext = InstrumentationRegistry.getTargetContext(); in AccountHelper() 86 Account[] accounts = AccountManager.get(mContext).getAccounts(); in getRegisteredGoogleAccountOnDevice()
|