Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
/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 …]
DNotificationIncidentTest.java20 import android.service.notification.ConditionProto;
21 import android.service.notification.ManagedServicesProto;
22 import android.service.notification.NotificationRecordProto;
23 import android.service.notification.NotificationServiceDumpProto;
24 import android.service.notification.RankingHelperProto;
25 import android.service.notification.RankingHelperProto.RecordProto;
26 import android.service.notification.ZenMode;
27 import android.service.notification.ZenModeProto;
28 import android.service.notification.ZenRuleProto;
/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/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/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/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.IGetDefaultDownloadableSubscriptionListCallback;
[all …]
/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/tests/autofillservice/src/android/autofillservice/cts/
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;
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;
/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/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/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/common/device-side/util-axt/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/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/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/tests/security/src/android/security/cts/
DServicePermissionsTest.java82 for (String service : services) { in testDumpProtected()
88 .getDeclaredMethod("getService", String.class).invoke(null, service); in testDumpProtected()
97 Log.w(TAG, "Missing service " + service); in testDumpProtected()
101 Log.d(TAG, "Dumping service " + service); in testDumpProtected()
136 fail("dump() for " + service + " produced several lines of output; this " in testDumpProtected()
145 fail("dump() for " + service + " produced a single line which didn't " in testDumpProtected()
/cts/tests/tests/assist/service/src/android/assist/service/
DMainInteractionSessionService.java17 package android.assist.service;
20 import android.service.voice.VoiceInteractionSession;
21 import android.service.voice.VoiceInteractionSessionService;
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
DMainInteractionSessionService.java17 package android.voicesettings.service;
20 import android.service.voice.VoiceInteractionSession;
21 import android.service.voice.VoiceInteractionSessionService;
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DRcParser.java67 for (Service service : mServices) { in getDependencies()
69 String file = service.getFile().substring(1); in getDependencies()
100 for (Service service : services) { in toString()
104 service.getName(), in toString()
105 service.getClazz(), in toString()
106 service.getUser(), in toString()
107 service.getGroup())); in toString()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DConditionProviderServiceTest.java21 import static android.service.notification.NotificationListenerService.INTERRUPTION_FILTER_PRIORITY;
40 import android.service.notification.Condition;
312 private void pollForSubscribe(PollableConditionProviderService service) throws Exception { in pollForSubscribe() argument
316 while (tries-- > 0 && !service.subscribed) { in pollForSubscribe()
324 if (!service.subscribed) { in pollForSubscribe()
330 private void pollForConnection(Class<? extends PollableConditionProviderService> service, in pollForConnection() argument
336 (PollableConditionProviderService) service.getMethod("getInstance").invoke(null); in pollForConnection()
344 instance = (PollableConditionProviderService) service.getMethod("getInstance") in pollForConnection()
349 Log.d(TAG, service.getName() + " not bound"); in pollForConnection()
352 Log.d(TAG, service.getName() + " still bound"); in pollForConnection()
[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>>...12