Home
last modified time | relevance | path

Searched refs:service (Results 1 – 25 of 302) sorted by relevance

12345678910>>...13

/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DWhitelistTest.java31 import android.service.contentcapture.ContentCaptureService;
53 final CtsContentCaptureService service = enableService(NO_PACKAGES, NO_ACTIVITIES); in testNothingWhitelisted() local
54 assertNotWhitelisted(service); in testNothingWhitelisted()
60 final CtsContentCaptureService service = enableService(toSet("not.me"), NO_ACTIVITIES); in testNotWhitelisted_byPackage() local
61 assertNotWhitelisted(service); in testNotWhitelisted_byPackage()
66 final CtsContentCaptureService service = enableService(NO_PACKAGES, in testNotWhitelisted_byActivity() local
68 assertNotWhitelisted(service); in testNotWhitelisted_byActivity()
73 final CtsContentCaptureService service = enableService(toSet(MY_PACKAGE), NO_ACTIVITIES); in testWhitelisted_byPackage() local
74 assertWhitelisted(service); in testWhitelisted_byPackage()
79 final CtsContentCaptureService service = enableService(NO_PACKAGES, in testWhitelisted_byActivity() local
[all …]
DBlankActivityTest.java60 final CtsContentCaptureService service = enableService(); in testSimpleSessionLifecycle() local
69 final Session session = service.getOnlyFinishedSession(); in testSimpleSessionLifecycle()
77 final CtsContentCaptureService service = enableService(); in testGetServiceComponentName() local
78 service.waitUntilConnected(); in testGetServiceComponentName()
90 service.waitUntilDisconnected(); in testGetServiceComponentName()
102 final CtsContentCaptureService service = enableService(); in testGetServiceComponentName_onUiThread() local
103 service.waitUntilConnected(); in testGetServiceComponentName_onUiThread()
122 final CtsContentCaptureService service = enableService(); in testIsContentCaptureFeatureEnabled_onUiThread() local
123 service.waitUntilConnected(); in testIsContentCaptureFeatureEnabled_onUiThread()
142 final CtsContentCaptureService service = enableService(); in testDisableContentCaptureService_onUiThread() local
[all …]
DChildlessActivityTest.java102 final CtsContentCaptureService service = enableService(); in testDefaultLifecycle() local
111 final Session session = service.getOnlyFinishedSession(); in testDefaultLifecycle()
147 final CtsContentCaptureService service = enableService(); in testLaunchAnotherActivity() local
166 final List<ContentCaptureSessionId> sessionIds = service.getAllSessionIds(); in testLaunchAnotherActivity()
173 final Session session1 = service.getFinishedSession(sessionId1); in testLaunchAnotherActivity()
176 final Session session2 = service.getFinishedSession(sessionId2); in testLaunchAnotherActivity()
183 final CtsContentCaptureService service = enableService(); in testLaunchAnotherActivity_onTopOfIt() local
207 service.assertThat() in testLaunchAnotherActivity_onTopOfIt()
218 final List<ContentCaptureSessionId> sessionIds = service.getAllSessionIds(); in testLaunchAnotherActivity_onTopOfIt()
225 final Session session1 = service.getFinishedSession(sessionId1); in testLaunchAnotherActivity_onTopOfIt()
[all …]
DLoginActivityTest.java104 final CtsContentCaptureService service = enableService(); in testSimpleLifecycle_defaultSession() local
113 final Session session = service.getOnlyFinishedSession(); in testSimpleLifecycle_defaultSession()
119 service.assertThat() in testSimpleLifecycle_defaultSession()
126 final CtsContentCaptureService service = enableService(); in testSimpleLifecycle_rootViewSession() local
164 final Session mainSession = service.getFinishedSession(mainSessionId); in testSimpleLifecycle_rootViewSession()
165 final Session childSession = service.getFinishedSession(childSessionId); in testSimpleLifecycle_rootViewSession()
171 final List<ContentCaptureSessionId> allSessionIds = service.getAllSessionIds(); in testSimpleLifecycle_rootViewSession()
240 final CtsContentCaptureService service = enableService(); in testSimpleLifecycle_changeContextAfterCreate() local
262 final Session session = service.getOnlyFinishedSession(); in testSimpleLifecycle_changeContextAfterCreate()
280 final CtsContentCaptureService service = enableService(); in testSimpleLifecycle_changeContextOnCreate() local
[all …]
/cts/hostsidetests/incident/src/com/android/server/cts/
DUsbIncidentTest.java19 import android.service.usb.UsbAccessoryProto;
20 import android.service.usb.UsbDebuggingManagerProto;
21 import android.service.usb.UsbDeviceFilterProto;
22 import android.service.usb.UsbDeviceManagerProto;
23 import android.service.usb.UsbDeviceProto;
24 import android.service.usb.UsbHandlerProto;
25 import android.service.usb.UsbHostManagerProto;
26 import android.service.usb.UsbProfileGroupSettingsManagerProto;
27 import android.service.usb.UsbServiceDumpProto;
28 import android.service.usb.UsbSettingsDevicePreferenceProto;
[all …]
DPrintProtoTest.java19 import android.service.print.ActivePrintServiceProto;
20 import android.service.print.CachedPrintJobProto;
21 import android.service.print.PrinterDiscoverySessionProto;
22 import android.service.print.PrintDocumentInfoProto;
23 import android.service.print.PrinterIdProto;
24 import android.service.print.PrinterInfoProto;
25 import android.service.print.PrintJobInfoProto;
26 import android.service.print.PrintServiceDumpProto;
27 import android.service.print.PrintSpoolerInternalStateProto;
28 import android.service.print.PrintSpoolerStateProto;
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityMagnificationTest.java68 runIfNotNull(mService, service -> service.runOnServiceSync(service::disableSelfAndRemove)); in tearDown()
149 InstrumentedAccessibilityService service = InstrumentedAccessibilityService.enableService( in testMagnificationServiceShutsDownWhileMagnifying_shouldReturnTo1x() local
151 final MagnificationController controller2 = service.getMagnificationController(); in testMagnificationServiceShutsDownWhileMagnifying_shouldReturnTo1x()
156 service.runOnServiceSync(() -> service.disableSelf()); in testMagnificationServiceShutsDownWhileMagnifying_shouldReturnTo1x()
170 InstrumentedAccessibilityService service = InstrumentedAccessibilityService.enableService( in testGetMagnificationRegion_whenCantControlMagnification_shouldBeEmpty() local
173 final MagnificationController controller = service.getMagnificationController(); in testGetMagnificationRegion_whenCantControlMagnification_shouldBeEmpty()
178 service.runOnServiceSync(() -> service.disableSelf()); in testGetMagnificationRegion_whenCantControlMagnification_shouldBeEmpty()
188 InstrumentedAccessibilityService service = InstrumentedAccessibilityService.enableService( in testGetMagnificationRegion_whenMagnificationGesturesEnabled_shouldNotBeEmpty() local
191 final MagnificationController controller = service.getMagnificationController(); in testGetMagnificationRegion_whenMagnificationGesturesEnabled_shouldNotBeEmpty()
196 service.runOnServiceSync(() -> service.disableSelf()); in testGetMagnificationRegion_whenMagnificationGesturesEnabled_shouldNotBeEmpty()
DAccessibilityVolumeTest.java86 final InstrumentedAccessibilityService service = InstrumentedAccessibilityService in testChangeAccessibilityVolume_inAccessibilityService_shouldWork() local
89 service.runOnServiceSync(() -> in testChangeAccessibilityVolume_inAccessibilityService_shouldWork()
94 service.runOnServiceSync(() -> mAudioManager.setStreamVolume( in testChangeAccessibilityVolume_inAccessibilityService_shouldWork()
97 if (service != null) { in testChangeAccessibilityVolume_inAccessibilityService_shouldWork()
98 service.runOnServiceSync(() -> service.disableSelf()); in testChangeAccessibilityVolume_inAccessibilityService_shouldWork()
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccServiceTest.java27 import android.service.euicc.DownloadSubscriptionResult;
28 import android.service.euicc.EuiccService;
29 import android.service.euicc.GetDefaultDownloadableSubscriptionListResult;
30 import android.service.euicc.GetDownloadableSubscriptionMetadataResult;
31 import android.service.euicc.GetEuiccProfileInfoListResult;
32 import android.service.euicc.IDeleteSubscriptionCallback;
33 import android.service.euicc.IDownloadSubscriptionCallback;
34 import android.service.euicc.IEraseSubscriptionsCallback;
35 import android.service.euicc.IEuiccService;
36 import android.service.euicc.IEuiccServiceDumpResultCallback;
[all …]
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DBindDeviceAdminServiceGoodSetupTest.java55 public void onServiceConnected(ComponentName name, IBinder service) {}
159 assertCrossProfileCall(ANSWER, service -> service.echo(ANSWER), targetUser); in testCrossProfileCall_echo()
168 assertCrossProfileCall(targetUser, service -> service.getUserHandle(), targetUser); in testCrossProfileCall_getUserHandle()
185 public void onServiceConnected(ComponentName name, IBinder service) { in assertCrossProfileCall()
194 queue.add(ICrossUserService.Stub.asInterface(service)); in assertCrossProfileCall()
204 IInterface service = queue.poll(5, TimeUnit.SECONDS); in assertCrossProfileCall() local
205 assertNotNull("binding to the target service timed out", service); in assertCrossProfileCall()
207 if (NOT_IN_MAIN_THREAD_POISON_PILL.equals(service)) { in assertCrossProfileCall()
210 ICrossUserService crossUserService = (ICrossUserService) service; in assertCrossProfileCall()
224 T call(ICrossUserService service) throws RemoteException; in call() argument
/cts/tests/tests/security/src/android/security/cts/
DServicePermissionsTest.java84 for (String service : services) { in testDumpProtected()
90 .getDeclaredMethod("getService", String.class).invoke(null, service); in testDumpProtected()
99 Log.w(TAG, "Missing service " + service); in testDumpProtected()
103 Log.d(TAG, "Dumping service " + service); in testDumpProtected()
110 Log.d(TAG, "Service " + service + " correctly checked permission"); in testDumpProtected()
115 failures.add("Service " + service + " threw exception: " + e); in testDumpProtected()
121 Log.w(TAG, "Service " + service + " threw exception: " + e); in testDumpProtected()
142 failures.add("dump() for " + service + " produced several lines of output; this " in testDumpProtected()
152 failures.add("dump() for " + service + " produced a single line which didn't " in testDumpProtected()
/cts/tests/tests/dreams/src/android/service/dreams/cts/
DDreamsFeatureTest.java17 package android.service.dreams.cts;
20 import android.service.dreams.DreamService;
21 import android.service.dreams.IDreamManager;
28 IDreamManager service = IDreamManager.Stub.asInterface( in testDreamManagerExists() local
30 assertTrue("Dream manager service missing", service != null); in testDreamManagerExists()
/cts/tests/tests/os/src/android/os/cts/
DSeccompTest.java213 final ISeccompIsolatedService service = peer.get(); in testIsolatedServicePolicy() local
216 assertTrue(service.installFilter()); in testIsolatedServicePolicy()
217 assertTrue(service.createThread()); in testIsolatedServicePolicy()
218 assertTrue(service.getSystemInfo()); in testIsolatedServicePolicy()
219 doFileWriteTest(service); in testIsolatedServicePolicy()
220 assertTrue(service.openAshmem()); in testIsolatedServicePolicy()
221 assertTrue(service.openDevFile()); in testIsolatedServicePolicy()
244 final ISeccompIsolatedService service = peer.get(); in testViolateIsolatedServicePolicy() local
246 assertTrue(service.installFilter()); in testViolateIsolatedServicePolicy()
249 service.violatePolicy(); in testViolateIsolatedServicePolicy()
[all …]
/cts/hostsidetests/devicepolicy/app/AutofillApp/src/com/android/cts/devicepolicy/autofillapp/
DSimpleAutofillService.java21 import android.service.autofill.AutofillService;
22 import android.service.autofill.FillCallback;
23 import android.service.autofill.FillRequest;
24 import android.service.autofill.SaveCallback;
25 import android.service.autofill.SaveRequest;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleServerService.java615 BluetoothGattService service = in createAdditionalNotificationService() local
624 service.addCharacteristic(notiCharacteristic); in createAdditionalNotificationService()
632 service.addCharacteristic(notiCharacteristic); in createAdditionalNotificationService()
640 service.addCharacteristic(notiCharacteristic); in createAdditionalNotificationService()
648 service.addCharacteristic(notiCharacteristic); in createAdditionalNotificationService()
656 service.addCharacteristic(notiCharacteristic); in createAdditionalNotificationService()
664 service.addCharacteristic(notiCharacteristic); in createAdditionalNotificationService()
672 service.addCharacteristic(notiCharacteristic); in createAdditionalNotificationService()
680 service.addCharacteristic(notiCharacteristic); in createAdditionalNotificationService()
688 service.addCharacteristic(notiCharacteristic); in createAdditionalNotificationService()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DCustomDescriptionUnitTest.java25 import android.service.autofill.BatchUpdates;
26 import android.service.autofill.CustomDescription;
27 import android.service.autofill.InternalOnClickAction;
28 import android.service.autofill.InternalTransformation;
29 import android.service.autofill.InternalValidator;
30 import android.service.autofill.OnClickAction;
31 import android.service.autofill.Transformation;
32 import android.service.autofill.Validator;
DNoOpAutofillService.java19 import android.service.autofill.AutofillService;
20 import android.service.autofill.FillCallback;
21 import android.service.autofill.FillRequest;
22 import android.service.autofill.SaveCallback;
23 import android.service.autofill.SaveRequest;
DBadAutofillService.java19 import android.service.autofill.AutofillService;
20 import android.service.autofill.FillCallback;
21 import android.service.autofill.FillRequest;
22 import android.service.autofill.SaveCallback;
23 import android.service.autofill.SaveRequest;
/cts/tests/tests/content/BinderPermissionTestService/
DREADME.txt1 A test project that publishes a Binder service. The methods of this service
2 check if their caller has certain permissions. This service is used by
6 This service has to be in a separate package so the permissions of the
7 caller (the test) and the callee (this service) are different.
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2412/
Dpoc.cpp77 static void transact(sp<IBinder> &service, TRANTYPE type) { in transact() argument
82 data.writeStrongBinder(service); in transact()
85 service->transact(CONVERT_TO_TRANSLUCENT_TRANSACTION, data, &reply); in transact()
91 sp<IBinder> service = sm->checkService(String16("activity")); in main() local
92 if (service != NULL) { in main()
94 transact(service, HEAPCORRUPT); in main()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DConditionProviderServiceTest.java21 import static android.service.notification.NotificationListenerService.INTERRUPTION_FILTER_PRIORITY;
41 import android.service.notification.Condition;
42 import android.service.notification.ZenModeConfig;
339 private void pollForSubscribe(PollableConditionProviderService service) throws Exception { in pollForSubscribe() argument
343 while (tries-- > 0 && !service.subscribed) { in pollForSubscribe()
351 if (!service.subscribed) { in pollForSubscribe()
357 private void pollForConnection(Class<? extends PollableConditionProviderService> service, in pollForConnection() argument
363 (PollableConditionProviderService) service.getMethod("getInstance").invoke(null); in pollForConnection()
371 instance = (PollableConditionProviderService) service.getMethod("getInstance") in pollForConnection()
376 Log.d(TAG, service.getName() + " not bound"); in pollForConnection()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DRequiredServiceRule.java40 public RequiredServiceRule(@NonNull String service) { in RequiredServiceRule() argument
41 mService = service; in RequiredServiceRule()
42 mHasService = hasService(service); in RequiredServiceRule()
65 public static boolean hasService(@NonNull String service) {
68 String command = "service check " + service;
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DRequiredServiceRule.java49 public RequiredServiceRule(@NonNull String service) { in RequiredServiceRule() argument
50 mService = service; in RequiredServiceRule()
51 mHasService = hasService(service); in RequiredServiceRule()
76 public static boolean hasService(@NonNull String service) {
79 String command = "service check " + service;
/cts/tests/app/src/android/app/cts/
DServiceTest.java50 import android.service.notification.StatusBarNotification;
109 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected() argument
120 @Override public void onServiceConnected(ComponentName name, IBinder service) {} in onServiceConnected() argument
174 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected() argument
181 service.transact(LocalService.SET_REPORTER_CODE, data, null, 0); in onServiceConnected()
253 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected() argument
254 mService = service; in onServiceConnected()
255 super.onServiceConnected(name, service); in onServiceConnected()
406 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected() argument
409 mService = service; in onServiceConnected()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaSession2ServiceTest.java314 MediaSession2Service service = StubMediaSession2Service.getInstance(); in testGetSessions() local
319 service.addSession(session); in testGetSessions()
320 List<MediaSession2> sessions = service.getSessions(); in testGetSessions()
324 service.removeSession(session); in testGetSessions()
325 sessions = service.getSessions(); in testGetSessions()
333 MediaSession2Service service = StubMediaSession2Service.getInstance(); in testAddSessions_removedWhenClose() local
338 service.addSession(session); in testAddSessions_removedWhenClose()
339 List<MediaSession2> sessions = service.getSessions(); in testAddSessions_removedWhenClose()
344 sessions = service.getSessions(); in testAddSessions_removedWhenClose()
352 MediaSession2Service service = StubMediaSession2Service.getInstance(); in testOnUpdateNotification() local
[all …]

12345678910>>...13