Home
last modified time | relevance | path

Searched refs:getDeviceId (Results 1 – 25 of 191) sorted by relevance

12345678

/frameworks/native/services/inputflinger/reader/mapper/
DVibratorInputMapper.cpp47 ALOGD("vibrate: deviceId=%d, pattern=[%s], repeat=%zd, token=%d", getDeviceId(), in vibrate()
60 NotifyVibratorStateArgs(getContext()->getNextId(), systemTime(), getDeviceId(), true)); in vibrate()
67 ALOGD("cancelVibrate: deviceId=%d, token=%d", getDeviceId(), token); in cancelVibrate()
99 ALOGD("nextStep: index=%d, vibrate deviceId=%d", (int)mIndex, getDeviceId()); in nextStep()
116 ALOGD("nextStep: sending vibrate deviceId=%d, element=%s", getDeviceId(), in nextStep()
122 ALOGD("nextStep: sending cancel vibrate deviceId=%d", getDeviceId()); in nextStep()
140 ALOGD("stopVibrating: sending cancel vibrate deviceId=%d", getDeviceId()); in stopVibrating()
145 return NotifyVibratorStateArgs(getContext()->getNextId(), systemTime(), getDeviceId(), false); in stopVibrating()
DCursorInputMapper.cpp154 out.push_back(NotifyDeviceResetArgs(getContext()->getNextId(), when, getDeviceId())); in reconfigure()
316 out += synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_DOWN, when, readTime, getDeviceId(), in sync()
339 getDeviceId(), mSource, *mDisplayId, policyFlags, in sync()
349 out.push_back(NotifyMotionArgs(getContext()->getNextId(), when, readTime, getDeviceId(), in sync()
363 getDeviceId(), mSource, *mDisplayId, policyFlags, in sync()
377 out.push_back(NotifyMotionArgs(getContext()->getNextId(), when, readTime, getDeviceId(), in sync()
392 out.push_back(NotifyMotionArgs(getContext()->getNextId(), when, readTime, getDeviceId(), in sync()
404 out += synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_UP, when, readTime, getDeviceId(), in sync()
/frameworks/base/core/java/android/content/
DClipboardManager.java190 mContext.getDeviceId()); in setPrimaryClip()
219 mContext.getDeviceId(), in setPrimaryClipAsPackage()
237 mContext.getDeviceId()); in clearPrimaryClip()
257 mContext.getDeviceId()); in getPrimaryClip()
278 mContext.getDeviceId()); in getPrimaryClipDescription()
296 mContext.getDeviceId()); in hasPrimaryClip()
311 mContext.getDeviceId()); in addPrimaryClipChangedListener()
330 mContext.getDeviceId()); in removePrimaryClipChangedListener()
371 mContext.getDeviceId()); in hasText()
392 mContext.getDeviceId()); in getPrimaryClipSource()
DAttributionSource.java152 current.mAttributionSourceState.renouncedPermissions, current.getDeviceId(), next); in AttributionSource()
213 getToken(), mAttributionSourceState.renouncedPermissions, getDeviceId(), next); in withNextAttributionSource()
219 getToken(), mAttributionSourceState.renouncedPermissions, getDeviceId(), getNext()); in withPackageName()
225 token, mAttributionSourceState.renouncedPermissions, getDeviceId(), getNext()); in withToken()
236 getToken(), mAttributionSourceState.renouncedPermissions, getDeviceId(), getNext()); in withPid()
547 public int getDeviceId() { in getDeviceId() method in AttributionSource
/frameworks/av/services/oboeservice/
DAAudioEndpointManager.cpp123 endpoint.get(), configuration.getDeviceId(), configuration.getSessionId()); in findExclusiveEndpoint_l()
141 endpoint.get(), configuration.getDeviceId(), configuration.getSessionId()); in findSharedEndpoint_l()
196 __func__, endpointMMap.get(), configuration.getDeviceId()); in openExclusiveEndpoint()
254 __func__, endpoint.get(), configuration.getDeviceId(), (int)direction); in openSharedEndpoint()
293 __func__, serviceEndpoint.get(), serviceEndpoint->getDeviceId()); in closeExclusiveEndpoint()
317 __func__, serviceEndpoint.get(), serviceEndpoint->getDeviceId()); in closeSharedEndpoint()
DAAudioServiceEndpoint.cpp59 result << " Device Id: " << getDeviceId() << "\n"; in dump()
157 if (configuration.getDeviceId() != AAUDIO_UNSPECIFIED && in matches()
158 configuration.getDeviceId() != getDeviceId()) { in matches()
/frameworks/base/core/java/android/view/
DVerifiedInputEvent.java87 public int getDeviceId() { in getDeviceId() method in VerifiedInputEvent
169 && getDeviceId() == that.getDeviceId() in equals()
179 _hash = 31 * _hash + getDeviceId(); in hashCode()
DInputEvent.java60 public abstract int getDeviceId(); in getDeviceId() method in InputEvent
68 return InputDevice.getDevice(getDeviceId()); in getDevice()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DProxyManager.java261 if (proxy != null && proxy.getDeviceId() == deviceId) { in clearConnections()
290 deviceId = mProxyA11yServiceConnections.get(displayId).getDeviceId(); in clearConnectionAndUpdateState()
392 if (localVdm.getDisplayIdsForDevice(device.getDeviceId()).contains(proxyDisplayId)) { in displayBelongsToCaller()
393 final int ownerUid = localVdm.getDeviceOwnerUid(device.getDeviceId()); in displayBelongsToCaller()
449 if (proxy != null && proxy.getDeviceId() == deviceId) { in getStateLocked()
538 if (proxy != null && proxy.getDeviceId() == client.mDeviceId) { in computeRelevantEventTypesLocked()
563 if (proxy != null && proxy.getDeviceId() == deviceId) { in addServiceInterfacesLocked()
584 if (proxy != null && proxy.getDeviceId() == deviceId) { in getInstalledAndEnabledServiceInfosLocked()
725 if (client.mDeviceId == proxy.getDeviceId()) { in updateFocusAppearanceLocked()
739 if (proxy != null && proxy.getDeviceId() == deviceId) { in getFirstProxyForDeviceIdLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsDeviceAwareServiceTest.java96 assertThat(proxyInfo.getDeviceId()) in noteProxyOp_proxyAppOnDefaultDevice()
104 noteProxyOpWithDeviceId(mVirtualDevice.getDeviceId()); in noteProxyOp_proxyAppOnRemoteDevice()
105 assertThat(proxyInfo.getDeviceId()).isEqualTo(mVirtualDevice.getPersistentDeviceId()); in noteProxyOp_proxyAppOnRemoteDevice()
113 .setDeviceId(mVirtualDevice.getDeviceId()) in noteProxyOpWithDeviceId()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DHotspotNetworkDetailsTracker.java118 network -> network.getDeviceId() in handleServiceConnected()
119 == mChosenEntry.getHotspotNetworkEntryKey().getDeviceId()) in handleServiceConnected()
134 mHotspotNetworkData = networks.stream().filter(network -> network.getDeviceId() in handleHotspotNetworksUpdated()
135 == mChosenEntry.getHotspotNetworkEntryKey().getDeviceId()).findFirst().orElse( in handleHotspotNetworksUpdated()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamLegacy.cpp269 if (getDeviceId() != AAUDIO_UNSPECIFIED in onAudioDeviceUpdate()
270 && getDeviceId() != deviceId in onAudioDeviceUpdate()
278 __func__, (int) getDeviceId(), (int) deviceId); in onAudioDeviceUpdate()
285 __func__, (int) getDeviceId(), (int) deviceId); in onAudioDeviceUpdate()
/frameworks/native/libs/input/
DMotionPredictor.cpp143 if (mLastEvent && mLastEvent->getDeviceId() != event.getDeviceId()) { in record()
150 << mLastEvent->getDeviceId() << ", but received " << event; in record()
152 if (!isPredictionAvailable(event.getDeviceId(), event.getSource())) { in record()
153 ALOGE("Prediction not supported for device %d's %s source", event.getDeviceId(), in record()
316 prediction->initialize(InputEvent::nextId(), event.getDeviceId(), event.getSource(), in predict()
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DVirtualDeviceManagerServiceTest.java441 .isEqualTo(mDeviceImpl.getDeviceId()); in getDeviceIdForDisplayId_withValidVirtualDisplayId_returnsDeviceId()
443 .isEqualTo(mDeviceImpl.getDeviceId()); in getDeviceIdForDisplayId_withValidVirtualDisplayId_returnsDeviceId()
460 assertThat(mVdm.isValidVirtualDeviceId(mDeviceImpl.getDeviceId())).isTrue(); in isDeviceIdValid_validVirtualDeviceId_returnsTrue()
461 assertThat(mLocalService.isValidVirtualDeviceId(mDeviceImpl.getDeviceId())).isTrue(); in isDeviceIdValid_validVirtualDeviceId_returnsTrue()
466 assertThat(mVdm.isValidVirtualDeviceId(mDeviceImpl.getDeviceId() + 1)).isFalse(); in isDeviceIdValid_nonExistentDeviceId_returnsFalse()
467 assertThat(mLocalService.isValidVirtualDeviceId(mDeviceImpl.getDeviceId() + 1)).isFalse(); in isDeviceIdValid_nonExistentDeviceId_returnsFalse()
488 assertThat(mVdm.getDevicePolicy(mDeviceImpl.getDeviceId() + 1, POLICY_TYPE_SENSORS)) in getDevicePolicy_nonExistentDeviceId_returnsDefault()
490 assertThat(mVdmNative.getDevicePolicy(mDeviceImpl.getDeviceId() + 1, POLICY_TYPE_SENSORS)) in getDevicePolicy_nonExistentDeviceId_returnsDefault()
496 assertThat(mVdm.getDevicePolicy(mDeviceImpl.getDeviceId(), POLICY_TYPE_SENSORS)) in getDevicePolicy_unspecifiedPolicy_returnsDefault()
498 assertThat(mVdmNative.getDevicePolicy(mDeviceImpl.getDeviceId(), POLICY_TYPE_SENSORS)) in getDevicePolicy_unspecifiedPolicy_returnsDefault()
[all …]
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraDeviceSetupImpl.java75 templateType, mContext.getDeviceId(), in createCaptureRequest()
109 mContext.getDeviceId(), in isSessionConfigurationSupported()
140 mContext.getDeviceId(), in getSessionCharacteristics()
/frameworks/av/media/libaudioclient/include/media/
DAudioIoDescriptor.h72 audio_port_handle_t getDeviceId() const { in getDeviceId() function
91 << ", deviceId " << getDeviceId(); in toDebugString()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/companion/virtual/
DVirtualDeviceManagerServiceMockingTest.java82 when(device1.getDeviceId()).thenReturn(DEVICE_ID_1); in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth()
83 when(device2.getDeviceId()).thenReturn(DEVICE_ID_2); in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth()
/frameworks/base/core/java/android/companion/virtual/sensor/
DVirtualSensor.java109 public int getDeviceId() { in getDeviceId() method in VirtualSensor
111 return mVirtualDevice.getDeviceId(); in getDeviceId()
/frameworks/av/media/libnbaio/
DAudioStreamOutSink.cpp105 ALOGV("%s start mel computation for device %d", __func__, processor->getDeviceId()); in startMelComputation()
122 ALOGV("%s pause mel computation for device %d", __func__, melProcessor->getDeviceId()); in stopMelComputation()
/frameworks/base/media/java/android/media/
DHwAudioSource.java148 baseStart(getDeviceId()); in start()
152 private int getDeviceId() { in getDeviceId() method in HwAudioSource
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/
DFaceUserState.java67 result.add(new Face(f.getName(), f.getBiometricId(), f.getDeviceId())); in getCopy()
88 serializer.attributeLong(null, ATTR_DEVICE_ID, f.getDeviceId()); in doWriteState()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DFingerprintUserState.java68 fp.getDeviceId())); in getCopy()
90 serializer.attributeLong(null, ATTR_DEVICE_ID, fp.getDeviceId()); in doWriteState()
/frameworks/base/core/java/android/widget/
DDifferentialMotionFlingHelper.java213 int deviceId = event.getDeviceId(); in calculateFlingVelocityThresholds()
232 int deviceId = event.getDeviceId(); in calculateFlingVelocityThresholds()
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java310 return CameraManagerGlobal.get().getCameraIdList(mContext.getDeviceId(), in getCameraIdList()
327 return CameraManagerGlobal.get().getCameraIdListNoLazy(mContext.getDeviceId(), in getCameraIdListNoLazy()
382 return CameraManagerGlobal.get().getConcurrentCameraIds(mContext.getDeviceId(), in getConcurrentCameraIds()
423 mContext.getDeviceId(), getDevicePolicyFromContext(mContext)); in isConcurrentSessionConfigurationSupported()
457 mContext.getDeviceId(), getDevicePolicyFromContext(mContext)); in registerAvailabilityCallback()
496 mHasOpenCloseListenerPermission, mContext.getDeviceId(), in registerAvailabilityCallback()
536 CameraDeviceImpl.checkAndWrapHandler(handler), mContext.getDeviceId(), in registerTorchCallback()
558 CameraManagerGlobal.get().registerTorchCallback(callback, executor, mContext.getDeviceId(), in registerTorchCallback()
576 if (context.getDeviceId() == DEVICE_ID_DEFAULT in getDevicePolicyFromContext()
584 return mVirtualDeviceManager.getDevicePolicy(context.getDeviceId(), POLICY_TYPE_CAMERA); in getDevicePolicyFromContext()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DContextTest.java255 assertEquals(systemContext.getDeviceId(), DEVICE_ID_DEFAULT); in testDeviceIdForSystemContext()
264 assertEquals(systemUiContext.getDeviceId(), DEVICE_ID_DEFAULT); in testDeviceIdForSystemUiContext()
273 assertEquals(testContext.getDeviceId(), DEVICE_ID_DEFAULT); in testDeviceIdForTestContext()

12345678