Home
last modified time | relevance | path

Searched defs:context (Results 1 – 25 of 1599) sorted by relevance

12345678910>>...64

/cts/apps/CtsVerifier/src/com/android/cts/verifier/features/
DFeatureUtil.java36 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()
98 public static boolean isDisableKeyguardSupported(Context context) { in isDisableKeyguardSupported()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioSystemFlags.java28 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()
62 public static boolean isWatch(Context context) { in isWatch()
70 public static boolean isAutomobile(Context context) { in isAutomobile()
78 public static boolean isTV(Context context) { in isTV()
[all …]
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/
DBaseTestAppDeviceAdminReceiver.java35 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()
80 public void onPasswordExpiring(Context context, Intent intent) { in onPasswordExpiring()
[all …]
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/
DShortcutManagerThrottlingTestReceiver.java42 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()
158 public void testInlineReplyCheck(Context context, String replyAction) { in testInlineReplyCheck()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/premade/
DEventLibDeviceAdminReceiver.java78 public void onEnabled(Context context, Intent intent) { in onEnabled()
92 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested()
106 public void onDisabled(Context context, Intent intent) { in onDisabled()
120 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged()
134 public void onPasswordChanged(Context context, Intent intent, UserHandle user) { in onPasswordChanged()
147 public void onPasswordFailed(Context context, Intent intent) { in onPasswordFailed()
161 public void onPasswordFailed(Context context, Intent intent, UserHandle user) { in onPasswordFailed()
174 public void onPasswordSucceeded(Context context, Intent intent) { in onPasswordSucceeded()
188 public void onPasswordSucceeded(Context context, Intent intent, UserHandle user) { in onPasswordSucceeded()
201 public void onPasswordExpiring(Context context, Intent intent) { in onPasswordExpiring()
[all …]
/cts/tests/tests/os/src/android/os/health/cts/
DSystemHealthManagerTest.java37 final Context context = getInstrumentation().getTargetContext(); in testTakeMyUidSnapshot() local
48 final Context context = getInstrumentation().getTargetContext(); in testTakeUidSnapshotWithMe() local
59 final Context context = getInstrumentation().getTargetContext(); in testTakeMyUidSnapshotWithSystem() local
77 final Context context = getInstrumentation().getTargetContext(); in testTakeUidSnapshotsWithEmptyArray() local
89 final Context context = getInstrumentation().getTargetContext(); in testTakeUidSnapshotsWithMe() local
106 final Context context = getInstrumentation().getTargetContext(); in testTakeMyUidSnapshotsWithSystem() local
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBlockingBroadcastReceiver.java74 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()
113 public BlockingBroadcastReceiver(Context context, IntentFilter intentFilter) { in BlockingBroadcastReceiver()
117 public BlockingBroadcastReceiver(Context context, IntentFilter intentFilter, in BlockingBroadcastReceiver()
[all …]
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiFeature.java23 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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DVersion.java43 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/bluetooth/bluetoothTestUtilLib/src/android/bluetooth/cts/
DTestUtils.java53 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in hasBluetooth() local
83 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in isProfileEnabled() local
161 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in getBluetoothAdapterOrDie() local
196 public static int getLocationMode(Context context) { in getLocationMode()
204 public static void setLocationMode(Context context, int mode) { in setLocationMode()
212 public static boolean isLocationOn(Context context) { in isLocationOn()
219 public static void enableLocation(Context context) { in enableLocation()
226 public static void disableLocation(Context context) { in disableLocation()
235 public static boolean isBleSupported(Context context) { in isBleSupported()
244 public static boolean isAutomotive(Context context) { in isAutomotive()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBasicAdminReceiver.java46 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()
107 private void sendUserBroadcast(Context context, String action, UserHandle userHandle) { in sendUserBroadcast()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
DPhoneAccountUtils.java89 public static void registerTestPhoneAccount(Context context) { in registerTestPhoneAccount()
100 public static PhoneAccount getPhoneAccount(Context context) { in getPhoneAccount()
112 public static PhoneAccount getSpecificPhoneAccount(Context context, PhoneAccountHandle pah) { in getSpecificPhoneAccount()
122 public static void unRegisterTestPhoneAccount(Context context) { in unRegisterTestPhoneAccount()
132 public static void registerTestSelfManagedPhoneAccount(Context context) { in registerTestSelfManagedPhoneAccount()
143 public static void unRegisterTestSelfManagedPhoneAccount(Context context) { in unRegisterTestSelfManagedPhoneAccount()
155 public static PhoneAccount getSelfManagedPhoneAccount(Context context) { in getSelfManagedPhoneAccount()
166 public static PhoneAccountHandle getDefaultOutgoingPhoneAccount(Context context) { in getDefaultOutgoingPhoneAccount()
177 public static PhoneAccount getSelfManagedPhoneAccount2(Context context) { in getSelfManagedPhoneAccount2()
187 public static void cleanupConnectionServices(Context context) { in cleanupConnectionServices()
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/
DAppWidgetProviderCallbacks.java36 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()
DStubbableAppWidgetProvider.java26 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/hostsidetests/media/app/MediaMetricsTest/src/android/media/metrics/cts/
DMediaMetricsAtomHostSideTests.java98 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testPlaybackStateEvent_default() local
111 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testPlaybackStateEvent() local
127 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testPlaybackErrorEvent_default() local
141 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testPlaybackErrorEvent() local
159 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testTrackChangeEvent_default() local
171 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testTrackChangeEvent_text() local
193 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testTrackChangeEvent_audio() local
217 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testTrackChangeEvent_video() local
243 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testNetworkEvent_default() local
255 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testNetworkEvent() local
[all …]
/cts/tests/tests/os/src/android/os/cts/
DIntentLaunchActivity.java59 public static Intent getUnsafeIntentLaunchTestIntent(Context context) { in getUnsafeIntentLaunchTestIntent()
68 public static Intent getUnsafeDataCopyFromIntentTestIntent(Context context) { in getUnsafeDataCopyFromIntentTestIntent()
79 public static Intent getUnsafeDataCopyFromExtrasTestIntent(Context context) { in getUnsafeDataCopyFromExtrasTestIntent()
90 Context context) { in getDataCopyFromDeliveredIntentWithUnparceledExtrasTestIntent()
103 private static Intent getTestIntentWithExtrasInParceledIntent(Context context, String action) { in getTestIntentWithExtrasInParceledIntent()
117 public static Intent getUnsafeIntentFromUriLaunchTestIntent(Context context) { in getUnsafeIntentFromUriLaunchTestIntent()
127 public static Intent getSafeIntentFromUriLaunchTestIntent(Context context) { in getSafeIntentFromUriLaunchTestIntent()
135 private static Intent getTestIntentWithUriIntentInExtras(Context context, String action) { in getTestIntentWithUriIntentInExtras()
150 private static Intent getTestIntent(Context context, String action) { in getTestIntent()
/cts/tests/tests/wifi/src/android/net/wifi/sharedconnectivity/cts/
DSharedConnectivityTest.java138 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in registerCallback_withoutPermission_throwsSecurityException() local
160 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in registerCallback_onServiceConnectedCallbackReceived() local
177 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in unregisterCallback_beforeRegister_unregisterUnsuccessful() local
192 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in unregisterCallback_unregisterSuccessful() local
228 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in setHotspotNetworks_managerCallbackReceivedWithCorrectData() local
258 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in setKnownNetworks_managerCallbackReceivedWithCorrectData() local
287 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in setSettingsState_managerCallbackReceivedWithCorrectData() local
318 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in updateHotspotNetworkConnectionStatus_managerCallbackReceivedWithCorrectData() local
349 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in updateKnownNetworkConnectionStatus_managerCallbackReceivedWithCorrectData() local
379 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in connectHotspotNetwork_serviceCallbackReceivedWithCorrectData() local
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DAutoCompleteTextViewNoIme.java31 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/credentials/src/android/credentials/cts/
DCtsCredentialDescriptionRegistryApiTest.java119 public static void enableCredentialManagerDeviceFeature(@NonNull Context context) { in enableCredentialManagerDeviceFeature()
123 public static void disableCredentialManagerDeviceFeature(@NonNull Context context) { in disableCredentialManagerDeviceFeature()
130 public static void enableCredentialDescriptionRegistryApiDeviceFeature( in enableCredentialDescriptionRegistryApiDeviceFeature()
135 public static void disableCredentialDescriptionRegistryApiDeviceFeature( in disableCredentialDescriptionRegistryApiDeviceFeature()
143 public static void setCredentialManagerFeature(@NonNull Context context, boolean enabled) { in setCredentialManagerFeature()
151 public static void setCredentialDescriptionRegistryApiFeature(@NonNull Context context, in setCredentialDescriptionRegistryApiFeature()
160 public static void setDeviceConfig( in setDeviceConfig()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DVersion.java32 static String getVersionName(Context context) { in getVersionName()
36 static int getVersionCode(Context context) { in getVersionCode()
40 static PackageInfo getPackageInfo(Context context) { in getPackageInfo()
50 static String getMetadata(Context context, String name) { in getMetadata()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DUtils.java68 static void requestDeleteManagedProfile(Context context) { in requestDeleteManagedProfile()
89 static void showBugreportNotification(Context context, String msg, int notificationId) { in showBugreportNotification()
108 private static NotificationManager getNotificationManager(Context context) { in getNotificationManager()
123 static void showToast(Context context, int messageId) { in showToast()
174 static Intent getManagedSettingsIntent(Context context) { in getManagedSettingsIntent()
189 static boolean isLockScreenManagedOrgNameSupported(Context context) { in isLockScreenManagedOrgNameSupported()
194 static boolean isLockscreenSupported(Context context) { in isLockscreenSupported()
199 static boolean isTV(Context context) { in isTV()
204 static boolean isWatch(Context context) { in isWatch()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/
DContentCaptureContextTest.java84 final ContentCaptureContext context = mBuilder.build(); in testGetId() local
93 final ContentCaptureContext context = builder.build(); in testSetGetBundle() local
103 final ContentCaptureContext context = builder.build(); in testParcel() local
117 final ContentCaptureContext context = ContentCaptureContext.forLocusId(ID); in testForLocus_valid() local
125 private void assertEverything(@NonNull ContentCaptureContext context) { in assertEverything()
137 private ContentCaptureContext cloneThroughParcel(@NonNull ContentCaptureContext context) { in cloneThroughParcel()
/cts/tests/tests/virtualdevice/src/android/virtualdevice/cts/
DDeviceAssociationTest.java126 Context context = getApplicationContext(); in setUp() local
154 Context context = getApplicationContext(); in registerDeviceIdChangeListener_nullListener_throwsException() local
164 Context context = getApplicationContext(); in registerDeviceIdChangeListener_nullExecutor_throwsException() local
174 Context context = getApplicationContext(); in registerDeviceIdChangeListener_registerTwice_throwsException() local
186 Context context = getApplicationContext(); in unregisterDeviceChangedListener_nullListener_throwsException() local
196 Context context = getApplicationContext(); in unregisterDeviceChangedListener_succeeds() local
217 Context context = getApplicationContext(); in updateDeviceId_invalidDeviceId_shouldThrowIllegalArgumentException() local
227 Context context = getApplicationContext(); in updateDeviceId_missingDeviceId_shouldThrowIllegalArgumentException() local
237 Context context = getApplicationContext(); in updateDeviceId_defaultDeviceId() local
247 Context context = getApplicationContext(); in updateDeviceId_validVirtualDeviceId() local
[all …]
/cts/hostsidetests/content/test-apps/ContextCrossProfileApps/ContextCrossProfileApp/src/com/android/cts/context/
DContextCrossProfileDeviceTest.java85 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() local
105 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService() local
121 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossUsersPermission_bindsService() local
137 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossProfilesPermission_bindsService() local
158 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossProfilesPermission_throwsException() local
179 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossProfilesAppOp_bindsService() local
199 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossProfilesAppOp_throwsException() local
224 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_differentProfileGroup_samePackage_withAcrossUsersPermission_bindsService() local
240 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_differentProfileGroup_differentPackage_withAcrossUsersPermission_throwsException() local
261 final Context context = InstrumentationRegistry.getContext(); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossProfilesPermission_throwsException() local
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DTextViewNoIme.java30 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()

12345678910>>...64