/frameworks/native/libs/sensorprivacy/ |
D | SensorPrivacyManager.cpp | 35 sp<hardware::ISensorPrivacyManager> service = mService; in getService() local 36 if (service == nullptr || !IInterface::asBinder(service)->isBinderAlive()) { in getService() 45 sp<hardware::ISensorPrivacyManager> service = getService(); in supportsSensorToggle() local 46 if (service != nullptr) { in supportsSensorToggle() 48 service->supportsSensorToggle(toggleType, sensor, &result); in supportsSensorToggle() 62 sp<hardware::ISensorPrivacyManager> service = getService(); in addSensorPrivacyListener() local 63 if (service != nullptr) { in addSensorPrivacyListener() 64 service->addSensorPrivacyListener(listener); in addSensorPrivacyListener() 71 sp<hardware::ISensorPrivacyManager> service = getService(); in addToggleSensorPrivacyListener() local 72 if (service != nullptr) { in addToggleSensorPrivacyListener() [all …]
|
/frameworks/native/libs/binder/ |
D | ActivityManager.cpp | 37 sp<IActivityManager> service = mService; in getService() local 39 if (service == nullptr || !IInterface::asBinder(service)->isBinderAlive()) { in getService() 41 service = interface_cast<IActivityManager>(binder); in getService() 42 mService = service; in getService() 47 while (service == nullptr || !IInterface::asBinder(service)->isBinderAlive()) { in getService() 56 service = nullptr; in getService() 61 service = interface_cast<IActivityManager>(binder); in getService() 62 mService = service; in getService() 71 sp<IActivityManager> service = getService(); in openContentUri() local 72 return service != nullptr ? service->openContentUri(stringUri) : -1; in openContentUri() [all …]
|
D | PermissionController.cpp | 34 sp<IPermissionController> service = mService; in getService() local 35 while (service == nullptr || !IInterface::asBinder(service)->isBinderAlive()) { in getService() 44 service = nullptr; in getService() 49 service = interface_cast<IPermissionController>(binder); in getService() 50 mService = service; in getService() 53 return service; in getService() 58 sp<IPermissionController> service = getService(); in checkPermission() local 59 return service != nullptr ? service->checkPermission(permission, pid, uid) : false; in checkPermission() 64 sp<IPermissionController> service = getService(); in noteOp() local 65 return service != nullptr ? service->noteOp(op, uid, packageName) : MODE_ERRORED; in noteOp() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | IInputMethodManagerGlobalInvoker.java | 90 IInputMethodManager service = sServiceCache; in getService() local 91 if (service == null) { in getService() 95 service = IInputMethodManager.Stub.asInterface( in getService() 97 if (service == null) { in getService() 100 sServiceCache = service; in getService() 102 return service; in getService() 129 final IInputMethodManager service = getService(); in startProtoDump() local 130 if (service == null) { in startProtoDump() 134 service.startProtoDump(protoDump, source, where); in startProtoDump() 148 final IInputMethodManager service = getService(); in startImeTrace() local [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | TelecomManager.java | 1174 ITelecomService service = getTelecomService(); in getDefaultOutgoingPhoneAccount() local 1175 if (service != null) { in getDefaultOutgoingPhoneAccount() 1177 return service.getDefaultOutgoingPhoneAccount(uriScheme, in getDefaultOutgoingPhoneAccount() 1201 ITelecomService service = getTelecomService(); in getUserSelectedOutgoingPhoneAccount() local 1202 if (service != null) { in getUserSelectedOutgoingPhoneAccount() 1204 return service.getUserSelectedOutgoingPhoneAccount( in getUserSelectedOutgoingPhoneAccount() 1224 ITelecomService service = getTelecomService(); in setUserSelectedOutgoingPhoneAccount() local 1225 if (service != null) { in setUserSelectedOutgoingPhoneAccount() 1227 service.setUserSelectedOutgoingPhoneAccount(accountHandle); in setUserSelectedOutgoingPhoneAccount() 1244 ITelecomService service = getTelecomService(); in getSimCallManager() local [all …]
|
/frameworks/native/libs/permission/ |
D | AppOpsManager.cpp | 56 sp<IAppOpsService> service = mService; in getService() local 57 while (service == nullptr || !IInterface::asBinder(service)->isBinderAlive()) { in getService() 66 service = nullptr; in getService() 71 service = interface_cast<IAppOpsService>(binder); in getService() 72 mService = service; in getService() 75 return service; in getService() 80 sp<IAppOpsService> service = getService(); in checkOp() local 81 return service != nullptr in checkOp() 82 ? service->checkOperation(op, uid, callingPackage) in checkOp() 88 sp<IAppOpsService> service = getService(); in checkAudioOpNoThrow() local [all …]
|
/frameworks/base/core/java/android/view/accessibility/ |
D | AccessibilityManager.java | 526 public AccessibilityManager(Context context, IAccessibilityManager service, int userId) { in AccessibilityManager() argument 534 tryConnectToServiceLocked(service); in AccessibilityManager() 551 public AccessibilityManager(Context context, Handler handler, IAccessibilityManager service, in AccessibilityManager() argument 559 tryConnectToServiceLocked(service); in AccessibilityManager() 577 IAccessibilityManager service = getServiceLocked(); in removeClient() local 578 if (service == null) { in removeClient() 582 return service.removeClient(mClient, mUserId); in removeClient() 645 IAccessibilityManager service = getServiceLocked(); in isTouchExplorationEnabled() local 646 if (service == null) { in isTouchExplorationEnabled() 667 IAccessibilityManager service = getServiceLocked(); in isHighTextContrastEnabled() local [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ManagedServicesTest.java | 24 import static android.service.notification.NotificationListenerService.META_DATA_DEFAULT_AUTOBIND; 205 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testBackupAndRestore_migration() local 209 service.onSettingRestored( in testBackupAndRestore_migration() 210 service.getConfig().secureSettingName, in testBackupAndRestore_migration() 214 verifyExpectedApprovedEntries(service, true); in testBackupAndRestore_migration() 217 service.onSettingRestored(service.getConfig().secondarySettingName, in testBackupAndRestore_migration() 221 verifyExpectedApprovedEntries(service); in testBackupAndRestore_migration() 254 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testBackupAndRestore_migration_preO() local 259 service.onSettingRestored( in testBackupAndRestore_migration_preO() 260 service.getConfig().secureSettingName, in testBackupAndRestore_migration_preO() [all …]
|
/frameworks/av/media/libaaudio/src/binding/ |
D | AAudioBinderClient.cpp | 119 std::shared_ptr<AAudioServiceInterface> service = getAAudioService(); in openStream() local 120 if (service.get() == nullptr) { in openStream() 124 AAudioHandleInfo handleInfo = service->openStream(request, configuration); in openStream() 137 std::shared_ptr<AAudioServiceInterface> service = getAAudioService(); in closeStream() local 138 if (service.get() == nullptr) return AAUDIO_ERROR_NO_SERVICE; in closeStream() 140 return service->closeStream(streamHandleInfo); in closeStream() 148 std::shared_ptr<AAudioServiceInterface> service = getAAudioService(); in getStreamDescription() local 149 if (service.get() == nullptr) return AAUDIO_ERROR_NO_SERVICE; in getStreamDescription() 151 return service->getStreamDescription(streamHandleInfo, endpointOut); in getStreamDescription() 155 std::shared_ptr<AAudioServiceInterface> service = getAAudioService(); in startStream() local [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/sharedconnectivity/service/ |
D | SharedConnectivityServiceTest.java | 17 package android.net.wifi.sharedconnectivity.service; 182 SharedConnectivityService service = createService(); in onBind_isNotNull() local 184 assertThat(service.onBind(new Intent())).isNotNull(); in onBind_isNotNull() 189 SharedConnectivityService service = createService(); in getHotspotNetworks() local 191 (ISharedConnectivityService.Stub) service.onBind(new Intent()); in getHotspotNetworks() 193 service.setHotspotNetworks(HOTSPOT_NETWORKS); in getHotspotNetworks() 201 SharedConnectivityService service = createService(); in getKnownNetworks() local 203 (ISharedConnectivityService.Stub) service.onBind(new Intent()); in getKnownNetworks() 205 service.setKnownNetworks(KNOWN_NETWORKS); in getKnownNetworks() 213 SharedConnectivityService service = createService(); in getSharedConnectivitySettingsState() local [all …]
|
/frameworks/base/core/java/android/app/ |
D | NotificationManager.java | 57 import android.service.notification.Adjustment; 58 import android.service.notification.Condition; 59 import android.service.notification.StatusBarNotification; 60 import android.service.notification.ZenDeviceEffects; 61 import android.service.notification.ZenModeConfig; 62 import android.service.notification.ZenPolicy; 733 INotificationManager service = getService(); in notifyAsPackage() local 738 service.enqueueNotificationWithTag(targetPackage, sender, tag, id, in notifyAsPackage() 751 INotificationManager service = getService(); in notifyAsUser() local 756 service.enqueueNotificationWithTag(pkg, mContext.getOpPackageName(), tag, id, in notifyAsUser() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationPackageTest.kt | 91 val service = makeService(pkg1, pkg2) in <lambda>() constant 92 service.addPackage(pkg1, null) in <lambda>() 93 val info = service.getInfo(pkg1.packageName) in <lambda>() 101 val userState = service.getUserState(pkg1.packageName) in <lambda>() 111 assertThat(service.queryValidVerificationPackageNames()) in <lambda>() 120 val service = makeService( in <lambda>() constant 124 service.addPackage(pkg1, null) in <lambda>() 125 service.addPackage(pkg2, null) in <lambda>() 127 service.getInfo(pkg1.packageName).apply { in <lambda>() 138 service.getUserState(pkg1.packageName).apply { in <lambda>() [all …]
|
D | DomainVerificationManagerApiTest.kt | 81 val service = makeService(pkgWithDomains).apply { in <lambda>() constant 85 val bundle = service.getUriRelativeFilterGroups(PKG_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>() 101 assertGroups(service, arrayListOf(pathGroup)) in <lambda>() 102 assertGroups(service, arrayListOf(queryGroup, pathGroup)) in <lambda>() 103 assertGroups(service, arrayListOf(queryGroup, fragmentGroup, pathGroup)) in <lambda>() 107 service: DomainVerificationService, in <lambda>() 112 service.setUriRelativeFilterGroups(PKG_ONE, bundle) in <lambda>() 113 val fetchedBundle = service.getUriRelativeFilterGroups(PKG_ONE, listOf(DOMAIN_1)) in <lambda>() 135 val service = makeService(pkgWithDomains, pkgWithoutDomains).apply { in <lambda>() constant 139 assertThat(service.queryValidVerificationPackageNames()) in <lambda>() [all …]
|
/frameworks/hardware/interfaces/vibrator/aidl/vts/functional/ |
D | VtsHalVibratorControlServiceTargetTest.cpp | 73 std::shared_ptr<IVibratorControlService> service = in requestVibrationParams() local 76 EXPECT_TRUE(service in requestVibrationParams() 89 service = IVibratorControlService::fromBinder(binder); in SetUp() 90 ASSERT_NE(service, nullptr); in SetUp() 93 std::shared_ptr<IVibratorControlService> service; member in android::VibratorControlServiceTest 100 EXPECT_TRUE(service->registerVibratorController(vibratorController).isOk()); in TEST_P() 102 EXPECT_TRUE(service->unregisterVibratorController(vibratorController).isOk()); in TEST_P() 111 EXPECT_TRUE(service->registerVibratorController(firstController).isOk()); in TEST_P() 112 EXPECT_TRUE(service->registerVibratorController(secondController).isOk()); in TEST_P() 114 EXPECT_TRUE(service->unregisterVibratorController(firstController).isOk()); in TEST_P() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/ |
D | Android.bp | 77 name: "android.hardware.drm-service.clearkey", 83 init_rc: ["android.hardware.drm-service.clearkey.rc"], 84 vintf_fragments: ["android.hardware.drm-service.clearkey.xml"], 88 name: "android.hardware.drm-service-lazy.clearkey", 93 overrides: ["android.hardware.drm-service.clearkey"], 95 init_rc: ["android.hardware.drm-service-lazy.clearkey.rc"], 96 vintf_fragments: ["android.hardware.drm-service.clearkey.xml"], 100 name: "android.hardware.drm-service.clearkey.apex", 101 stem: "android.hardware.drm-service.clearkey", 111 name: "android.hardware.drm-service-lazy.clearkey.apex", [all …]
|
/frameworks/base/telephony/java/android/service/euicc/ |
D | IEuiccService.aidl | 17 package android.service.euicc; 19 import android.service.euicc.IDeleteSubscriptionCallback; 20 import android.service.euicc.IDownloadSubscriptionCallback; 21 import android.service.euicc.IEraseSubscriptionsCallback; 22 import android.service.euicc.IGetAvailableMemoryInBytesCallback; 23 import android.service.euicc.IGetDefaultDownloadableSubscriptionListCallback; 24 import android.service.euicc.IGetDownloadableSubscriptionMetadataCallback; 25 import android.service.euicc.IGetEidCallback; 26 import android.service.euicc.IGetEuiccInfoCallback; 27 import android.service.euicc.IGetEuiccProfileInfoListCallback; [all …]
|
/frameworks/base/nfc/java/android/nfc/ |
D | INfcCardEmulation.aidl | 29 boolean isDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in isDefaultServiceForCategory() argument 30 boolean isDefaultServiceForAid(int userHandle, in ComponentName service, String aid); in isDefaultServiceForAid() argument 31 boolean setDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in setDefaultServiceForCategory() argument 32 boolean setDefaultForNextTap(int userHandle, in ComponentName service); in setDefaultForNextTap() argument 33 …faultToObserveModeForService(int userId, in android.content.ComponentName service, boolean enable); in setShouldDefaultToObserveModeForService() argument 34 …boolean registerAidGroupForService(int userHandle, in ComponentName service, in AidGroup aidGroup); in registerAidGroupForService() argument 35 …boolean registerPollingLoopFilterForService(int userHandle, in ComponentName service, in String po… in registerPollingLoopFilterForService() argument 36 …boolean registerPollingLoopPatternFilterForService(int userHandle, in ComponentName service, in St… in registerPollingLoopPatternFilterForService() argument 37 …boolean setOffHostForService(int userHandle, in ComponentName service, in String offHostSecureElem… in setOffHostForService() argument 38 boolean unsetOffHostForService(int userHandle, in ComponentName service); in unsetOffHostForService() argument [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_vibrator_VibratorManagerService.cpp | 73 NativeVibratorManagerService* service = reinterpret_cast<NativeVibratorManagerService*>(ptr); in destroyNativeService() local 74 if (service) { in destroyNativeService() 77 delete service; in destroyNativeService() 82 std::unique_ptr<NativeVibratorManagerService> service = in nativeInit() local 86 gManager = service->hal(); in nativeInit() 88 return reinterpret_cast<jlong>(service.release()); in nativeInit() 96 NativeVibratorManagerService* service = in nativeGetCapabilities() local 98 if (service == nullptr) { in nativeGetCapabilities() 102 auto result = service->hal()->getCapabilities(); in nativeGetCapabilities() 107 NativeVibratorManagerService* service = in nativeGetVibratorIds() local [all …]
|
/frameworks/native/libs/binder/rust/rpcbinder/src/server/ |
D | android.rs | 47 pub fn new_vsock(mut service: SpIBinder, cid: u32, port: u32) -> Result<RpcServer, Error> { in new_vsock() 48 let service = service.as_native_mut(); in new_vsock() localVariable 54 service, cid, port, in new_vsock() 63 mut service: SpIBinder, in new_bound_socket() 66 let service = service.as_native_mut(); in new_bound_socket() localVariable 73 service, in new_bound_socket() 84 mut service: SpIBinder, in new_unix_domain_bootstrap() 87 let service = service.as_native_mut(); in new_unix_domain_bootstrap() localVariable 94 service, in new_unix_domain_bootstrap() 102 pub fn new_inet(mut service: SpIBinder, address: &str, port: u32) -> Result<RpcServer, Error> { in new_inet() [all …]
|
/frameworks/base/nfc/java/android/nfc/cardemulation/ |
D | NfcFCardEmulation.java | 52 private NfcFCardEmulation(Context context, INfcFCardEmulation service) { in NfcFCardEmulation() argument 54 sService = service; in NfcFCardEmulation() 85 INfcFCardEmulation service = adapter.getNfcFCardEmulationService(); in getInstance() local 86 if (service == null) { in getInstance() 90 manager = new NfcFCardEmulation(context, service); in getInstance() 108 public String getSystemCodeForService(ComponentName service) throws RuntimeException { in getSystemCodeForService() argument 109 if (service == null) { in getSystemCodeForService() 113 return sService.getSystemCodeForService(mContext.getUser().getIdentifier(), service); in getSystemCodeForService() 123 service); in getSystemCodeForService() 154 public boolean registerSystemCodeForService(ComponentName service, String systemCode) in registerSystemCodeForService() argument [all …]
|
/frameworks/base/services/appprediction/java/com/android/server/appprediction/ |
D | AppPredictionManagerService.java | 91 final AppPredictionPerUserService service = peekServiceForUserLocked(userId); in onServicePackageUpdatedLocked() local 92 if (service != null) { in onServicePackageUpdatedLocked() 93 service.onPackageUpdatedLocked(); in onServicePackageUpdatedLocked() 99 final AppPredictionPerUserService service = peekServiceForUserLocked(userId); in onServicePackageRestartedLocked() local 100 if (service != null) { in onServicePackageRestartedLocked() 101 service.onPackageRestartedLocked(); in onServicePackageRestartedLocked() 115 runForUserLocked("createPredictionSession", sessionId, (service) -> in createPredictionSession() 116 service.onCreatePredictionSessionLocked(context, sessionId, token)); in createPredictionSession() 123 (service) -> service.notifyAppTargetEventLocked(sessionId, event)); in notifyAppTargetEvent() 129 runForUserLocked("notifyLaunchLocationShown", sessionId, (service) -> in notifyLaunchLocationShown() [all …]
|
/frameworks/base/services/translation/java/com/android/server/translation/ |
D | TranslationManagerService.java | 162 final TranslationManagerServiceImpl service = getServiceForUserLocked(userId); in onTranslationCapabilitiesRequest() local 163 if (service != null && (isDefaultServiceLocked(userId) in onTranslationCapabilitiesRequest() 165 service.onTranslationCapabilitiesRequestLocked(sourceFormat, targetFormat, in onTranslationCapabilitiesRequest() 176 TranslationManagerServiceImpl service; in registerTranslationCapabilityCallback() local 178 service = getServiceForUserLocked(userId); in registerTranslationCapabilityCallback() 180 if (service != null) { in registerTranslationCapabilityCallback() 181 service.registerTranslationCapabilityCallback(callback, Binder.getCallingUid()); in registerTranslationCapabilityCallback() 187 TranslationManagerServiceImpl service; in unregisterTranslationCapabilityCallback() local 189 service = getServiceForUserLocked(userId); in unregisterTranslationCapabilityCallback() 191 if (service != null) { in unregisterTranslationCapabilityCallback() [all …]
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStore2.java | 101 R execute(IKeystoreService service) throws RemoteException; in execute() argument 106 IKeystoreService service = getService(false /* retryLookup */); in handleRemoteExceptionWithRetry() local 110 return request.execute(service); in handleRemoteExceptionWithRetry() 120 service = getService(true /* retry Lookup */); in handleRemoteExceptionWithRetry() 165 handleRemoteExceptionWithRetry((service) -> { in delete() argument 166 service.deleteKey(descriptor); in delete() 177 return handleRemoteExceptionWithRetry((service) -> service.listEntries(domain, namespace)); in list() 188 (service) -> service.listEntriesBatched(domain, namespace, startPastAlias)); in listBatch() 252 (service) -> service.grant(descriptor, granteeUid, accessVector) in grant() 268 handleRemoteExceptionWithRetry((service) -> { in ungrant() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/ |
D | ServiceWrapper.kt | 19 import android.service.controls.IControlsActionCallback 20 import android.service.controls.IControlsProvider 21 import android.service.controls.IControlsSubscriber 22 import android.service.controls.IControlsSubscription 23 import android.service.controls.actions.ControlAction 24 import android.service.controls.actions.ControlActionWrapper 32 class ServiceWrapper(val service: IControlsProvider) { constant in com.android.systemui.controls.controller.ServiceWrapper 49 service.load(subscriber) in load() 55 service.loadSuggested(subscriber) in loadSuggested() 61 service.subscribe(controlIds, subscriber) in subscribe() [all …]
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibratorManagerServiceTest.java | 283 VibratorManagerService service = createService(); in createSystemReadyService() local 284 service.systemReady(); in createSystemReadyService() 285 return service; in createSystemReadyService() 320 void addService(String name, IBinder service) { in createService() 321 if (service instanceof VibratorManagerService.ExternalVibratorService) { in createService() 323 (VibratorManagerService.ExternalVibratorService) service; in createService() 324 } else if (service instanceof VibratorControlService) { in createService() 325 mVibratorControlService = (VibratorControlService) service; in createService() 380 VibratorManagerService service = createService(); in createService_doNotCrashIfUsedBeforeSystemReady() local 382 assertNotNull(service.getVibratorIds()); in createService_doNotCrashIfUsedBeforeSystemReady() [all …]
|