/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothHeadsetClient.java | 371 public IBluetoothHeadsetClient getServiceInterface(IBinder service) { 372 return IBluetoothHeadsetClient.Stub.asInterface(Binder.allowBlocking(service)); 413 final IBluetoothHeadsetClient service = in connect() local 415 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 417 return service.connect(device); in connect() 423 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 437 final IBluetoothHeadsetClient service = in disconnect() local 439 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 441 return service.disconnect(device); in disconnect() 447 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothHidHost.java | 224 public IBluetoothHidHost getServiceInterface(IBinder service) { 225 return IBluetoothHidHost.Stub.asInterface(Binder.allowBlocking(service)); 268 final IBluetoothHidHost service = getService(); in connect() local 269 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 271 return service.connect(device); in connect() 277 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 308 final IBluetoothHidHost service = getService(); in disconnect() local 309 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 311 return service.disconnect(device); in disconnect() 317 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothA2dp.java | 210 public IBluetoothA2dp getServiceInterface(IBinder service) { 211 return IBluetoothA2dp.Stub.asInterface(Binder.allowBlocking(service)); 260 final IBluetoothA2dp service = getService(); in connect() local 261 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 262 return service.connect(device); in connect() 264 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 301 final IBluetoothA2dp service = getService(); in disconnect() local 302 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 303 return service.disconnect(device); in disconnect() 305 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothHearingAid.java | 132 public IBluetoothHearingAid getServiceInterface(IBinder service) { 133 return IBluetoothHearingAid.Stub.asInterface(Binder.allowBlocking(service)); 173 final IBluetoothHearingAid service = getService(); in connect() local 175 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 176 return service.connect(device); in connect() 178 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 213 final IBluetoothHearingAid service = getService(); in disconnect() local 215 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 216 return service.disconnect(device); in disconnect() 218 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 | BluetoothA2dpSink.java | 129 public IBluetoothA2dpSink getServiceInterface(IBinder service) { 130 return IBluetoothA2dpSink.Stub.asInterface(Binder.allowBlocking(service)); 179 final IBluetoothA2dpSink service = getService(); in connect() local 180 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 182 return service.connect(device); in connect() 188 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 220 final IBluetoothA2dpSink service = getService(); in disconnect() local 221 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 223 return service.disconnect(device); in disconnect() 229 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothSap.java | 95 public IBluetoothSap getServiceInterface(IBinder service) { 96 return IBluetoothSap.Stub.asInterface(Binder.allowBlocking(service)); 142 final IBluetoothSap service = getService(); in getState() local 143 if (service != null) { in getState() 145 return service.getState(); in getState() 165 final IBluetoothSap service = getService(); in getClient() local 166 if (service != null) { in getClient() 168 return service.getClient(); in getClient() 188 final IBluetoothSap service = getService(); in isConnected() local 189 if (service != null) { in isConnected() [all …]
|
D | BluetoothPbapClient.java | 55 public IBluetoothPbapClient getServiceInterface(IBinder service) { 56 return IBluetoothPbapClient.Stub.asInterface(Binder.allowBlocking(service)); 106 final IBluetoothPbapClient service = getService(); in connect() local 107 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 109 return service.connect(device); in connect() 115 if (service == null) { in connect() 131 final IBluetoothPbapClient service = getService(); in disconnect() local 132 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 134 service.disconnect(device); in disconnect() 141 if (service == null) { in disconnect() [all …]
|
D | BluetoothMapClient.java | 80 public IBluetoothMapClient getServiceInterface(IBinder service) { 81 return IBluetoothMapClient.Stub.asInterface(Binder.allowBlocking(service)); 123 final IBluetoothMapClient service = getService(); in isConnected() local 124 if (service != null) { in isConnected() 126 return service.isConnected(device); in isConnected() 143 final IBluetoothMapClient service = getService(); in connect() local 144 if (service != null) { in connect() 146 return service.connect(device); in connect() 165 final IBluetoothMapClient service = getService(); in disconnect() local 166 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() [all …]
|
D | BluetoothMap.java | 57 public IBluetoothMap getServiceInterface(IBinder service) { 58 return IBluetoothMap.Stub.asInterface(Binder.allowBlocking(service)); 101 final IBluetoothMap service = getService(); in getState() local 102 if (service != null) { in getState() 104 return service.getState(); in getState() 123 final IBluetoothMap service = getService(); in getClient() local 124 if (service != null) { in getClient() 126 return service.getClient(); in getClient() 144 final IBluetoothMap service = getService(); in isConnected() local 145 if (service != null) { in isConnected() [all …]
|
D | BluetoothDevice.java | 1009 final IBluetooth service = sService; in getName() local 1010 if (service == null) { in getName() 1015 String name = service.getRemoteName(this); in getName() 1034 final IBluetooth service = sService; in getType() local 1035 if (service == null) { in getType() 1040 return service.getRemoteType(this); in getType() 1056 final IBluetooth service = sService; in getAlias() local 1057 if (service == null) { in getAlias() 1062 return service.getRemoteAlias(this); in getAlias() 1081 final IBluetooth service = sService; in setAlias() local [all …]
|
D | BluetoothPan.java | 126 public IBluetoothPan getServiceInterface(IBinder service) { 127 return IBluetoothPan.Stub.asInterface(Binder.allowBlocking(service)); 177 final IBluetoothPan service = getService(); in connect() local 178 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 180 return service.connect(device); in connect() 186 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 218 final IBluetoothPan service = getService(); in disconnect() local 219 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 221 return service.disconnect(device); in disconnect() 227 if (service == null) Log.w(TAG, "Proxy not attached to service"); 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 | BluetoothHidDevice.java | 386 public IBluetoothHidDevice getServiceInterface(IBinder service) { 387 return IBluetoothHidDevice.Stub.asInterface(Binder.allowBlocking(service)); 407 final IBluetoothHidDevice service = getService(); in getConnectedDevices() local 408 if (service != null) { in getConnectedDevices() 410 return service.getConnectedDevices(); in getConnectedDevices() 424 final IBluetoothHidDevice service = getService(); in getDevicesMatchingConnectionStates() local 425 if (service != null) { in getDevicesMatchingConnectionStates() 427 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates() 441 final IBluetoothHidDevice service = getService(); in getConnectionState() local 442 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/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/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/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/services/core/java/com/android/server/ |
D | SystemServiceManager.java | 98 final T service; in startService() local 101 service = constructor.newInstance(mContext); in startService() 116 startService(service); in startService() 117 return service; in startService() 123 public void startService(@NonNull final SystemService service) { in startService() argument 125 mServices.add(service); in startService() 129 service.onStart(); in startService() 131 throw new RuntimeException("Failed to start service " + service.getClass().getName() in startService() 134 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onStart"); in startService() local 154 final SystemService service = mServices.get(i); in startBootPhase() local [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/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/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 …]
|