/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/ |
D | NotificationDNDTests.java | 49 private Context mContext; field in NotificationDNDTests 59 mContext = getInstrumentation().getTargetContext(); in setUp() 60 mNotificationManager = (NotificationManager) mContext in setUp() 63 mResolver = mContext.getContentResolver(); in setUp() 65 mContext, new Handler(Looper.getMainLooper()), in setUp() 70 return new ZenModeHelper(mContext, Looper.getMainLooper(), cps); in setUp() 102 NotificationRecord nr = new NotificationRecord(mContext, in testDND() 105 ZenModeFiltering zF = new ZenModeFiltering(mContext); in testDND() 124 mHelper.showAppNotificationSettings(mContext); in testPriority() 132 NotificationRecord nr = new NotificationRecord(mContext, in testPriority() [all …]
|
D | NotificationInlineReplyTests.java | 36 private Context mContext; field in NotificationInlineReplyTests 43 mContext = getInstrumentation().getContext(); in setUp() 44 mNotificationManager = (NotificationManager) mContext in setUp() 77 InputMethodManager imm = (InputMethodManager) mContext in testInLineNotificationWithLockScreen() 97 InputMethodManager imm = (InputMethodManager) mContext in testInLineNotificationsWithQuickSetting()
|
D | NotificationInteractionTests.java | 48 private Context mContext; field in NotificationInteractionTests 58 mContext = getInstrumentation().getContext(); in setUp() 59 mNotificationManager = (NotificationManager) mContext in setUp() 127 .setPackageName(mContext.getPackageName())); in testDismissAll() 132 .setPackageName(mContext.getPackageName())); in testDismissAll() 162 .setPackageName(mContext.getPackageName())); in testNotificationShadeMetricsl() 201 .setPackageName(mContext.getPackageName())); in testNotificationShadeMetricsl() 210 .setPackageName(mContext.getPackageName())); in testNotificationShadeMetricsl() 235 .setPackageName(mContext.getPackageName())); in testNotificationClicks() 241 .setPackageName(mContext.getPackageName())); in testNotificationClicks() [all …]
|
D | NotificationSecurityTests.java | 34 private Context mContext; field in NotificationSecurityTests 41 mContext = getInstrumentation().getContext(); in setUp() 42 mNotificationManager = (NotificationManager) mContext in setUp()
|
D | NotificationHelper.java | 72 private Context mContext = null; field in NotificationHelper 78 mContext = inst.getContext(); in NotificationHelper() 177 PendingIntent emptyIntent = PendingIntent.getBroadcast(mContext, 0, in sendNotification() 180 PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0); in sendNotification() 182 Notification.Builder notification = new Notification.Builder(mContext) in sendNotification() 208 Notification.Builder notification = new Notification.Builder(mContext) in sendNotifications() 222 Notification childNotification = new Notification.Builder(mContext) in sendBundlingNotifications() 229 childNotification = new Notification.Builder(mContext) in sendBundlingNotifications() 236 Notification notification = new Notification.Builder(mContext) in sendBundlingNotifications() 298 KeyguardManager myKM = (KeyguardManager) mContext in unlockScreen() [all …]
|
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() 119 InputMethodManager imm = (InputMethodManager) mContext in testHeadsUpNotificationInlineReplyMulti() 158 mContext.startActivity(intent); in setAlarmNow()
|
D | NotificationSecurityLargeTests.java | 38 private Context mContext; field in NotificationSecurityLargeTests 45 mContext = getInstrumentation().getContext(); in setUp() 46 mNotificationManager = (NotificationManager) mContext in setUp()
|
D | NotificationBundlingTests.java | 42 private Context mContext; field in NotificationBundlingTests 49 mContext = getInstrumentation().getContext(); in setUp() 50 mNotificationManager = (NotificationManager) mContext in setUp()
|
/platform_testing/libraries/system-helpers/connectivity-helper/src/android/system/helpers/ |
D | ConnectivityHelper.java | 46 private Context mContext = null; field in ConnectivityHelper 50 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/tests/functional/devicehealthtests/src/com/android/devicehealth/tests/ |
D | HealthCheckBase.java | 27 private Context mContext; field in HealthCheckBase 31 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in setUp() 38 DropBoxManager dropbox = (DropBoxManager) mContext in checkCrash()
|
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/libraries/system-helpers/sysui-helper/src/android/system/helpers/ |
D | NotificationHelper.java | 51 private Context mContext = null; field in NotificationHelper 55 mContext = InstrumentationRegistry.getTargetContext(); in NotificationHelper() 104 Notification childNotification = new Notification.Builder(mContext) in sendBundlingNotifications() 113 childNotification = new Notification.Builder(mContext) in sendBundlingNotifications() 122 Notification notification = new Notification.Builder(mContext) in sendBundlingNotifications() 147 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()
|
D | LockscreenHelper.java | 51 private Context mContext = null; field in LockscreenHelper 59 mContext = InstrumentationRegistry.getTargetContext(); in LockscreenHelper() 177 KeyguardManager km = (KeyguardManager) mContext.getSystemService(Context.KEYGUARD_SERVICE); in isLockScreenEnabled()
|
/platform_testing/libraries/system-helpers/device-helper/src/android/system/helpers/ |
D | DeviceHelper.java | 39 private Context mContext = null; field in DeviceHelper 43 mContext = InstrumentationRegistry.getTargetContext(); in DeviceHelper() 57 WindowManager wm = (WindowManager) mContext.getSystemService( in isTablet()
|
/platform_testing/libraries/system-helpers/user-helper/src/android/system/helpers/ |
D | UserHelper.java | 34 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/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/ |
D | UiBenchJankTestsHelper.java | 58 private Context mContext; field in UiBenchJankTestsHelper 62 mContext = context; in UiBenchJankTestsHelper() 78 Intent intent = mContext.getPackageManager() in launchUiBench() 81 mContext.startActivity(intent); in launchUiBench()
|
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/ |
D | AccessibilityHelper.java | 46 private Context mContext = null; field in AccessibilityHelper 60 mContext = mInstrumentation.getTargetContext(); in AccessibilityHelper() 114 mSettingsHelper.launchSettingsPage(mContext, Settings.ACTION_ACCESSIBILITY_SETTINGS); in launchSpecificAccessibilitySetting() 121 mSettingsHelper.launchSettingsPage(mContext, in launchSpecificAccessibilitySetting()
|
/platform_testing/libraries/system-helpers/account-helper/src/android/system/helpers/ |
D | AccountHelper.java | 40 private Context mContext = null; field in AccountHelper 46 mContext = InstrumentationRegistry.getTargetContext(); in AccountHelper() 88 Account[] accounts = AccountManager.get(mContext).getAccounts(); in getRegisteredGoogleAccountOnDevice()
|
/platform_testing/libraries/system-helpers/activity-helper/src/android/system/helpers/ |
D | ActivityHelper.java | 49 private Context mContext = null; field in ActivityHelper 53 mContext = InstrumentationRegistry.getTargetContext(); in ActivityHelper() 197 Intent pkgIntent = mContext.getPackageManager() in launchPackage() 210 mContext.startActivity(intent); in launchIntent()
|
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/ |
D | UiBenchJankTestsHelper.java | 54 private Context mContext; field in UiBenchJankTestsHelper 59 mContext = context; in UiBenchJankTestsHelper() 82 mContext.startActivity(intent); in launchActivity()
|
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/ |
D | DispatchActivity.java | 34 private Context mContext; field in DispatchActivity 63 mContext = getApplicationContext(); in onCreate()
|
/platform_testing/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/ |
D | AppLaunchTests.java | 65 private Context mContext; field in AppLaunchTests 84 mContext = getInstrumentation().getTargetContext(); in setUp() 85 assertNotNull("Failed to get context", mContext); in setUp() 155 mContext.startActivity(intent); in testAppLaunchPerformance() 226 mPackageInfo = mContext.getPackageManager().getPackageInfo( in getActivityList()
|
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/ |
D | DownloadAppTestHelper.java | 55 private Context mContext = null; field in DownloadAppTestHelper 64 mContext = context; in DownloadAppTestHelper() 76 return (DownloadManager) mContext.getSystemService(Context.DOWNLOAD_SERVICE); in getDLManager() 165 AlarmManager am = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in changeSystemTime() 233 Uri downloadUri = mContext.getContentResolver() in addToDownloadContentDB()
|
/platform_testing/tests/functional/calculator/src/com/android/calculator/functional/ |
D | CalculatorTests.java | 37 private Context mContext; field in CalculatorTests 43 mContext = getInstrumentation().getContext(); in setUp() 46 mCalculatorHelper = CalculatorHelper.getInstance(mDevice, mContext); in setUp()
|