/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothHeadsetClient.java | 407 public IBluetoothHeadsetClient getServiceInterface(IBinder service) { 408 return IBluetoothHeadsetClient.Stub.asInterface(Binder.allowBlocking(service)); 451 final IBluetoothHeadsetClient service = in connect() local 453 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 455 return service.connect(device); in connect() 461 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 477 final IBluetoothHeadsetClient service = in disconnect() local 479 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 481 return service.disconnect(device); in disconnect() 487 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothHeadset.java | 445 final IBluetoothHeadset service = mService; in connect() local 446 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 448 return service.connect(device); in connect() 454 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 487 final IBluetoothHeadset service = mService; in disconnect() local 488 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 490 return service.disconnect(device); in disconnect() 496 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() 506 final IBluetoothHeadset service = mService; in getConnectedDevices() local 507 if (service != null && isEnabled()) { in getConnectedDevices() [all …]
|
D | BluetoothHidHost.java | 231 public IBluetoothHidHost getServiceInterface(IBinder service) { 232 return IBluetoothHidHost.Stub.asInterface(Binder.allowBlocking(service)); 273 final IBluetoothHidHost service = getService(); in connect() local 274 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 276 return service.connect(device); in connect() 282 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 311 final IBluetoothHidHost service = getService(); in disconnect() local 312 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 314 return service.disconnect(device); in disconnect() 320 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothA2dp.java | 233 public IBluetoothA2dp getServiceInterface(IBinder service) { 234 return IBluetoothA2dp.Stub.asInterface(Binder.allowBlocking(service)); 282 final IBluetoothA2dp service = getService(); in connect() local 283 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 284 return service.connect(device); in connect() 286 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 322 final IBluetoothA2dp service = getService(); in disconnect() local 323 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 324 return service.disconnect(device); in disconnect() 326 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothHearingAid.java | 133 public IBluetoothHearingAid getServiceInterface(IBinder service) { 134 return IBluetoothHearingAid.Stub.asInterface(Binder.allowBlocking(service)); 172 final IBluetoothHearingAid service = getService(); in connect() local 174 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 175 return service.connect(device); in connect() 177 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 210 final IBluetoothHearingAid service = getService(); in disconnect() local 212 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 213 return service.disconnect(device); in disconnect() 215 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothA2dpSink.java | 78 public IBluetoothA2dpSink getServiceInterface(IBinder service) { 79 return IBluetoothA2dpSink.Stub.asInterface(Binder.allowBlocking(service)); 126 final IBluetoothA2dpSink service = getService(); in connect() local 127 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 129 return service.connect(device); in connect() 135 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 165 final IBluetoothA2dpSink service = getService(); in disconnect() local 166 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 168 return service.disconnect(device); in disconnect() 174 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothMapClient.java | 120 public IBluetoothMapClient getServiceInterface(IBinder service) { 121 return IBluetoothMapClient.Stub.asInterface(Binder.allowBlocking(service)); 163 final IBluetoothMapClient service = getService(); in isConnected() local 164 if (service != null) { in isConnected() 166 return service.isConnected(device); in isConnected() 186 final IBluetoothMapClient service = getService(); in connect() local 187 if (service != null) { in connect() 189 return service.connect(device); in connect() 211 final IBluetoothMapClient service = getService(); in disconnect() local 212 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() [all …]
|
D | BluetoothSap.java | 97 public IBluetoothSap getServiceInterface(IBinder service) { 98 return IBluetoothSap.Stub.asInterface(Binder.allowBlocking(service)); 144 final IBluetoothSap service = getService(); in getState() local 145 if (service != null) { in getState() 147 return service.getState(); in getState() 167 final IBluetoothSap service = getService(); in getClient() local 168 if (service != null) { in getClient() 170 return service.getClient(); in getClient() 190 final IBluetoothSap service = getService(); in isConnected() local 191 if (service != null) { in isConnected() [all …]
|
D | BluetoothDevice.java | 1025 final IBluetooth service = sService; in getName() local 1026 if (service == null) { in getName() 1031 String name = service.getRemoteName(this); in getName() 1054 final IBluetooth service = sService; in getType() local 1055 if (service == null) { in getType() 1060 return service.getRemoteType(this); in getType() 1077 final IBluetooth service = sService; in getAlias() local 1078 if (service == null) { in getAlias() 1083 String alias = service.getRemoteAlias(this); in getAlias() 1107 final IBluetooth service = sService; in setAlias() local [all …]
|
D | BluetoothPbapClient.java | 58 public IBluetoothPbapClient getServiceInterface(IBinder service) { 59 return IBluetoothPbapClient.Stub.asInterface(Binder.allowBlocking(service)); 112 final IBluetoothPbapClient service = getService(); in connect() local 113 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 115 return service.connect(device); in connect() 121 if (service == null) { in connect() 140 final IBluetoothPbapClient service = getService(); in disconnect() local 141 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 143 service.disconnect(device); in disconnect() 150 if (service == null) { in disconnect() [all …]
|
D | BluetoothAvrcpController.java | 84 public IBluetoothAvrcpController getServiceInterface(IBinder service) { 86 Binder.allowBlocking(service)); 118 final IBluetoothAvrcpController service = in getConnectedDevices() local 120 if (service != null && isEnabled()) { in getConnectedDevices() 122 return service.getConnectedDevices(); in getConnectedDevices() 128 if (service == null) Log.w(TAG, "Proxy not attached to service"); in getConnectedDevices() 138 final IBluetoothAvrcpController service = in getDevicesMatchingConnectionStates() local 140 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 142 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates() 148 if (service == null) Log.w(TAG, "Proxy not attached to service"); in getDevicesMatchingConnectionStates() [all …]
|
D | BluetoothPan.java | 151 public IBluetoothPan getServiceInterface(IBinder service) { 152 return IBluetoothPan.Stub.asInterface(Binder.allowBlocking(service)); 205 final IBluetoothPan service = getService(); in connect() local 206 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 208 return service.connect(device); in connect() 214 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 243 final IBluetoothPan service = getService(); in disconnect() local 244 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 246 return service.disconnect(device); in disconnect() 252 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothMap.java | 79 public IBluetoothMap getServiceInterface(IBinder service) { 80 return IBluetoothMap.Stub.asInterface(Binder.allowBlocking(service)); 132 final IBluetoothMap service = getService(); in getState() local 133 if (service != null) { in getState() 135 return service.getState(); in getState() 156 final IBluetoothMap service = getService(); in getClient() local 157 if (service != null) { in getClient() 159 return service.getClient(); in getClient() 179 final IBluetoothMap service = getService(); in isConnected() local 180 if (service != null) { in isConnected() [all …]
|
D | BluetoothHidDevice.java | 391 public IBluetoothHidDevice getServiceInterface(IBinder service) { 392 return IBluetoothHidDevice.Stub.asInterface(Binder.allowBlocking(service)); 412 final IBluetoothHidDevice service = getService(); in getConnectedDevices() local 413 if (service != null) { in getConnectedDevices() 415 return service.getConnectedDevices(); in getConnectedDevices() 429 final IBluetoothHidDevice service = getService(); in getDevicesMatchingConnectionStates() local 430 if (service != null) { in getDevicesMatchingConnectionStates() 432 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates() 446 final IBluetoothHidDevice service = getService(); in getConnectionState() local 447 if (service != null) { in getConnectionState() [all …]
|
/frameworks/native/libs/binder/ |
D | AppOpsManager.cpp | 43 static const sp<IBinder>& getToken(const sp<IAppOpsService>& service) { in getToken() argument 46 gToken = service->getToken(new BBinder()); in getToken() 65 sp<IAppOpsService> service = mService; in getService() local 66 while (service == nullptr || !IInterface::asBinder(service)->isBinderAlive()) { in getService() 75 service = nullptr; in getService() 80 service = interface_cast<IAppOpsService>(binder); in getService() 81 mService = service; in getService() 84 return service; in getService() 90 sp<IAppOpsService> service = getService(); in checkOp() local 91 return service != nullptr in checkOp() [all …]
|
D | ActivityManager.cpp | 36 sp<IActivityManager> service = mService; in getService() local 37 while (service == nullptr || !IInterface::asBinder(service)->isBinderAlive()) { in getService() 46 service = nullptr; in getService() 51 service = interface_cast<IActivityManager>(binder); in getService() 52 mService = service; in getService() 55 return service; in getService() 60 sp<IActivityManager> service = getService(); in openContentUri() local 61 return service != nullptr ? service->openContentUri(stringUri) : -1; in openContentUri() 69 sp<IActivityManager> service = getService(); in registerUidObserver() local 70 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/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ManagedServicesTest.java | 163 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testBackupAndRestore_migration() local 167 service.onSettingRestored( in testBackupAndRestore_migration() 168 service.getConfig().secureSettingName, in testBackupAndRestore_migration() 172 verifyExpectedApprovedEntries(service, true); in testBackupAndRestore_migration() 175 service.onSettingRestored(service.getConfig().secondarySettingName, in testBackupAndRestore_migration() 179 verifyExpectedApprovedEntries(service); in testBackupAndRestore_migration() 212 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testBackupAndRestore_migration_preO() local 217 service.onSettingRestored( in testBackupAndRestore_migration_preO() 218 service.getConfig().secureSettingName, in testBackupAndRestore_migration_preO() 224 service.onSettingRestored(service.getConfig().secondarySettingName, in testBackupAndRestore_migration_preO() [all …]
|
/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() 61 sp<hardware::ISensorPrivacyManager> service = getService(); in addSensorPrivacyListener() local 62 if (service != nullptr) { in addSensorPrivacyListener() 63 service->addSensorPrivacyListener(listener); in addSensorPrivacyListener() 70 sp<hardware::ISensorPrivacyManager> service = getService(); in removeSensorPrivacyListener() local [all …]
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | PartialBucket_e2e_test.cpp | 35 void SendConfig(StatsService& service, const StatsdConfig& config) { in SendConfig() argument 40 service.addConfiguration(kConfigKey, configAsVec, String16(kAndroid.c_str())); in SendConfig() 114 StatsService service(nullptr, nullptr); in TEST() local 115 SendConfig(service, MakeConfig()); in TEST() 119 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 1).get()); in TEST() 120 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 2).get()); in TEST() 122 ConfigMetricsReport report = GetReports(service.mProcessor, start + 3); in TEST() 129 StatsService service(nullptr, nullptr); in TEST() local 130 SendConfig(service, MakeConfig()); in TEST() 135 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 1).get()); in TEST() [all …]
|
/frameworks/base/core/java/android/app/ |
D | NotificationManager.java | 45 import android.service.notification.Adjustment; 46 import android.service.notification.Condition; 47 import android.service.notification.StatusBarNotification; 48 import android.service.notification.ZenModeConfig; 471 INotificationManager service = getService(); in notifyAsPackage() local 476 service.enqueueNotificationWithTag(targetPackage, sender, tag, id, in notifyAsPackage() 489 INotificationManager service = getService(); in notifyAsUser() local 494 service.enqueueNotificationWithTag(pkg, mContext.getOpPackageName(), tag, id, in notifyAsUser() 560 INotificationManager service = getService(); in cancelAsUser() local 564 service.cancelNotificationWithTag(pkg, tag, id, user.getIdentifier()); in cancelAsUser() [all …]
|
/frameworks/av/media/libaaudio/src/binding/ |
D | AAudioBinderClient.cpp | 133 const sp<IAAudioService> &service = getAAudioService(); in openStream() local 134 if (service.get() == nullptr) return AAUDIO_ERROR_NO_SERVICE; in openStream() 136 stream = service->openStream(request, configurationOutput); in openStream() 149 const sp<IAAudioService> service = getAAudioService(); in closeStream() local 150 if (service.get() == nullptr) return AAUDIO_ERROR_NO_SERVICE; in closeStream() 151 return service->closeStream(streamHandle); in closeStream() 159 const sp<IAAudioService> service = getAAudioService(); in getStreamDescription() local 160 if (service.get() == nullptr) return AAUDIO_ERROR_NO_SERVICE; in getStreamDescription() 161 return service->getStreamDescription(streamHandle, parcelable); in getStreamDescription() 165 const sp<IAAudioService> service = getAAudioService(); in startStream() local [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemServiceManager.java | 99 final T service; in startService() local 102 service = constructor.newInstance(mContext); in startService() 117 startService(service); in startService() 118 return service; in startService() 124 public void startService(@NonNull final SystemService service) { in startService() argument 126 mServices.add(service); in startService() 130 service.onStart(); in startService() 132 throw new RuntimeException("Failed to start service " + service.getClass().getName() in startService() 135 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onStart"); in startService() local 155 final SystemService service = mServices.get(i); in startBootPhase() local [all …]
|
/frameworks/base/cmds/statsd/tests/ |
D | StatsService_test.cpp | 36 StatsService service(nullptr, nullptr); in TEST() local 42 service.addConfigurationChecked(123, 12345, {serialized.begin(), serialized.end()})); in TEST() 46 StatsService service(nullptr, nullptr); in TEST() local 50 service.addConfigurationChecked(123, 12345, {serialized.begin(), serialized.end()})); in TEST() 54 StatsService service(nullptr, nullptr); in TEST() local 58 service.addConfigurationChecked(123, 12345, {serialized.begin(), serialized.end()})); in TEST() 72 StatsService service(nullptr, nullptr); in TEST() local 73 service.mEngBuild = true; in TEST() 76 EXPECT_FALSE(service.getUidFromArgs(args, 0, uid)); in TEST() 79 EXPECT_TRUE(service.getUidFromArgs(args, 1, uid)); in TEST() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ServiceTest.java | 119 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected() argument 142 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected() argument 148 service.transact(SET_REPORTER_CODE, data, null, 0); in onServiceConnected() 190 void startExpectResult(Intent service) { in startExpectResult() argument 191 startExpectResult(service, new Bundle()); in startExpectResult() 194 void startExpectResult(Intent service, Bundle bundle) { in startExpectResult() argument 200 getContext().startService(new Intent(service).putExtras(bundle)); in startExpectResult() 204 getContext().startService(new Intent(service).putExtras(bundle)); in startExpectResult() 210 getContext().stopService(service); in startExpectResult() 218 getContext().stopService(service); in startExpectResult() [all …]
|