Home
last modified time | relevance | path

Searched refs:Context (Results 1 – 25 of 53) sorted by relevance

123

/platform_testing/tests/functional/otatests/src/com/android/functional/otatests/
DPackageProcessTest.java20 import android.content.Context;
36 private Context mMockContext;
37 private Context mContext;
42 private Context mInternal;
44 public PackageProcessMockContext(Context base) { in PackageProcessMockContext()
51 if (name.equals(Context.POWER_SERVICE)) { in getSystemService()
/platform_testing/tests/androidbvt/src/com/android/androidbvt/
DAndroidBvtHelper.java21 import android.content.Context;
49 private Context mContext = null;
53 public AndroidBvtHelper(UiDevice device, Context context, UiAutomation uiAutomation) { in AndroidBvtHelper()
59 public static AndroidBvtHelper getInstance(UiDevice device, Context context, in getInstance()
68 return (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in getTelecomManager()
72 return (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in getWifiManager()
77 .getSystemService(Context.CONNECTIVITY_SERVICE); in getConnectivityManager()
82 .getSystemService(Context.DOWNLOAD_SERVICE); in getDownloadManager()
114 Context.WINDOW_SERVICE); in isTablet()
DFrameworkDownloadTests.java23 import android.content.Context;
49 private Context mContext = null;
122 .getSystemService(Context.DOWNLOAD_SERVICE); in removeAllCurrentDownloads()
151 public void onReceive(Context context, Intent intent) { in onReceive()
DSysUILockScreenTests.java20 import android.content.Context;
45 private Context mContext;
191 private void launchSettingsPage(Context ctx, String pageName) throws Exception { in launchSettingsPage()
211 KeyguardManager km = (KeyguardManager) mContext.getSystemService(Context.KEYGUARD_SERVICE); in isLockScreenEnabled()
DSysUIMultiUserTests.java20 import android.content.Context;
38 private Context mContext = null;
DSysUINotificationShadeTests.java25 import android.content.Context;
64 private Context mContext;
95 .getSystemService(Context.NOTIFICATION_SERVICE); in setUp()
179 .getSystemService(Context.INPUT_METHOD_SERVICE); in verifyInlineAndDimissNotification()
311 public static PendingIntent getPendingIntent(Context context, String text) { in getPendingIntent()
DSysUIMultiWindowTests.java20 import android.content.Context;
42 private Context mContext = null;
/platform_testing/tests/functional/launchertests/src/com/android/launcher/functional/
DHotseatHelper.java20 import android.content.Context;
40 private Context mContext;
43 private HotseatHelper(UiDevice device, Context context) { in HotseatHelper()
48 public static HotseatHelper getInstance(UiDevice device, Context context) { in getInstance()
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
DNotificationInlineReplyTests.java20 import android.content.Context;
36 private Context mContext;
45 .getSystemService(Context.NOTIFICATION_SERVICE); in setUp()
78 .getSystemService(Context.INPUT_METHOD_SERVICE); in testInLineNotificationWithLockScreen()
98 .getSystemService(Context.INPUT_METHOD_SERVICE); in testInLineNotificationsWithQuickSetting()
DNotificationSecurityTests.java21 import android.content.Context;
34 private Context mContext;
43 .getSystemService(Context.NOTIFICATION_SERVICE); in setUp()
DNotificationSecurityLargeTests.java21 import android.content.Context;
38 private Context mContext;
47 .getSystemService(Context.NOTIFICATION_SERVICE); in setUp()
DHeadsUpNotificationTests.java20 import android.content.Context;
44 private Context mContext;
53 .getSystemService(Context.NOTIFICATION_SERVICE); in setUp()
79 .getSystemService(Context.INPUT_METHOD_SERVICE); in testHeadsUpNotificationInlineReply()
120 .getSystemService(Context.INPUT_METHOD_SERVICE); in testHeadsUpNotificationInlineReplyMulti()
DNotificationInteractionTests.java20 import android.content.Context;
40 private Context mContext;
51 .getSystemService(Context.NOTIFICATION_SERVICE); in setUp()
DNotificationBundlingTests.java20 import android.content.Context;
42 private Context mContext;
51 .getSystemService(Context.NOTIFICATION_SERVICE); in setUp()
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchJankTestsHelper.java20 import android.content.Context;
43 private Context mContext;
46 private UiBenchJankTestsHelper(Context context, UiDevice device) { in UiBenchJankTestsHelper()
51 public static UiBenchJankTestsHelper getInstance(Context context, UiDevice device) { in getInstance()
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/helper/
DSimpleGLSurfaceView.java19 import android.content.Context;
32 public SimpleGLSurfaceView(Context context) { in SimpleGLSurfaceView()
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
DUiBenchJankTestsHelper.java20 import android.content.Context;
52 private Context mContext;
54 private UiBenchJankTestsHelper(UiDevice device, Context context) { in UiBenchJankTestsHelper()
63 public static UiBenchJankTestsHelper getInstance(UiDevice device, Context context) { in getInstance()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DAuptTestCase.java40 import android.content.Context;
90 public enum Context { FOREGROUND, BACKGROUND }; enum in AuptTestCase.MemHealthRecord
96 private final Context mContext;
99 Context context) { in MemHealthRecord()
110 if (Context.FOREGROUND.equals(sample.mContext)) { in getForegroundDalvikHeap()
120 if (Context.BACKGROUND.equals(sample.mContext)) { in getBackgroundDalvikHeap()
130 if (Context.FOREGROUND.equals(sample.mContext)) { in getForegroundNativeHeap()
140 if (Context.BACKGROUND.equals(sample.mContext)) { in getBackgroundNativeHeap()
150 if (Context.FOREGROUND.equals(sample.mContext)) { in getForegroundPss()
160 if (Context.BACKGROUND.equals(sample.mContext)) { in getBackgroundPss()
[all …]
/platform_testing/tests/functional/settingstests/src/com/android/settings/functional/
DBluetoothNetworkSettingsTests.java20 import android.content.Context;
109 .getSystemService(Context.BLUETOOTH_SERVICE)).getAdapter(); in verifyBluetoothOverflowOptions()
137 .getSystemService(Context.BLUETOOTH_SERVICE)).getAdapter(); in verifyBluetoothOnOrOff()
DMainSettingsTests.java19 import android.content.Context;
53 private Context mContext = null;
114 .getSystemService(Context.INPUT_METHOD_SERVICE); in testSearchSetting()
DMainSettingsLargeTests.java19 import android.content.Context;
49 private Context mContext = null;
/platform_testing/tests/jank/sysapp_wear/src/com/android/wearable/sysapp/janktests/
DAppLauncherFlingJankTest.java18 import android.content.Context;
54 getContext().getSystemService(Context.POWER_SERVICE); in setUp()
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTestHelper.java24 import android.content.Context;
55 private Context mContext = null;
62 private DownloadAppTestHelper(UiDevice device, Context context) { in DownloadAppTestHelper()
68 public static DownloadAppTestHelper getInstance(UiDevice device, Context context) { in getInstance()
76 return (DownloadManager) mContext.getSystemService(Context.DOWNLOAD_SERVICE); in getDLManager()
165 AlarmManager am = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in changeSystemTime()
/platform_testing/tests/functional/appsmoke/src/android/test/appsmoke/
DAppSmokeTest.java22 import android.content.Context;
165 Context ctx = instr.getTargetContext(); in generateAppsList()
178 LauncherApps la = (LauncherApps)ctx.getSystemService(Context.LAUNCHER_APPS_SERVICE); in generateAppsList()
179 UserManager um = (UserManager)ctx.getSystemService(Context.USER_SERVICE); in generateAppsList()
/platform_testing/tests/androidbvt/apps/src/com/android/androidbvt/
DMediaCaptureTests.java20 import android.content.Context;
47 private Context mContext;

123