/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 == NULL || !IInterface::asBinder(service)->isBinderAlive()) { in getService() 75 service = NULL; 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 != NULL in checkOp() [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothHeadsetClient.java | 482 final IBluetoothHeadsetClient service = mService; in connect() local 483 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 485 return service.connect(device); in connect() 491 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 506 final IBluetoothHeadsetClient service = mService; in disconnect() local 507 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 509 return service.disconnect(device); in disconnect() 515 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() 527 final IBluetoothHeadsetClient service = mService; in getConnectedDevices() local 528 if (service != null && isEnabled()) { in getConnectedDevices() [all …]
|
D | BluetoothHeadset.java | 414 final IBluetoothHeadset service = mService; 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() 455 final IBluetoothHeadset service = mService; in disconnect() local 456 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 458 return service.disconnect(device); in disconnect() 464 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() 473 final IBluetoothHeadset service = mService; in getConnectedDevices() local 474 if (service != null && isEnabled()) { in getConnectedDevices() [all …]
|
D | BluetoothInputDevice.java | 328 final IBluetoothInputDevice service = mService; in connect() local 329 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 331 return service.connect(device); in connect() 337 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 369 final IBluetoothInputDevice service = mService; in disconnect() local 370 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 372 return service.disconnect(device); in disconnect() 378 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() 387 final IBluetoothInputDevice service = mService; in getConnectedDevices() local 388 if (service != null && isEnabled()) { in getConnectedDevices() [all …]
|
D | BluetoothDevice.java | 805 final IBluetooth service = sService; in getName() local 806 if (service == null) { in getName() 811 String name = service.getRemoteName(this); in getName() 831 final IBluetooth service = sService; in getType() local 832 if (service == null) { in getType() 837 return service.getRemoteType(this); in getType() 852 final IBluetooth service = sService; in getAlias() local 853 if (service == null) { in getAlias() 858 return service.getRemoteAlias(this); in getAlias() 876 final IBluetooth service = sService; in setAlias() local [all …]
|
D | BluetoothA2dpSink.java | 242 final IBluetoothA2dpSink service = mService; in connect() local 243 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 245 return service.connect(device); in connect() 251 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 283 final IBluetoothA2dpSink service = mService; in disconnect() local 284 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 286 return service.disconnect(device); in disconnect() 292 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() 301 final IBluetoothA2dpSink service = mService; in getConnectedDevices() local 302 if (service != null && isEnabled()) { in getConnectedDevices() [all …]
|
D | BluetoothMap.java | 162 final IBluetoothMap service = mService; in getState() local 163 if (service != null) { in getState() 165 return service.getState(); in getState() 184 final IBluetoothMap service = mService; in getClient() local 185 if (service != null) { in getClient() 187 return service.getClient(); in getClient() 205 final IBluetoothMap service = mService; in isConnected() local 206 if (service != null) { in isConnected() 208 return service.isConnected(device); in isConnected() 237 final IBluetoothMap service = mService; in disconnect() local [all …]
|
D | BluetoothSap.java | 198 final IBluetoothSap service = mService; in getState() local 199 if (service != null) { in getState() 201 return service.getState(); in getState() 221 final IBluetoothSap service = mService; in getClient() local 222 if (service != null) { in getClient() 224 return service.getClient(); in getClient() 243 final IBluetoothSap service = mService; in isConnected() local 244 if (service != null) { in isConnected() 246 return service.isConnected(device); in isConnected() 277 final IBluetoothSap service = mService; in disconnect() local [all …]
|
D | BluetoothMapClient.java | 179 final IBluetoothMapClient service = mService; in isConnected() local 180 if (service != null) { in isConnected() 182 return service.isConnected(device); in isConnected() 199 final IBluetoothMapClient service = mService; in connect() local 200 if (service != null) { in connect() 202 return service.connect(device); in connect() 221 final IBluetoothMapClient service = mService; in disconnect() local 222 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 224 return service.disconnect(device); in disconnect() 229 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() [all …]
|
D | BluetoothPbapClient.java | 175 final IBluetoothPbapClient service = mService; in connect() local 176 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 178 return service.connect(device); in connect() 184 if (service == null) { in connect() 201 final IBluetoothPbapClient service = mService; in disconnect() local 202 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 204 service.disconnect(device); in disconnect() 211 if (service == null) { in disconnect() 228 final IBluetoothPbapClient service = mService; in getConnectedDevices() local 229 if (service != null && isEnabled()) { in getConnectedDevices() [all …]
|
D | BluetoothPan.java | 238 final IBluetoothPan service = mPanService; in connect() local 239 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 241 return service.connect(device); in connect() 247 if (service == null) Log.w(TAG, "Proxy not attached to service"); in connect() 279 final IBluetoothPan service = mPanService; in disconnect() local 280 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 282 return service.disconnect(device); in disconnect() 288 if (service == null) Log.w(TAG, "Proxy not attached to service"); in disconnect() 297 final IBluetoothPan service = mPanService; in getConnectedDevices() local 298 if (service != null && isEnabled()) { in getConnectedDevices() [all …]
|
D | BluetoothAvrcpController.java | 181 final IBluetoothAvrcpController service = mService; in getConnectedDevices() local 182 if (service != null && isEnabled()) { in getConnectedDevices() 184 return service.getConnectedDevices(); in getConnectedDevices() 190 if (service == null) Log.w(TAG, "Proxy not attached to service"); in getConnectedDevices() 199 final IBluetoothAvrcpController service = mService; in getDevicesMatchingConnectionStates() local 200 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 202 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates() 208 if (service == null) Log.w(TAG, "Proxy not attached to service"); in getDevicesMatchingConnectionStates() 217 final IBluetoothAvrcpController service = mService; in getConnectionState() local 218 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState() [all …]
|
D | BluetoothInputHost.java | 199 public void onServiceConnected(ComponentName className, IBinder service) { 201 mService = IBluetoothInputHost.Stub.asInterface(service); 280 final IBluetoothInputHost service = mService; in getConnectedDevices() local 281 if (service != null) { in getConnectedDevices() 283 return service.getConnectedDevices(); in getConnectedDevices() 300 final IBluetoothInputHost service = mService; in getDevicesMatchingConnectionStates() local 301 if (service != null) { in getDevicesMatchingConnectionStates() 303 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates() 320 final IBluetoothInputHost service = mService; in getConnectionState() local 321 if (service != null) { in getConnectionState() [all …]
|
/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
D | ManagedServicesTest.java | 144 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testBackupAndRestore_migration() local 148 service.onSettingRestored( in testBackupAndRestore_migration() 149 service.getConfig().secureSettingName, in testBackupAndRestore_migration() 153 verifyExpectedApprovedEntries(service, true); in testBackupAndRestore_migration() 156 service.onSettingRestored(service.getConfig().secondarySettingName, in testBackupAndRestore_migration() 160 verifyExpectedApprovedEntries(service); in testBackupAndRestore_migration() 193 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testBackupAndRestore_migration_preO() local 198 service.onSettingRestored( in testBackupAndRestore_migration_preO() 199 service.getConfig().secureSettingName, in testBackupAndRestore_migration_preO() 205 service.onSettingRestored(service.getConfig().secondarySettingName, in testBackupAndRestore_migration_preO() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemServiceManager.java | 93 final T service; in startService() local 96 service = constructor.newInstance(mContext); in startService() 111 startService(service); in startService() 112 return service; in startService() 118 public void startService(@NonNull final SystemService service) { in startService() argument 120 mServices.add(service); in startService() 124 service.onStart(); in startService() 126 throw new RuntimeException("Failed to start service " + service.getClass().getName() in startService() 129 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onStart"); in startService() local 149 final SystemService service = mServices.get(i); in startBootPhase() local [all …]
|
/frameworks/base/core/java/android/app/ |
D | NotificationManager.java | 41 import android.service.notification.StatusBarNotification; 42 import android.service.notification.ZenModeConfig; 297 INotificationManager service = getService(); in notifyAsUser() local 320 service.enqueueNotificationWithTag(pkg, mContext.getOpPackageName(), tag, id, in notifyAsUser() 358 INotificationManager service = getService(); in cancelAsUser() local 362 service.cancelNotificationWithTag(pkg, tag, id, user.getIdentifier()); in cancelAsUser() 374 INotificationManager service = getService(); in cancelAll() local 378 service.cancelAllNotifications(pkg, UserHandle.myUserId()); in cancelAll() 411 INotificationManager service = getService(); in createNotificationChannelGroups() local 413 service.createNotificationChannelGroups(mContext.getPackageName(), in createNotificationChannelGroups() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityRecordTests.java | 57 final ActivityManagerService service = createActivityManagerService(); in testStackCleanupOnClearingTask() local 58 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in testStackCleanupOnClearingTask() 59 final ActivityRecord record = createActivity(service, testActivityComponent, task); in testStackCleanupOnClearingTask() 62 assertEquals(getActivityRemovedFromStackCount(service, TEST_STACK_ID), 1); in testStackCleanupOnClearingTask() 67 final ActivityManagerService service = createActivityManagerService(); in testStackCleanupOnActivityRemoval() local 68 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in testStackCleanupOnActivityRemoval() 69 final ActivityRecord record = createActivity(service, testActivityComponent, task); in testStackCleanupOnActivityRemoval() 72 assertEquals(getActivityRemovedFromStackCount(service, TEST_STACK_ID), 1); in testStackCleanupOnActivityRemoval() 77 final ActivityManagerService service = createActivityManagerService(); in testStackCleanupOnTaskRemoval() local 78 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in testStackCleanupOnTaskRemoval() [all …]
|
D | ActivityStackTests.java | 53 final ActivityManagerService service = createActivityManagerService(); in testEmptyTaskCleanupOnRemove() local 54 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in testEmptyTaskCleanupOnRemove() 56 service.mStackSupervisor.getStack(TEST_STACK_ID).removeTask(task, in testEmptyTaskCleanupOnRemove() 63 final ActivityManagerService service = createActivityManagerService(); in testOccupiedTaskCleanupOnRemove() local 64 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in testOccupiedTaskCleanupOnRemove() 65 final ActivityRecord activityRecord = createActivity(service, testActivityComponent, task); in testOccupiedTaskCleanupOnRemove() 67 service.mStackSupervisor.getStack(TEST_STACK_ID).removeTask(task, in testOccupiedTaskCleanupOnRemove() 74 final ActivityManagerService service = createActivityManagerService(); in testNoPauseDuringResumeTopActivity() local 75 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in testNoPauseDuringResumeTopActivity() 76 final ActivityRecord activityRecord = createActivity(service, testActivityComponent, task); in testNoPauseDuringResumeTopActivity() [all …]
|
D | ActivityStackSupervisorTests.java | 61 final ActivityManagerService service = createActivityManagerService(); in testRestoringInvalidTask() local 62 TaskRecord task = service.mStackSupervisor.anyTaskForIdLocked(0 /*taskId*/, in testRestoringInvalidTask() 73 final ActivityManagerService service = createActivityManagerService(); in testReplacingTaskInPinnedStack() local 74 final TaskRecord firstTask = createTask(service, testActivityComponent, in testReplacingTaskInPinnedStack() 76 final ActivityRecord firstActivity = createActivity(service, testActivityComponent, in testReplacingTaskInPinnedStack() 79 final TaskRecord secondTask = createTask(service, testActivityComponent, in testReplacingTaskInPinnedStack() 81 final ActivityRecord secondActivity = createActivity(service, testActivityComponent, in testReplacingTaskInPinnedStack() 83 service.mStackSupervisor.setFocusStackUnchecked("testReplacingTaskInPinnedStack", in testReplacingTaskInPinnedStack() 84 service.mStackSupervisor.getStack(FULLSCREEN_WORKSPACE_STACK_ID)); in testReplacingTaskInPinnedStack() 87 ensureStackPlacement(service.mStackSupervisor, FULLSCREEN_WORKSPACE_STACK_ID, firstTask, in testReplacingTaskInPinnedStack() [all …]
|
/frameworks/av/media/libaaudio/src/binding/ |
D | AAudioBinderClient.cpp | 134 const sp<IAAudioService> &service = getAAudioService(); in openStream() local 135 if (service.get() == nullptr) return AAUDIO_ERROR_NO_SERVICE; in openStream() 137 stream = service->openStream(request, configurationOutput); in openStream() 150 const sp<IAAudioService> service = getAAudioService(); in closeStream() local 151 if (service.get() == nullptr) return AAUDIO_ERROR_NO_SERVICE; in closeStream() 152 return service->closeStream(streamHandle); in closeStream() 160 const sp<IAAudioService> service = getAAudioService(); in getStreamDescription() local 161 if (service.get() == nullptr) return AAUDIO_ERROR_NO_SERVICE; in getStreamDescription() 162 return service->getStreamDescription(streamHandle, parcelable); in getStreamDescription() 166 const sp<IAAudioService> service = getAAudioService(); in startStream() local [all …]
|
/frameworks/base/core/java/android/view/accessibility/ |
D | AccessibilityManager.java | 293 public AccessibilityManager(Context context, IAccessibilityManager service, int userId) { in AccessibilityManager() argument 300 tryConnectToServiceLocked(service); in AccessibilityManager() 313 public AccessibilityManager(Handler handler, IAccessibilityManager service, int userId) { in AccessibilityManager() argument 318 tryConnectToServiceLocked(service); in AccessibilityManager() 344 IAccessibilityManager service = getServiceLocked(); in isEnabled() local 345 if (service == null) { in isEnabled() 359 IAccessibilityManager service = getServiceLocked(); in isTouchExplorationEnabled() local 360 if (service == null) { in isTouchExplorationEnabled() 380 IAccessibilityManager service = getServiceLocked(); in isHighTextContrastEnabled() local 381 if (service == null) { in isHighTextContrastEnabled() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ServiceTest.java | 120 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected() argument 143 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected() argument 149 service.transact(SET_REPORTER_CODE, data, null, 0); in onServiceConnected() 191 void startExpectResult(Intent service) { in startExpectResult() argument 192 startExpectResult(service, new Bundle()); in startExpectResult() 195 void startExpectResult(Intent service, Bundle bundle) { in startExpectResult() argument 201 getContext().startService(new Intent(service).putExtras(bundle)); in startExpectResult() 205 getContext().startService(new Intent(service).putExtras(bundle)); in startExpectResult() 211 getContext().stopService(service); in startExpectResult() 219 getContext().stopService(service); in startExpectResult() [all …]
|
/frameworks/base/core/java/android/nfc/cardemulation/ |
D | NfcFCardEmulation.java | 55 private NfcFCardEmulation(Context context, INfcFCardEmulation service) { in NfcFCardEmulation() argument 57 sService = service; in NfcFCardEmulation() 93 INfcFCardEmulation service = adapter.getNfcFCardEmulationService(); in getInstance() local 94 if (service == null) { in getInstance() 98 manager = new NfcFCardEmulation(context, service); in getInstance() 116 public String getSystemCodeForService(ComponentName service) throws RuntimeException { in getSystemCodeForService() argument 117 if (service == null) { in getSystemCodeForService() 121 return sService.getSystemCodeForService(UserHandle.myUserId(), service); in getSystemCodeForService() 130 return sService.getSystemCodeForService(UserHandle.myUserId(), service); in getSystemCodeForService() 161 public boolean registerSystemCodeForService(ComponentName service, String systemCode) in registerSystemCodeForService() argument [all …]
|
D | CardEmulation.java | 134 private CardEmulation(Context context, INfcCardEmulation service) { in CardEmulation() argument 136 sService = service; in CardEmulation() 172 INfcCardEmulation service = adapter.getCardEmulationService(); in getInstance() local 173 if (service == null) { in getInstance() 177 manager = new CardEmulation(context, service); in getInstance() 202 public boolean isDefaultServiceForCategory(ComponentName service, String category) { in isDefaultServiceForCategory() argument 204 return sService.isDefaultServiceForCategory(UserHandle.myUserId(), service, category); in isDefaultServiceForCategory() 213 return sService.isDefaultServiceForCategory(UserHandle.myUserId(), service, in isDefaultServiceForCategory() 233 public boolean isDefaultServiceForAid(ComponentName service, String aid) { in isDefaultServiceForAid() argument 235 return sService.isDefaultServiceForAid(UserHandle.myUserId(), service, aid); in isDefaultServiceForAid() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationProviderProxy.java | 107 ILocationProvider service; 112 service = getService(); 115 if (service == null) return; 119 properties = service.getProperties(); 127 service.enable(); 129 service.setRequest(request, source); 162 ILocationProvider service = getService(); in enable() local 163 if (service == null) return; in enable() 166 service.enable(); in enable() 180 ILocationProvider service = getService(); in disable() local [all …]
|