Home
last modified time | relevance | path

Searched refs:virtualDeviceId (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/av/services/audiopolicy/service/
DAudioRecordClient.h41 uint32_t virtualDeviceId,
47 uint32_t virtualDeviceId,
90 const uint32_t virtualDeviceId, in AudioRecordClient() argument
95 virtualDeviceId(virtualDeviceId), in AudioRecordClient()
100 virtualDeviceId, in AudioRecordClient()
111 const uint32_t virtualDeviceId; // id of the virtual device associated with the audio device variable
DAudioRecordClient.cpp64 const uint32_t virtualDeviceId, in createIfNeeded() argument
85 return new OpRecordAudioMonitor(attributionSource, virtualDeviceId, attr, in createIfNeeded()
91 const uint32_t virtualDeviceId, const audio_attributes_t &attr, in OpRecordAudioMonitor() argument
95 mVirtualDeviceId(virtualDeviceId), mAttr(attr), mAppOp(appOp), in OpRecordAudioMonitor()
DAudioPolicyInterfaceImpl.cpp636 uint32_t virtualDeviceId = kDefaultVirtualDeviceId; in getInputForAttr() local
710 &virtualDeviceId); in getInputForAttr()
752 if (virtualDeviceId != kDefaultVirtualDeviceId && in getInputForAttr()
753 !recordingAllowed(attributionSource, virtualDeviceId, inputSource)) { in getInputForAttr()
772 virtualDeviceId, in getInputForAttr()
828 if (!(startRecording(client->attributionSource, client->virtualDeviceId, in startInput()
847 finishRecording(client->attributionSource, client->virtualDeviceId, in startInput()
944 finishRecording(client->attributionSource, client->virtualDeviceId, in startInput()
974 finishRecording(client->attributionSource, client->virtualDeviceId, client->attributes.source); in stopInput()
/frameworks/av/media/utils/include/mediautils/
DServiceUtilities.h92 uint32_t virtualDeviceId,
94 bool startRecording(const AttributionSourceState& attributionSource, uint32_t virtualDeviceId,
96 void finishRecording(const AttributionSourceState& attributionSource, uint32_t virtualDeviceId,
99 const AttributionSourceState& callerAttributionSource, uint32_t virtualDeviceId);
/frameworks/base/services/core/java/com/android/server/pm/permission/
DAccessCheckDelegate.java319 @Nullable String attributionTag, int virtualDeviceId, boolean raw, in checkOperation() argument
327 return superImpl.apply(code, shellUid, SHELL_PKG, null, virtualDeviceId, raw); in checkOperation()
332 return superImpl.apply(code, uid, packageName, attributionTag, virtualDeviceId, raw); in checkOperation()
353 @Nullable String featureId, int virtualDeviceId, boolean shouldCollectAsyncNotedOp, in noteOperation() argument
362 return superImpl.apply(code, shellUid, SHELL_PKG, featureId, virtualDeviceId, in noteOperation()
368 return superImpl.apply(code, uid, packageName, featureId, virtualDeviceId, in noteOperation()
400 @Nullable String packageName, @Nullable String attributionTag, int virtualDeviceId, in startOperation() argument
412 virtualDeviceId, startIfModeDefault, shouldCollectAsyncNotedOp, message, in startOperation()
418 return superImpl.apply(token, code, uid, packageName, attributionTag, virtualDeviceId, in startOperation()
481 String attributionTag, int virtualDeviceId, @NonNull HexConsumer<IBinder, Integer, in finishOperation() argument
[all …]
/frameworks/av/media/utils/
DServiceUtilities.cpp88 const AttributionSourceState& callerAttributionSource, const uint32_t virtualDeviceId) { in resolveAttributionSource() argument
103 nextAttributionSource.deviceId = virtualDeviceId; in resolveAttributionSource()
112 myAttributionSource.deviceId = virtualDeviceId; in resolveAttributionSource()
119 const uint32_t virtualDeviceId, in checkRecordingInternal() argument
133 resolveAttributionSource(attributionSource, virtualDeviceId); in checkRecordingInternal()
163 const uint32_t virtualDeviceId, in recordingAllowed() argument
165 return checkRecordingInternal(attributionSource, virtualDeviceId, in recordingAllowed()
170 const uint32_t virtualDeviceId, in startRecording() argument
173 return checkRecordingInternal(attributionSource, virtualDeviceId, msg, /*start*/ true, in startRecording()
177 void finishRecording(const AttributionSourceState &attributionSource, uint32_t virtualDeviceId, in finishRecording() argument
[all …]
/frameworks/base/core/java/android/app/
DAppOpsManagerInternal.java57 @Nullable String attributionTag, int virtualDeviceId, boolean raw, in checkOperation() argument
88 @Nullable String featureId, int virtualDeviceId, boolean shouldCollectAsyncNotedOp, in noteOperation() argument
130 @Nullable String packageName, @Nullable String attributionTag, int virtualDeviceId, in startOperation() argument
176 String attributionTag, int virtualDeviceId, @NonNull HexConsumer<IBinder, Integer, in finishOperation() argument
DAppOpsManager.java7549 @Nullable String attributionTag, int virtualDeviceId, boolean active, in onOpActiveChanged() argument
7551 if (virtualDeviceId == Context.DEVICE_ID_DEFAULT) { in onOpActiveChanged()
7603 @Nullable String attributionTag, int virtualDeviceId, @OpFlags int flags, in onOpNoted() argument
7605 if (virtualDeviceId == Context.DEVICE_ID_DEFAULT) { in onOpNoted()
7660 default void onOpActiveChanged(int op, int uid, String packageName, int virtualDeviceId, in onOpActiveChanged() argument
7764 @Nullable String attributionTag, int virtualDeviceId, @OpFlags int flags, in onOpStarted() argument
7767 if (virtualDeviceId == Context.DEVICE_ID_DEFAULT) { in onOpStarted()
8435 String attributionTag, int virtualDeviceId, boolean active, in startWatchingActive()
8441 uid, packageName, virtualDeviceId, active); in startWatchingActive()
8445 attributionTag, virtualDeviceId, active, attributionFlags, in startWatchingActive()
[all …]
/frameworks/base/services/core/java/com/android/server/appop/
DAttributedOp.java206 public void started(@NonNull IBinder clientId, int virtualDeviceId, int proxyUid, in started() argument
211 startedOrPaused(clientId, virtualDeviceId, proxyUid, proxyPackageName, proxyAttributionTag, in started()
217 private void startedOrPaused(@NonNull IBinder clientId, int virtualDeviceId, int proxyUid, in startedOrPaused() argument
225 parent.packageName, tag, virtualDeviceId, true, attributionFlags, in startedOrPaused()
241 SystemClock.elapsedRealtime(), clientId, tag, virtualDeviceId, in startedOrPaused()
388 public void createPaused(@NonNull IBinder clientId, int virtualDeviceId, in createPaused() argument
393 startedOrPaused(clientId, virtualDeviceId, proxyUid, proxyPackageName, proxyAttributionTag, in createPaused()
720 @NonNull IBinder clientId, int virtualDeviceId, @Nullable String attributionTag, in InProgressStartOpEvent() argument
728 mVirtualDeviceId = virtualDeviceId; in InProgressStartOpEvent()
773 @Nullable String attributionTag, int virtualDeviceId, @NonNull Runnable onDeath, in reinit() argument
[all …]
DAppOpsService.java2807 @Nullable String attributionTag, int virtualDeviceId) { in checkOperationRawForDevice() argument
2809 virtualDeviceId, true /*raw*/); in checkOperationRawForDevice()
2819 public int checkOperationForDevice(int code, int uid, String packageName, int virtualDeviceId) { in checkOperationForDevice() argument
2821 virtualDeviceId, false /*raw*/); in checkOperationForDevice()
2825 @Nullable String attributionTag, int virtualDeviceId, boolean raw) { in checkOperationImpl() argument
2827 if (!isValidVirtualDeviceId(virtualDeviceId)) { in checkOperationImpl()
2829 "checkOperationImpl returned MODE_IGNORED as virtualDeviceId " + virtualDeviceId in checkOperationImpl()
2842 virtualDeviceId, raw); in checkOperationImpl()
2856 @Nullable String attributionTag, int virtualDeviceId, boolean raw) { in checkOperationUnchecked() argument
2869 if (isOpRestrictedLocked(uid, code, packageName, attributionTag, virtualDeviceId, in checkOperationUnchecked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsNotedWatcherTest.java124 AtomicInteger virtualDeviceId = new AtomicInteger(); in testWatchNotedOpsForExternalDevice() local
130 virtualDeviceId.set(virtualDevice.getDeviceId()); in testWatchNotedOpsForExternalDevice()
134 virtualDeviceId.get()); in testWatchNotedOpsForExternalDevice()
145 eq(getContext().getAttributionTag()), eq(virtualDeviceId.get()), in testWatchNotedOpsForExternalDevice()
DAppOpsStartedWatcherTest.java129 AtomicInteger virtualDeviceId = new AtomicInteger(); in testWatchStartedOpsForExternalDevice() local
135 virtualDeviceId.set(virtualDevice.getDeviceId()); in testWatchStartedOpsForExternalDevice()
140 virtualDeviceId.get()); in testWatchStartedOpsForExternalDevice()
153 eq(getContext().getAttributionTag()), eq(virtualDeviceId.get()), in testWatchStartedOpsForExternalDevice()
/frameworks/base/core/java/com/android/internal/app/
DIAppOpsService.aidl154 @nullable String attributionTag, int virtualDeviceId); in checkOperationRawForDevice() argument
155 int checkOperationForDevice(int code, int uid, String packageName, int virtualDeviceId); in checkOperationForDevice() argument
157 @nullable String attributionTag, int virtualDeviceId, in noteOperationForDevice() argument
160 @nullable String attributionTag, int virtualDeviceId, boolean startIfModeDefault, in startOperationForDevice() argument
164 @nullable String attributionTag, int virtualDeviceId); in finishOperationForDevice() argument
DIAppOpsNotedCallback.aidl21 void opNoted(int op, int uid, String packageName, String attributionTag, int virtualDeviceId, in opNoted() argument
DIAppOpsActiveCallback.aidl22 int virtualDeviceId, boolean active, int attributionFlags, int attributionChainId); in opActiveChanged() argument
DIAppOpsStartedCallback.aidl21 void opStarted(int op, int uid, String packageName, String attributionTag, int virtualDeviceId, in opStarted() argument
/frameworks/base/media/java/android/media/audiopolicy/
DAudioMix.java83 int virtualDeviceId) { in AudioMix() argument
92 mVirtualDeviceId = virtualDeviceId; in AudioMix()
363 public void setVirtualDeviceId(int virtualDeviceId) { in setVirtualDeviceId() argument
364 mVirtualDeviceId = virtualDeviceId; in setVirtualDeviceId()
435 Builder setVirtualDeviceId(int virtualDeviceId) { in setVirtualDeviceId() argument
436 mVirtualDeviceId = virtualDeviceId; in setVirtualDeviceId()
/frameworks/base/services/core/java/com/android/server/policy/
DAppOpsPolicy.java233 @Nullable String attributionTag, int virtualDeviceId, boolean raw, in checkOperation() argument
236 virtualDeviceId, raw); in checkOperation()
247 @Nullable String attributionTag, int virtualDeviceId, in noteOperation() argument
252 resolveUid(code, uid), packageName, attributionTag, virtualDeviceId, in noteOperation()
270 @Nullable String packageName, @Nullable String attributionTag, int virtualDeviceId, in startOperation() argument
277 resolveUid(code, uid), packageName, attributionTag, virtualDeviceId, in startOperation()
299 String attributionTag, int virtualDeviceId, in finishOperation() argument
302 resolveUid(code, uid), packageName, attributionTag, virtualDeviceId); in finishOperation()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DSensorController.java82 public SensorController(@NonNull IVirtualDevice virtualDevice, int virtualDeviceId, in SensorController() argument
86 mVirtualDeviceId = virtualDeviceId; in SensorController()
/frameworks/base/core/java/android/content/
DAttributionSource.java111 @Nullable String attributionTag, int virtualDeviceId) { in AttributionSource() argument
113 virtualDeviceId, null); in AttributionSource()
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp211 uint32_t *virtualDeviceId = nullptr);
287 audio_input_flags_t flags, audio_port_handle_t *portId, uint32_t *virtualDeviceId) { in getInputForAttr() argument
302 &config, flags, selectedDeviceId, &inputType, portId, virtualDeviceId) != OK) { in getInputForAttr()
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DVirtualDeviceManagerServiceTest.java1977 private VirtualDeviceImpl createVirtualDevice(int virtualDeviceId, int ownerUid) { in createVirtualDevice() argument
1981 return createVirtualDevice(virtualDeviceId, ownerUid, params); in createVirtualDevice()
1984 private VirtualDeviceImpl createVirtualDevice(int virtualDeviceId, int ownerUid, in createVirtualDevice() argument
1995 virtualDeviceId, in createVirtualDevice()
2004 new VirtualCameraController(DEVICE_POLICY_DEFAULT, virtualDeviceId)); in createVirtualDevice()
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h171 uint32_t *virtualDeviceId) = 0;
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp209 uint32_t *virtualDeviceId = nullptr);
322 uint32_t *virtualDeviceId) { in getInputForAttr() argument
330 if (!virtualDeviceId) virtualDeviceId = 0; in getInputForAttr()
335 selectedDeviceId, &inputType, portId, virtualDeviceId)); in getInputForAttr()
1180 uint32_t *virtualDeviceId = 0; in TEST_F() local
1184 &selectedDeviceId, &inputType, &portId, virtualDeviceId)); in TEST_F()
1198 &selectedDeviceId, &inputType, &portId, virtualDeviceId)); in TEST_F()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h145 uint32_t *virtualDeviceId);

12