/frameworks/native/libs/sensorprivacy/ |
D | SensorPrivacyManager.cpp | 36 sp<hardware::ISensorPrivacyManager> service = mService; in getService() local 37 while (service == nullptr || !IInterface::asBinder(service)->isBinderAlive()) { in getService() 46 service = nullptr; in getService() 51 service = interface_cast<hardware::ISensorPrivacyManager>(binder); in getService() 52 mService = service; in getService() 55 return service; in getService() 60 sp<hardware::ISensorPrivacyManager> service = getService(); in supportsSensorToggle() local 61 if (service != nullptr) { in supportsSensorToggle() 63 service->supportsSensorToggle(sensor, &result); in supportsSensorToggle() 77 sp<hardware::ISensorPrivacyManager> service = getService(); in addSensorPrivacyListener() local [all …]
|
/frameworks/native/libs/binder/ |
D | ActivityManager.cpp | 37 sp<IActivityManager> service = mService; in getService() local 38 while (service == nullptr || !IInterface::asBinder(service)->isBinderAlive()) { in getService() 47 service = nullptr; in getService() 52 service = interface_cast<IActivityManager>(binder); in getService() 53 mService = service; in getService() 56 return service; in getService() 61 sp<IActivityManager> service = getService(); in openContentUri() local 62 return service != nullptr ? service->openContentUri(stringUri) : -1; in openContentUri() 70 sp<IActivityManager> service = getService(); in registerUidObserver() local 71 if (service != nullptr) { in registerUidObserver() [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/telecomm/java/android/telecom/ |
D | TelecomManager.java | 1096 ITelecomService service = getTelecomService(); in getDefaultOutgoingPhoneAccount() local 1097 if (service != null) { in getDefaultOutgoingPhoneAccount() 1099 return service.getDefaultOutgoingPhoneAccount(uriScheme, in getDefaultOutgoingPhoneAccount() 1123 ITelecomService service = getTelecomService(); in getUserSelectedOutgoingPhoneAccount() local 1124 if (service != null) { in getUserSelectedOutgoingPhoneAccount() 1126 return service.getUserSelectedOutgoingPhoneAccount( in getUserSelectedOutgoingPhoneAccount() 1146 ITelecomService service = getTelecomService(); in setUserSelectedOutgoingPhoneAccount() local 1147 if (service != null) { in setUserSelectedOutgoingPhoneAccount() 1149 service.setUserSelectedOutgoingPhoneAccount(accountHandle); in setUserSelectedOutgoingPhoneAccount() 1166 ITelecomService service = getTelecomService(); in getSimCallManager() local [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ManagedServicesTest.java | 177 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testBackupAndRestore_migration() local 181 service.onSettingRestored( in testBackupAndRestore_migration() 182 service.getConfig().secureSettingName, in testBackupAndRestore_migration() 186 verifyExpectedApprovedEntries(service, true); in testBackupAndRestore_migration() 189 service.onSettingRestored(service.getConfig().secondarySettingName, in testBackupAndRestore_migration() 193 verifyExpectedApprovedEntries(service); in testBackupAndRestore_migration() 226 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testBackupAndRestore_migration_preO() local 231 service.onSettingRestored( in testBackupAndRestore_migration_preO() 232 service.getConfig().secureSettingName, in testBackupAndRestore_migration_preO() 238 service.onSettingRestored(service.getConfig().secondarySettingName, in testBackupAndRestore_migration_preO() [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/bluetooth/ |
D | BluetoothHeadsetClient.java | 435 public IBluetoothHeadsetClient getServiceInterface(IBinder service) { 436 return IBluetoothHeadsetClient.Stub.asInterface(Binder.allowBlocking(service)); 483 final IBluetoothHeadsetClient service = in connect() local 485 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 487 return service.connect(device, mAttributionSource); in connect() 493 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 511 final IBluetoothHeadsetClient service = in disconnect() local 513 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 515 return service.disconnect(device, mAttributionSource); in disconnect() 521 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothA2dp.java | 275 public IBluetoothA2dp getServiceInterface(IBinder service) { 276 return IBluetoothA2dp.Stub.asInterface(Binder.allowBlocking(service)); 328 final IBluetoothA2dp service = getService(); in connect() local 329 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 330 return service.connect(device); in connect() 332 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 370 final IBluetoothA2dp service = getService(); in disconnect() local 371 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 372 return service.disconnect(device); in disconnect() 374 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothHeadset.java | 483 final IBluetoothHeadset service = mService; in connect() local 484 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 486 return service.connect(device); in connect() 492 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 524 final IBluetoothHeadset service = mService; in disconnect() local 525 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 527 return service.disconnect(device); in disconnect() 533 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() 545 final IBluetoothHeadset service = mService; in getConnectedDevices() local 546 if (service != null && isEnabled()) { in getConnectedDevices() [all …]
|
D | BluetoothHidHost.java | 247 public IBluetoothHidHost getServiceInterface(IBinder service) { 248 return IBluetoothHidHost.Stub.asInterface(Binder.allowBlocking(service)); 295 final IBluetoothHidHost service = getService(); in connect() local 296 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 298 return service.connect(device, mAttributionSource); in connect() 304 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 337 final IBluetoothHidHost service = getService(); in disconnect() local 338 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 340 return service.disconnect(device, mAttributionSource); in disconnect() 346 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothLeAudio.java | 112 public IBluetoothLeAudio getServiceInterface(IBinder service) { 113 return IBluetoothLeAudio.Stub.asInterface(Binder.allowBlocking(service)); 168 final IBluetoothLeAudio service = getService(); in connect() local 169 if (service != null && mAdapter.isEnabled() && isValidDevice(device)) { in connect() 170 return service.connect(device, mAttributionSource); in connect() 172 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 208 final IBluetoothLeAudio service = getService(); in disconnect() local 209 if (service != null && mAdapter.isEnabled() && isValidDevice(device)) { in disconnect() 210 return service.disconnect(device, mAttributionSource); in disconnect() 212 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothHearingAid.java | 141 public IBluetoothHearingAid getServiceInterface(IBinder service) { 142 return IBluetoothHearingAid.Stub.asInterface(Binder.allowBlocking(service)); 186 final IBluetoothHearingAid service = getService(); in connect() local 188 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 189 return service.connect(device, mAttributionSource); in connect() 191 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 228 final IBluetoothHearingAid service = getService(); in disconnect() local 230 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 231 return service.disconnect(device, mAttributionSource); in disconnect() 233 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothSap.java | 107 public IBluetoothSap getServiceInterface(IBinder service) { 108 return IBluetoothSap.Stub.asInterface(Binder.allowBlocking(service)); 158 final IBluetoothSap service = getService(); in getState() local 159 if (service != null) { in getState() 161 return service.getState(mAttributionSource); in getState() 183 final IBluetoothSap service = getService(); in getClient() local 184 if (service != null) { in getClient() 187 service.getClient(mAttributionSource), mAttributionSource); in getClient() 209 final IBluetoothSap service = getService(); in isConnected() local 210 if (service != null) { in isConnected() [all …]
|
D | BluetoothA2dpSink.java | 89 public IBluetoothA2dpSink getServiceInterface(IBinder service) { 90 return IBluetoothA2dpSink.Stub.asInterface(Binder.allowBlocking(service)); 143 final IBluetoothA2dpSink service = getService(); in connect() local 144 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 146 return service.connect(device, mAttributionSource); in connect() 152 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 184 final IBluetoothA2dpSink service = getService(); in disconnect() local 185 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 187 return service.disconnect(device, mAttributionSource); in disconnect() 193 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothPbapClient.java | 68 public IBluetoothPbapClient getServiceInterface(IBinder service) { 69 return IBluetoothPbapClient.Stub.asInterface(Binder.allowBlocking(service)); 127 final IBluetoothPbapClient service = getService(); in connect() local 128 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 130 return service.connect(device, mAttributionSource); in connect() 136 if (service == null) { in connect() 159 final IBluetoothPbapClient service = getService(); in disconnect() local 160 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 162 service.disconnect(device, mAttributionSource); in disconnect() 169 if (service == null) { in disconnect() [all …]
|
D | BluetoothMapClient.java | 183 public IBluetoothMapClient getServiceInterface(IBinder service) { 184 return IBluetoothMapClient.Stub.asInterface(Binder.allowBlocking(service)); 224 final IBluetoothMapClient service = getService(); in isConnected() local 225 if (service != null) { in isConnected() 227 return service.isConnected(device, mAttributionSource); in isConnected() 251 final IBluetoothMapClient service = getService(); in connect() local 252 if (service != null) { in connect() 254 return service.connect(device, mAttributionSource); in connect() 280 final IBluetoothMapClient service = getService(); in disconnect() local 281 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() [all …]
|
D | BluetoothAvrcpController.java | 97 public IBluetoothAvrcpController getServiceInterface(IBinder service) { 99 Binder.allowBlocking(service)); 135 final IBluetoothAvrcpController service = in getConnectedDevices() local 137 if (service != null && isEnabled()) { in getConnectedDevices() 140 service.getConnectedDevices(mAttributionSource), mAttributionSource); in getConnectedDevices() 146 if (service == null) Log.w(TAG, "Proxy not attached to service"); in getConnectedDevices() 158 final IBluetoothAvrcpController service = in getDevicesMatchingConnectionStates() local 160 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 163 service.getDevicesMatchingConnectionStates(states, mAttributionSource), in getDevicesMatchingConnectionStates() 170 if (service == null) Log.w(TAG, "Proxy not attached to service"); in getDevicesMatchingConnectionStates() [all …]
|
/frameworks/base/core/java/android/app/ |
D | NotificationManager.java | 49 import android.service.notification.Adjustment; 50 import android.service.notification.Condition; 51 import android.service.notification.StatusBarNotification; 52 import android.service.notification.ZenModeConfig; 53 import android.service.notification.ZenPolicy; 654 INotificationManager service = getService(); in notifyAsPackage() local 659 service.enqueueNotificationWithTag(targetPackage, sender, tag, id, in notifyAsPackage() 672 INotificationManager service = getService(); in notifyAsUser() local 677 service.enqueueNotificationWithTag(pkg, mContext.getOpPackageName(), tag, id, in notifyAsUser() 762 INotificationManager service = getService(); in cancelAsPackage() local [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
D | VibratorManagerServiceTest.java | 190 VibratorManagerService service = createService(); in createSystemReadyService() local 191 service.systemReady(); in createSystemReadyService() 192 return service; in createSystemReadyService() 217 void addService(String name, IBinder service) { in createService() argument 218 Object serviceInstance = service; in createService() 239 VibratorManagerService service = createService(); 241 assertNotNull(service.getVibratorIds()); 242 assertNotNull(service.getVibratorInfo(1)); 243 assertFalse(service.isVibrating(1)); 247 vibrate(service, effect, HAPTIC_FEEDBACK_ATTRS); [all …]
|
/frameworks/av/media/libaaudio/src/binding/ |
D | AAudioBinderClient.cpp | 127 std::shared_ptr<AAudioServiceInterface> service = getAAudioService(); in openStream() local 128 if (service.get() == nullptr) return AAUDIO_ERROR_NO_SERVICE; in openStream() 130 stream = service->openStream(request, configuration); in openStream() 143 std::shared_ptr<AAudioServiceInterface> service = getAAudioService(); in closeStream() local 144 if (service.get() == nullptr) return AAUDIO_ERROR_NO_SERVICE; in closeStream() 146 return service->closeStream(streamHandle); in closeStream() 154 std::shared_ptr<AAudioServiceInterface> service = getAAudioService(); in getStreamDescription() local 155 if (service.get() == nullptr) return AAUDIO_ERROR_NO_SERVICE; in getStreamDescription() 157 return service->getStreamDescription(streamHandle, endpointOut); in getStreamDescription() 161 std::shared_ptr<AAudioServiceInterface> service = getAAudioService(); in startStream() local [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationManagerApiTest.kt | 75 val service = makeService(pkgWithDomains, pkgWithoutDomains).apply { in <lambda>() constant 79 assertThat(service.queryValidVerificationPackageNames()) in <lambda>() 88 val service = makeService(pkgWithDomains, pkgWithoutDomains).apply { in <lambda>() constant 92 assertThat(service.getDomainVerificationInfoId(PKG_ONE)).isEqualTo(UUID_ONE) in <lambda>() 93 assertThat(service.getDomainVerificationInfoId(PKG_TWO)).isEqualTo(UUID_TWO) in <lambda>() 95 assertThat(service.getDomainVerificationInfoId("invalid.pkg.name")).isEqualTo(null) in <lambda>() 103 val service = makeService(pkgWithDomains, pkgWithoutDomains).apply { in <lambda>() constant 107 val infoOne = service.getDomainVerificationInfo(pkgWithDomains.getName()) in <lambda>() 116 assertThat(service.getDomainVerificationInfo(pkgWithoutDomains.getName())).isNull() in <lambda>() 119 service.getDomainVerificationInfo("invalid.pkg.name") in <lambda>() [all …]
|
D | DomainVerificationPackageTest.kt | 82 val service = makeService(pkg1, pkg2) in <lambda>() constant 83 service.addPackage(pkg1) in <lambda>() 84 val info = service.getInfo(pkg1.getName()) in <lambda>() 92 val userState = service.getUserState(pkg1.getName()) in <lambda>() 102 assertThat(service.queryValidVerificationPackageNames()) in <lambda>() 111 val service = makeService( in <lambda>() constant 115 service.addPackage(pkg1) in <lambda>() 116 service.addPackage(pkg2) in <lambda>() 118 service.getInfo(pkg1.getName()).apply { in <lambda>() 129 service.getUserState(pkg1.getName()).apply { in <lambda>() [all …]
|
/frameworks/base/core/java/android/view/accessibility/ |
D | AccessibilityManager.java | 474 public AccessibilityManager(Context context, IAccessibilityManager service, int userId) { in AccessibilityManager() argument 482 tryConnectToServiceLocked(service); in AccessibilityManager() 499 public AccessibilityManager(Context context, Handler handler, IAccessibilityManager service, in AccessibilityManager() argument 507 tryConnectToServiceLocked(service); in AccessibilityManager() 525 IAccessibilityManager service = getServiceLocked(); in removeClient() local 526 if (service == null) { in removeClient() 530 return service.removeClient(mClient, mUserId); in removeClient() 565 IAccessibilityManager service = getServiceLocked(); in isTouchExplorationEnabled() local 566 if (service == null) { in isTouchExplorationEnabled() 587 IAccessibilityManager service = getServiceLocked(); in isHighTextContrastEnabled() local [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.IGetDefaultDownloadableSubscriptionListCallback; 23 import android.service.euicc.IGetDownloadableSubscriptionMetadataCallback; 24 import android.service.euicc.IGetEidCallback; 25 import android.service.euicc.IGetEuiccInfoCallback; 26 import android.service.euicc.IGetEuiccProfileInfoListCallback; 27 import android.service.euicc.IGetOtaStatusCallback; [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 …]
|