/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/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 isFunSupported(Context context) { in isFunSupported() 57 public static boolean isScreenTimeoutSupported(Context context) { in isScreenTimeoutSupported() 64 public static boolean isThirdPartyAccessibilityServiceSupported(Context context) { in isThirdPartyAccessibilityServiceSupported() 71 public static boolean isConfigVpnSupported(Context context) { in isConfigVpnSupported() 78 public static boolean isInstallUnknownSourcesSupported(Context context) { in isInstallUnknownSourcesSupported() 85 public static boolean isUsbFileTransferSupported(Context context) { in isUsbFileTransferSupported() 92 private static boolean isWatch(Context context) { in isWatch() [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/context/ |
D | Context.java | 27 public final class Context { class 31 private static final android.content.Context sInstrumentedContext = 33 private static final android.content.Context sInstrumentationContext = 36 public static final Context sInstance = new Context(); 38 private Context() { in Context() method in Context 45 public android.content.Context instrumentedContext() { in instrumentedContext() 52 public android.content.Context instrumentedContextAsUser(UserReference user) { in instrumentedContextAsUser() 59 public android.content.Context instrumentationContext() { in instrumentationContext() 66 public android.content.Context instrumentationContextAsUser(UserReference user) { in instrumentationContextAsUser() 73 public android.content.Context androidContextAsUser(UserReference user) { in androidContextAsUser()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/ |
D | PhoneAccountUtils.java | 20 import android.content.Context; 87 public static void registerTestPhoneAccount(Context context) { in registerTestPhoneAccount() 89 Context.TELECOM_SERVICE); in registerTestPhoneAccount() 98 public static PhoneAccount getPhoneAccount(Context context) { in getPhoneAccount() 100 Context.TELECOM_SERVICE); in getPhoneAccount() 108 public static void unRegisterTestPhoneAccount(Context context) { in unRegisterTestPhoneAccount() 110 Context.TELECOM_SERVICE); in unRegisterTestPhoneAccount() 118 public static void registerTestSelfManagedPhoneAccount(Context context) { in registerTestSelfManagedPhoneAccount() 120 Context.TELECOM_SERVICE); in registerTestSelfManagedPhoneAccount() 129 public static void unRegisterTestSelfManagedPhoneAccount(Context context) { in unRegisterTestSelfManagedPhoneAccount() [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/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | AudioSystemFlags.java | 19 import android.content.Context; 27 public static boolean claimsOutput(Context context) { in claimsOutput() 31 public static boolean claimsInput(Context context) { in claimsInput() 35 public static boolean claimsProAudio(Context context) { in claimsProAudio() 39 public static boolean claimsLowLatencyAudio(Context context) { in claimsLowLatencyAudio() 44 public static boolean claimsMIDI(Context context) { in claimsMIDI() 49 public static boolean claimsUSBHostMode(Context context) { in claimsUSBHostMode() 53 public static boolean claimsUSBPeripheralMode(Context context) { in claimsUSBPeripheralMode()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextWrapperTest.java | 19 import android.content.Context; 42 protected Context getContextUnderTest() { in getContextUnderTest() 54 Context context = getContext(); in testAccessBaseContext() 60 Context secondContext = testContextWrapper.createPackageContext(getValidPackageName(), in testAccessBaseContext() 61 Context.CONTEXT_IGNORE_SECURITY); in testAccessBaseContext() 74 public MockContextWrapper(Context base) { in MockContextWrapper() 79 public void attachBaseContext(Context base) { in attachBaseContext()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | ServicesInstantAppsCannotAccessTests.java | 19 import static android.content.Context.DEVICE_POLICY_SERVICE; 20 import static android.content.Context.FINGERPRINT_SERVICE; 21 import static android.content.Context.SHORTCUT_SERVICE; 22 import static android.content.Context.USB_SERVICE; 23 import static android.content.Context.WALLPAPER_SERVICE; 24 import static android.content.Context.WIFI_AWARE_SERVICE; 25 import static android.content.Context.WIFI_P2P_SERVICE; 26 import static android.content.Context.WIFI_SERVICE; 30 import android.content.Context;
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BlockingBroadcastReceiver.java | 19 import android.content.Context; 69 private final Context mContext; 73 public static BlockingBroadcastReceiver create(Context context, String expectedAction) { in create() 77 public static BlockingBroadcastReceiver create(Context context, IntentFilter intentFilter) { in create() 81 …public static BlockingBroadcastReceiver create(Context context, String expectedAction, Function<In… in create() 85 …public static BlockingBroadcastReceiver create(Context context, IntentFilter intentFilter, Functio… in create() 89 … public static BlockingBroadcastReceiver create(Context context, Set<IntentFilter> intentFilters) { in create() 93 …public static BlockingBroadcastReceiver create(Context context, Set<IntentFilter> intentFilters, F… in create() 100 public BlockingBroadcastReceiver(Context context, String expectedAction) { in BlockingBroadcastReceiver() 104 public BlockingBroadcastReceiver(Context context, IntentFilter intentFilter) { in BlockingBroadcastReceiver() [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/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/tests/content/src/android/content/wm/cts/ |
D | ContextIsUiContextTest.java | 23 import android.content.Context; 81 final Context windowContext = mApplicationContext.createWindowContext(getDefaultDisplay(), in testIsUiContextOnWindowContextWithDisplay() 88 final Context defaultDisplayContext = in testIsUiContextOnDefaultDisplayContext() 92 final Context defaultDisplayDerivedContext = defaultDisplayContext in testIsUiContextOnDefaultDisplayContext() 99 final Context secondaryDisplayContext = in testIsUiContextOnSecondaryDisplayContext() 103 final Context secondaryDisplayDerivedContext = secondaryDisplayContext in testIsUiContextOnSecondaryDisplayContext() 110 final Context uiDerivedContext = createWindowContext() in testIsUiContextOnUiDerivedContext() 117 final Context uiDerivedDisplayContext = createWindowContext() in testIsUiContextOnUiDerivedDisplayContext() 124 final Context uiContextWrapper = new ContextWrapper(createWindowContext()); in testIsUiContextOnUiContextWrapper() 130 final Context uiContextWrapper = new ContextWrapper(mApplicationContext); in testIsUiContextOnNonUiContextWrapper()
|
/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.getTargetContext(); in getLayoutId() 60 private TextView inflateWithRemoteViews(Context ctx) { in inflateWithRemoteViews() 65 private TextView inflateWithInflator(Context ctx) { in inflateWithInflator() 80 Context context = InstrumentationRegistry.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/tests/text/src/android/text/method/cts/ |
D | EditTextNoIme.java | 19 import android.content.Context; 30 public EditTextNoIme(Context context) { in EditTextNoIme() 34 public EditTextNoIme(Context context, AttributeSet attrs) { in EditTextNoIme() 38 public EditTextNoIme(Context context, AttributeSet attrs, int defStyleAttr) { in EditTextNoIme() 42 public EditTextNoIme(Context context, AttributeSet attrs, int defStyleAttr, in EditTextNoIme()
|
D | TextViewNoIme.java | 19 import android.content.Context; 30 public TextViewNoIme(Context context) { in TextViewNoIme() 34 public TextViewNoIme(Context context, AttributeSet attrs) { in TextViewNoIme() 38 public TextViewNoIme(Context context, AttributeSet attrs, int defStyleAttr) { in TextViewNoIme() 42 public TextViewNoIme(Context context, AttributeSet attrs, int defStyleAttr, in TextViewNoIme()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/ |
D | Version.java | 34 import android.content.Context; 43 static String getVersionName(Context context) { in getVersionName() 47 static int getVersionCode(Context context) { in getVersionCode() 51 static private String[] getVersionNameStrings(Context context) { in getVersionNameStrings() 55 static PackageInfo getPackageInfo(Context context) { in getPackageInfo()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/ |
D | UnclippedBlueView.java | 19 import android.content.Context; 26 public UnclippedBlueView(Context context) { in UnclippedBlueView() 30 public UnclippedBlueView(Context context, AttributeSet attrs) { in UnclippedBlueView() 34 public UnclippedBlueView(Context context, AttributeSet attrs, int defStyleAttr) { in UnclippedBlueView() 38 public UnclippedBlueView(Context context, AttributeSet attrs, in UnclippedBlueView()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | RecycleCheckPreference.java | 19 import android.content.Context; 43 public RecycleCheckPreference(Context context, AttributeSet attrs, in RecycleCheckPreference() 48 public RecycleCheckPreference(Context context, AttributeSet attrs, int defStyleAttr, in RecycleCheckPreference() 53 public RecycleCheckPreference(Context context, AttributeSet attrs) { in RecycleCheckPreference() 57 public RecycleCheckPreference(Context context) { in RecycleCheckPreference()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | LifecycleLogView.java | 19 import android.content.Context; 28 public LifecycleLogView(Context context) { in LifecycleLogView() 32 public LifecycleLogView(Context context, AttributeSet attrs) { in LifecycleLogView() 36 public LifecycleLogView(Context context, AttributeSet attrs, int defStyleAttr) { in LifecycleLogView() 40 public LifecycleLogView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) in LifecycleLogView()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | MockViewStub.java | 19 import android.content.Context; 24 public MockViewStub(Context context) { in MockViewStub() 28 public MockViewStub(Context context, AttributeSet attrs) { in MockViewStub() 32 public MockViewStub(Context context, AttributeSet attrs, int defStyle) { in MockViewStub()
|
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/ |
D | ShortcutManagerThrottlingTestReceiver.java | 24 import android.content.Context; 42 public ShortcutManager getManager(Context context) { in getManager() 50 public void onReceive(Context context, Intent intent) { in onReceive() 90 public void testSetDynamicShortcuts(Context context, String replyAction) { in testSetDynamicShortcuts() 99 public void testAddDynamicShortcuts(Context context, String replyAction) { in testAddDynamicShortcuts() 108 public void testUpdateShortcuts(Context context, String replyAction) { in testUpdateShortcuts() 117 public void testBgServiceThrottled(Context context, String replyAction) { in testBgServiceThrottled() 124 public void testActivityUnthrottled(Context context, String replyAction) { in testActivityUnthrottled() 139 public void testFgServiceUnthrottled(Context context, String replyAction) { in testFgServiceUnthrottled() 149 public void testInlineReplyShow(Context context, String replyAction) { in testInlineReplyShow() [all …]
|
/cts/hostsidetests/calllog/app/src/android/provider/cts/contacts/testapp/ |
D | BootReceiver.java | 4 import android.content.Context; 20 public void onReceive(Context context, Intent intent) { in onReceive() 23 .getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in onReceive() 28 .getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in onReceive() 30 .getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in onReceive() 38 public static boolean waitForBootComplete(Context context, String action, long timeoutMillis) in waitForBootComplete() 41 context.getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in waitForBootComplete()
|