/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/sts-common-util/sts-sdk/package/test-app/src/main/java/android/security/sts/sts_test_app_package/ |
D | DeviceTest.java | 47 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/libraries/health/rules/src/android/platform/test/rule/ |
D | FinishActivitiesWithoutProcessKillRule.java | 42 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/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/device-collectors/src/hostsidetests/src/com/android/collectors/ |
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 | 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 | 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/health/runners/longevity/platform/src/android/platform/test/longevity/listener/ |
D | BatteryTerminator.java | 39 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/ |
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/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/ |
D | ValidatingResourceParser.java | 39 private final ScanningContext mContext; field in ValidatingResourceParser 51 mContext = context; in ValidatingResourceParser() 74 if (mContext.needsFullAapt()) { in parse()
|
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/listener/ |
D | BatteryTerminatorTest.java | 48 @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/tests/jank/uibench/src/com/android/uibench/janktests/ |
D | UiBenchJankTestsHelper.java | 57 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/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 | ThemeHelper.java | 51 @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()
|
/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 | 75 @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/ |
D | SettingsDisplayHelperImpl.java | 41 private Context mContext; field in SettingsDisplayHelperImpl 45 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in SettingsDisplayHelperImpl() 104 mContext.getContentResolver(), Settings.System.SCREEN_BRIGHTNESS_MODE); in isAdaptiveBrightnessEnabled()
|