/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/services/ |
D | Services.java | 61 import android.content.Context; 181 entry(Context.ACCESSIBILITY_SERVICE, AccessibilityManager.class), 182 entry(Context.CAPTIONING_SERVICE, CaptioningManager.class), 183 entry(Context.ACCOUNT_SERVICE, AccountManager.class), 184 entry(Context.ACTIVITY_SERVICE, ActivityManager.class), 187 entry(Context.ALARM_SERVICE, AlarmManager.class), 188 entry(Context.AUDIO_SERVICE, AudioManager.class), 189 entry(Context.AUDIO_DEVICE_VOLUME_SERVICE, AudioDeviceVolumeManager.class), 190 entry(Context.MEDIA_ROUTER_SERVICE, MediaRouter.class), 191 entry(Context.HDMI_CONTROL_SERVICE, HdmiControlManager.class), [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/features/ |
D | FeatureUtil.java | 19 import android.content.Context; 36 public static boolean isConfigLocationSupported(Context context) { in isConfigLocationSupported() 43 public static boolean isConfigLockScreenSupported(Context context) { in isConfigLockScreenSupported() 50 public static boolean isCustomizeLockScreenMessageSupported(Context context) { in isCustomizeLockScreenMessageSupported() 57 public static boolean isPasswordSupported(Context context) { in isPasswordSupported() 64 public static boolean isHighPasswordComplexitySupported(Context context) { in isHighPasswordComplexitySupported() 71 public static boolean isFunSupported(Context context) { in isFunSupported() 78 public static boolean isScreenTimeoutSupported(Context context) { in isScreenTimeoutSupported() 85 public static boolean isThirdPartyAccessibilityServiceSupported(Context context) { in isThirdPartyAccessibilityServiceSupported() 92 public static boolean isConfigVpnSupported(Context context) { in isConfigVpnSupported() [all …]
|
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/ |
D | BaseTestAppDeviceAdminReceiver.java | 20 import android.content.Context; 35 public void onEnabled(Context context, Intent intent) { in onEnabled() 40 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested() 45 public void onDisabled(Context context, Intent intent) { in onDisabled() 50 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged() 55 public void onPasswordChanged(Context context, Intent intent, UserHandle user) { in onPasswordChanged() 60 public void onPasswordFailed(Context context, Intent intent) { in onPasswordFailed() 65 public void onPasswordFailed(Context context, Intent intent, UserHandle user) { in onPasswordFailed() 70 public void onPasswordSucceeded(Context context, Intent intent) { in onPasswordSucceeded() 75 public void onPasswordSucceeded(Context context, Intent intent, UserHandle user) { in onPasswordSucceeded() [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/context/ |
D | Context.java | 28 public final class Context { class 32 private static final android.content.Context sInstrumentedContext = 34 private static final android.content.Context sInstrumentationContext = 37 public static final Context sInstance = new Context(); 39 private Context() { in Context() method in Context 46 public android.content.Context instrumentedContext() { in instrumentedContext() 54 public android.content.Context instrumentedContextAsUser(UserReference user) { in instrumentedContextAsUser() 61 public android.content.Context instrumentationContext() { in instrumentationContext() 69 public android.content.Context instrumentationContextAsUser(UserReference user) { in instrumentationContextAsUser() 78 public android.content.Context androidContextAsUser(UserReference user) { in androidContextAsUser()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | AudioSystemFlags.java | 19 import android.content.Context; 28 public static boolean claimsOutput(Context context) { in claimsOutput() 32 public static boolean claimsInput(Context context) { in claimsInput() 36 public static boolean claimsProAudio(Context context) { in claimsProAudio() 40 public static boolean claimsLowLatencyAudio(Context context) { in claimsLowLatencyAudio() 45 public static boolean claimsMIDI(Context context) { in claimsMIDI() 50 public static boolean claimsUSBHostMode(Context context) { in claimsUSBHostMode() 54 public static boolean claimsUSBPeripheralMode(Context context) { in claimsUSBPeripheralMode() 65 public static boolean claimsHeadTrackingLowLatency(Context context) { in claimsHeadTrackingLowLatency() 79 public static boolean isWatch(Context context) { in isWatch() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/ |
D | PhoneAccountUtils.java | 20 import android.content.Context; 89 public static void registerTestPhoneAccount(Context context) { in registerTestPhoneAccount() 91 Context.TELECOM_SERVICE); in registerTestPhoneAccount() 100 public static PhoneAccount getPhoneAccount(Context context) { in getPhoneAccount() 102 Context.TELECOM_SERVICE); in getPhoneAccount() 112 public static PhoneAccount getSpecificPhoneAccount(Context context, PhoneAccountHandle pah) { in getSpecificPhoneAccount() 122 public static void unRegisterTestPhoneAccount(Context context) { in unRegisterTestPhoneAccount() 124 Context.TELECOM_SERVICE); in unRegisterTestPhoneAccount() 132 public static void registerTestSelfManagedPhoneAccount(Context context) { in registerTestSelfManagedPhoneAccount() 134 Context.TELECOM_SERVICE); in registerTestSelfManagedPhoneAccount() [all …]
|
/cts/tests/tests/externalservice/src/android/externalservice/cts/ |
D | PackagePrivateIsolatedServiceTest.java | 30 import android.content.Context; 58 static final Context sContext = getInstrumentation().getTargetContext(); 102 Context.BIND_AUTO_CREATE in testBasicConnection() 103 | Context.BIND_PACKAGE_ISOLATED_PROCESS, in testBasicConnection() 131 Context.BIND_AUTO_CREATE in testBindExportedServiceSharedProcessNotAllowed() 132 | Context.BIND_PACKAGE_ISOLATED_PROCESS, in testBindExportedServiceSharedProcessNotAllowed() 158 Context.BIND_AUTO_CREATE in testBindMultipleExportedServiceS() 159 | Context.BIND_PACKAGE_ISOLATED_PROCESS, in testBindMultipleExportedServiceS() 183 Context.BIND_AUTO_CREATE in testBindMultipleExportedServiceS() 184 | Context.BIND_PACKAGE_ISOLATED_PROCESS, in testBindMultipleExportedServiceS() [all …]
|
D | SharedIsolatedServiceTest.java | 20 import android.content.Context; 55 Context.BIND_AUTO_CREATE in testBasicConnection() 56 | Context.BIND_EXTERNAL_SERVICE in testBasicConnection() 57 | Context.BIND_SHARED_ISOLATED_PROCESS, in testBasicConnection() 76 Context.BIND_AUTO_CREATE in testSharedIsolatedProcessNotAllowed() 77 | Context.BIND_EXTERNAL_SERVICE in testSharedIsolatedProcessNotAllowed() 78 | Context.BIND_SHARED_ISOLATED_PROCESS, in testSharedIsolatedProcessNotAllowed() 91 Context.BIND_AUTO_CREATE in testMultipleServicesWithSingleInstance() 92 | Context.BIND_EXTERNAL_SERVICE in testMultipleServicesWithSingleInstance() 93 | Context.BIND_SHARED_ISOLATED_PROCESS, in testMultipleServicesWithSingleInstance() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BlockingBroadcastReceiver.java | 19 import android.content.Context; 70 private final Context mContext; 74 public static BlockingBroadcastReceiver create(Context context, String expectedAction) { in create() 78 public static BlockingBroadcastReceiver create(Context context, IntentFilter intentFilter) { in create() 82 public static BlockingBroadcastReceiver create(Context context, String expectedAction, in create() 87 public static BlockingBroadcastReceiver create(Context context, IntentFilter intentFilter, in create() 92 public static BlockingBroadcastReceiver create(Context context, in create() 97 public static BlockingBroadcastReceiver create(Context context, Set<IntentFilter> intentFilters, in create() 105 public BlockingBroadcastReceiver(Context context) { in BlockingBroadcastReceiver() 109 public BlockingBroadcastReceiver(Context context, String expectedAction) { in BlockingBroadcastReceiver() [all …]
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/ |
D | AppWidgetProviderCallbacks.java | 21 import android.content.Context; 36 public abstract void onUpdate(Context context, AppWidgetManager appWidgetManager, in onUpdate() 39 public abstract void onAppWidgetOptionsChanged(Context context, in onAppWidgetOptionsChanged() 42 public abstract void onDeleted(Context context, int[] appWidgetIds); in onDeleted() 44 public abstract void onEnabled(Context context); in onEnabled() 46 public abstract void onDisabled(Context context); in onDisabled() 48 public abstract void onRestored(Context context, int[] oldWidgetIds, int[] newWidgetIds); in onRestored()
|
D | StubbableAppWidgetProvider.java | 21 import android.content.Context; 26 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { in onUpdate() 34 public void onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager, in onAppWidgetOptionsChanged() 43 public void onDeleted(Context context, int[] appWidgetIds) { in onDeleted() 51 public void onEnabled(Context context) { in onEnabled() 59 public void onDisabled(Context context) { in onDisabled() 67 public void onRestored(Context context, int[] oldWidgetIds, int[] newWidgetIds) { in onRestored()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | BlockingBroadcastReceiver.java | 18 import static android.content.Context.RECEIVER_EXPORTED; 24 import android.content.Context; 75 private final Context mContext; 79 public static BlockingBroadcastReceiver create(Context context, String expectedAction) { in create() 83 public static BlockingBroadcastReceiver create(Context context, IntentFilter intentFilter) { in create() 87 public static BlockingBroadcastReceiver create(Context context, String expectedAction, in create() 92 public static BlockingBroadcastReceiver create(Context context, IntentFilter intentFilter, in create() 97 public static BlockingBroadcastReceiver create(Context context, in create() 102 public static BlockingBroadcastReceiver create(Context context, Set<IntentFilter> intentFilters, in create() 110 public BlockingBroadcastReceiver(Context context) { in BlockingBroadcastReceiver() [all …]
|
/cts/hostsidetests/content/test-apps/ContextCrossProfileApps/ContextCrossProfileApp/src/com/android/cts/context/ |
D | ContextCrossProfileDeviceTest.java | 26 import android.content.Context; 85 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() 96 Context.BIND_AUTO_CREATE, otherProfileHandle)) in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() 99 bindIntent, new ContextCrossProfileTestConnection(), Context.BIND_AUTO_CREATE)) in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() 105 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService() 116 Context.BIND_AUTO_CREATE, otherProfileHandle)).isTrue(); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService() 121 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossUsersPermission_bindsService() 132 Context.BIND_AUTO_CREATE, otherProfileHandle)).isTrue(); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossUsersPermission_bindsService() 137 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossProfilesPermission_bindsService() 153 Context.BIND_AUTO_CREATE, otherProfileHandle)).isTrue(); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossProfilesPermission_bindsService() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | TestSensorEnvironment.java | 19 import android.content.Context; 40 private final Context mContext; 59 public TestSensorEnvironment(Context context, int sensorType, int samplingPeriodUs) { in TestSensorEnvironment() 75 Context context, in TestSensorEnvironment() 98 Context context, in TestSensorEnvironment() 122 Context context, in TestSensorEnvironment() 150 Context context, in TestSensorEnvironment() 176 Context context, in TestSensorEnvironment() 199 Context context, in TestSensorEnvironment() 222 Context context, in TestSensorEnvironment() [all …]
|
/cts/tests/tests/content/src/android/content/wm/cts/ |
D | ContextIsUiContextTest.java | 23 import android.content.Context; 83 final Context windowContext = mApplicationContext.createWindowContext(getDefaultDisplay(), in testIsUiContextOnWindowContextWithDisplay() 90 final Context defaultDisplayContext = in testIsUiContextOnDefaultDisplayContext() 94 final Context defaultDisplayDerivedContext = defaultDisplayContext in testIsUiContextOnDefaultDisplayContext() 101 final Context secondaryDisplayContext = in testIsUiContextOnSecondaryDisplayContext() 105 final Context secondaryDisplayDerivedContext = secondaryDisplayContext in testIsUiContextOnSecondaryDisplayContext() 112 final Context uiDerivedContext = createWindowContext() in testIsUiContextOnUiDerivedContext() 119 final Context uiDerivedDisplayContext = createWindowContext() in testIsUiContextOnUiDerivedDisplayContext() 126 final Context uiContextWrapper = new ContextWrapper(createWindowContext()); in testIsUiContextOnUiContextWrapper() 132 final Context uiContextWrapper = new ContextWrapper(mApplicationContext); in testIsUiContextOnNonUiContextWrapper()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiFeature.java | 19 import android.content.Context; 23 public static boolean isWifiSupported(Context context) { in isWifiSupported() 28 public static boolean isP2pSupported(Context context) { in isP2pSupported() 33 public static boolean isTelephonySupported(Context context) { in isTelephonySupported() 38 public static boolean isRttSupported(Context context) { in isRttSupported() 43 public static boolean isAwareSupported(Context context) { in isAwareSupported()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextWrapperTest.java | 23 import android.content.Context; 51 protected Context getContextUnderTest() { in getContextUnderTest() 65 Context context = getContext(); in testAccessBaseContext() 71 Context secondContext = testContextWrapper.createPackageContext("com.android.shell", in testAccessBaseContext() 72 Context.CONTEXT_IGNORE_SECURITY); in testAccessBaseContext() 85 public MockContextWrapper(Context base) { in MockContextWrapper() 90 public void attachBaseContext(Context base) { in attachBaseContext()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | TestProcessClientTest.java | 19 import android.content.Context; 42 protected void runOnUiThread(Context ctx) throws Throwable { in runOnUiThread() 53 public void run(Context ctx) throws Throwable { in run() 69 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testRunDifferentRunnables() 79 public void run(Context ctx) throws Throwable { in run() 90 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testThrowingNullPointerException() 101 public void run(Context ctx) throws Throwable { in run() 112 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testThrowingIOException() 122 public void run(Context ctx) throws Throwable { in run() 132 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testFailedAssertion()
|
/cts/tests/tests/wifi/src/android/net/wifi/nl80211/cts/ |
D | WifiFeature.java | 19 import android.content.Context; 23 public static boolean isWifiSupported(Context context) { in isWifiSupported() 28 public static boolean isP2pSupported(Context context) { in isP2pSupported() 33 public static boolean isTelephonySupported(Context context) { in isTelephonySupported() 38 public static boolean isRttSupported(Context context) { in isRttSupported() 43 public static boolean isAwareSupported(Context context) { in isAwareSupported()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/os/ |
D | ServiceManagerHelperTest.java | 31 import android.content.Context; 61 Context.ACTIVITY_SERVICE, 62 Context.ALARM_SERVICE, 63 Context.AUDIO_SERVICE, 64 Context.DISPLAY_SERVICE, 65 Context.INPUT_SERVICE, 66 Context.JOB_SCHEDULER_SERVICE, 67 Context.LOCATION_SERVICE, 68 Context.POWER_SERVICE, 69 Context.WINDOW_SERVICE [all …]
|
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/premade/ |
D | EventLibDeviceAdminReceiver.kt | 19 import android.content.Context 68 override fun onEnabled(context: Context, intent: Intent) { in className() 75 override fun onDisableRequested(context: Context, intent: Intent): CharSequence? { in onDisableRequested() 82 override fun onDisabled(context: Context, intent: Intent) { in onDisabled() 89 override fun onPasswordChanged(context: Context, intent: Intent) { in onPasswordChanged() 96 override fun onPasswordChanged(context: Context, intent: Intent, user: UserHandle) { in onPasswordChanged() 103 override fun onPasswordFailed(context: Context, intent: Intent) { in onPasswordFailed() 110 override fun onPasswordFailed(context: Context, intent: Intent, user: UserHandle) { in onPasswordFailed() 117 override fun onPasswordSucceeded(context: Context, intent: Intent) { in onPasswordSucceeded() 124 override fun onPasswordSucceeded(context: Context, intent: Intent, user: UserHandle) { in onPasswordSucceeded() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AutoCompleteTextViewNoIme.java | 19 import android.content.Context; 31 public AutoCompleteTextViewNoIme(Context context) { in AutoCompleteTextViewNoIme() 35 public AutoCompleteTextViewNoIme(Context context, AttributeSet attrs) { in AutoCompleteTextViewNoIme() 39 public AutoCompleteTextViewNoIme(Context context, AttributeSet attrs, int defStyleAttr) { in AutoCompleteTextViewNoIme() 43 public AutoCompleteTextViewNoIme(Context context, AttributeSet attrs, int defStyleAttr, in AutoCompleteTextViewNoIme() 48 public AutoCompleteTextViewNoIme(Context context, AttributeSet attrs, int defStyleAttr, in AutoCompleteTextViewNoIme()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | FontResourceTest.java | 21 import android.content.Context; 45 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in getLayoutId() 60 private TextView inflateWithRemoteViews(Context ctx) { in inflateWithRemoteViews() 65 private TextView inflateWithInflator(Context ctx) { in inflateWithInflator() 80 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testRemoteResource() 82 Context freeContext = context.createPackageContext( in testRemoteResource() 83 RESOURCE_PACKAGE, Context.CONTEXT_IGNORE_SECURITY); in testRemoteResource() 84 Context restrictContext = context.createPackageContext( in testRemoteResource() 85 RESOURCE_PACKAGE, Context.CONTEXT_RESTRICTED); in testRemoteResource()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | BasicAdminReceiver.java | 20 import android.content.Context; 46 public static ComponentName getComponentName(Context context) { in getComponentName() 51 public void onReceive(Context context, Intent intent) { in onReceive() 60 public void onUserAdded(Context context, Intent intent, UserHandle userHandle) { in onUserAdded() 65 public void onUserRemoved(Context context, Intent intent, UserHandle userHandle) { in onUserRemoved() 70 public void onUserStarted(Context context, Intent intent, UserHandle userHandle) { in onUserStarted() 75 public void onUserStopped(Context context, Intent intent, UserHandle userHandle) { in onUserStopped() 80 public void onUserSwitched(Context context, Intent intent, UserHandle userHandle) { in onUserSwitched() 85 public void onNetworkLogsAvailable(Context context, Intent intent, long batchToken, in onNetworkLogsAvailable() 98 public void onOperationSafetyStateChanged(Context context, int reason, boolean isSafe) { in onOperationSafetyStateChanged() [all …]
|
/cts/tests/credentials/src/android/credentials/cts/testcore/ |
D | CtsCredentialManagerUtils.java | 19 import android.content.Context; 37 public static boolean isWatch(Context context) { in isWatch() 43 public static boolean isAuto(Context context) { in isAuto() 52 public static void enableCredentialManagerDeviceConfigFlag(@NonNull Context context) { in enableCredentialManagerDeviceConfigFlag() 56 public static void disableCredentialManagerDeviceFeature(@NonNull Context context) { in disableCredentialManagerDeviceFeature() 61 public static void setCredentialManagerFeature(@NonNull Context context, boolean enabled) { in setCredentialManagerFeature() 67 @NonNull Context context, @NonNull String feature, boolean value) { in setDeviceConfig()
|