Home
last modified time | relevance | path

Searched refs:client (Results 1 – 25 of 395) sorted by relevance

12345678910>>...16

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioInputDescriptor.cpp129 for (const auto &client : getClientIterable()) { in isSourceActive() local
130 if (client->active() && in isSourceActive()
131 ((client->source() == source) || in isSourceActive()
133 (client->source() == AUDIO_SOURCE_HOTWORD) && in isSourceActive()
134 client->isSoundTrigger()))) { in isSourceActive()
155 for (const auto &client : getClientIterable()) { in getHighestPriorityClient() local
156 if (activeOnly && !client->active()) { in getHighestPriorityClient()
159 app_state_t curState = client->appState(); in getHighestPriorityClient()
161 int32_t curPriority = source_priority(client->source()); in getHighestPriorityClient()
163 topClient = client; in getHighestPriorityClient()
[all …]
/frameworks/native/services/vr/virtual_touchpad/
DDvrVirtualTouchpadClient.cpp11 android::dvr::VirtualTouchpad* FromC(DvrVirtualTouchpad* client) { in FromC() argument
12 return reinterpret_cast<android::dvr::VirtualTouchpad*>(client); in FromC()
21 void dvrVirtualTouchpadDestroy(DvrVirtualTouchpad* client) { in dvrVirtualTouchpadDestroy() argument
22 delete FromC(client); in dvrVirtualTouchpadDestroy()
25 int dvrVirtualTouchpadAttach(DvrVirtualTouchpad* client) { in dvrVirtualTouchpadAttach() argument
26 return FromC(client)->Attach(); in dvrVirtualTouchpadAttach()
29 int dvrVirtualTouchpadDetach(DvrVirtualTouchpad* client) { in dvrVirtualTouchpadDetach() argument
30 return FromC(client)->Detach(); in dvrVirtualTouchpadDetach()
33 int dvrVirtualTouchpadTouch(DvrVirtualTouchpad* client, int touchpad, float x, in dvrVirtualTouchpadTouch() argument
35 return FromC(client)->Touch(touchpad, x, y, pressure); in dvrVirtualTouchpadTouch()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceClientPermissionsTest.java60 SliceClientPermissions client = new SliceClientPermissions(pkg, tracker); in testRemoveBasic() local
66 client.grantUri(base.buildUpon() in testRemoveBasic()
69 client.revokeUri(base.buildUpon() in testRemoveBasic()
73 assertFalse(client.hasPermission(base.buildUpon() in testRemoveBasic()
78 ArrayList<SliceAuthority> authorities = new ArrayList<>(client.getAuthorities()); in testRemoveBasic()
86 SliceClientPermissions client = new SliceClientPermissions(pkg, tracker); in testRemoveSubtrees() local
92 client.grantUri(base.buildUpon() in testRemoveSubtrees()
96 client.grantUri(base.buildUpon() in testRemoveSubtrees()
100 client.revokeUri(base.buildUpon() in testRemoveSubtrees()
104 assertFalse(client.hasPermission(base.buildUpon() in testRemoveSubtrees()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DClientWakelockTracker.java39 ClientWakelockAccountant client = getClientWakelockAccountant(clientId); in startTracking() local
41 client.startAttributingWakelock(requestId, token, numRequestsInQueue, uptime); in startTracking()
44 if (!mActiveClients.contains(client)) { in startTracking()
45 mActiveClients.add(client); in startTracking()
52 ClientWakelockAccountant client = getClientWakelockAccountant(clientId); in stopTracking() local
54 client.stopAttributingWakelock(requestId, token, uptime); in stopTracking()
55 if(client.getPendingRequestCount() == 0) { in stopTracking()
57 mActiveClients.remove(client); in stopTracking()
67 for (ClientWakelockAccountant client : mActiveClients) { in stopTrackingAll()
68 client.stopAllPendingRequests(uptime); in stopTrackingAll()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DCaptureSequencer.cpp37 CaptureSequencer::CaptureSequencer(wp<Camera2Client> client): in CaptureSequencer() argument
48 mClient(client), in CaptureSequencer()
124 sp<Camera2Client> client = mClient.promote(); in notifyError() local
125 if (client == nullptr) { in notifyError()
128 int captureStreamId = client->getCaptureStreamId(); in notifyError()
227 sp<Camera2Client> client = mClient.promote(); in threadLoop() local
228 if (client == 0) return false; in threadLoop()
236 currentState = (this->*kStateManagers[currentState])(client); in threadLoop()
249 client->getCameraId(), kStateNames[mCaptureState]); in threadLoop()
255 client->getCameraId()); in threadLoop()
[all …]
DCaptureSequencer.h47 explicit CaptureSequencer(wp<Camera2Client> client);
141 typedef CaptureState (CaptureSequencer::*StateManager)(sp<Camera2Client> &client);
156 CaptureState manageIdle(sp<Camera2Client> &client);
157 CaptureState manageStart(sp<Camera2Client> &client);
159 CaptureState manageZslStart(sp<Camera2Client> &client);
160 CaptureState manageZslWaiting(sp<Camera2Client> &client);
161 CaptureState manageZslReprocessing(sp<Camera2Client> &client);
163 CaptureState manageStandardStart(sp<Camera2Client> &client);
164 CaptureState manageStandardPrecaptureWait(sp<Camera2Client> &client);
165 CaptureState manageStandardCapture(sp<Camera2Client> &client);
[all …]
DFrameProcessor.cpp32 sp<Camera2Client> client) : in FrameProcessor() argument
34 mClient(client), in FrameProcessor()
45 SharedParameters::Lock l(client->getParameters()); in FrameProcessor()
71 sp<Camera2Client> client = mClient.promote(); in processSingleFrame() local
72 if (!client.get()) { in processSingleFrame()
81 if (!isPartialResult && processFaceDetect(frame.mMetadata, client) != OK) { in processSingleFrame()
86 process3aState(frame, client); in processSingleFrame()
93 const sp<Camera2Client> &client) { in processFaceDetect() argument
100 SharedParameters::Lock l(client->getParameters()); in processFaceDetect()
119 SharedParameters::Lock l(client->getParameters()); in processFaceDetect()
[all …]
/frameworks/native/libs/vr/libvrsensor/include/dvr/
Dpose_client.h78 void dvrPoseClientDestroy(DvrPoseClient* client);
87 int dvrPoseClientGet(DvrPoseClient* client, uint32_t vsync_count,
91 uint32_t dvrPoseClientGetVsyncCount(DvrPoseClient* client);
101 int dvrPoseClientGetController(DvrPoseClient* client, int32_t controller_id,
109 int dvrPoseClientLogController(DvrPoseClient* client, bool enable);
117 int dvrPoseClientPoll(DvrPoseClient* client, DvrPose* state);
128 int dvrPoseClientFreeze(DvrPoseClient* client, const DvrPose* frozen_state);
134 int dvrPoseClientModeSet(DvrPoseClient* client, DvrPoseMode mode);
140 int dvrPoseClientModeGet(DvrPoseClient* client, DvrPoseMode* mode);
151 int dvrPoseClientGetRingBuffer(DvrPoseClient* client,
[all …]
/frameworks/native/libs/vr/libvrsensor/
Dpose_client.cpp38 static PoseClient* FromC(DvrPoseClient* client) { in FromC() argument
39 return reinterpret_cast<PoseClient*>(client); in FromC()
299 int dvrPoseClientGetDataReaderHandle(DvrPoseClient* client, uint64_t type, in dvrPoseClientGetDataReaderHandle() argument
301 return PoseClient::FromC(client)->GetTangoReaderHandle(type, queue_out); in dvrPoseClientGetDataReaderHandle()
312 auto* client = PoseClient::Create().release(); in dvrPoseClientCreate() local
313 return reinterpret_cast<DvrPoseClient*>(client); in dvrPoseClientCreate()
316 void dvrPoseClientDestroy(DvrPoseClient* client) { in dvrPoseClientDestroy() argument
317 delete PoseClient::FromC(client); in dvrPoseClientDestroy()
320 int dvrPoseClientGet(DvrPoseClient* client, uint32_t vsync_count, in dvrPoseClientGet() argument
322 return PoseClient::FromC(client)->GetPose(vsync_count, out_pose); in dvrPoseClientGet()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DRingtonePlayer.java119 Client client;
121 client = mClients.get(token);
122 if (client == null) {
124 client = new Client(token, uri, user, aa, volumeShaperConfig);
125 token.linkToDeath(client, 0);
126 mClients.put(token, client);
129 client.mRingtone.setLooping(looping);
130 client.mRingtone.setVolume(volume);
131 client.mRingtone.play();
137 Client client;
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DFileBridgeTest.java38 private FileBridgeOutputStream client; field in FileBridgeTest
52 client = new FileBridgeOutputStream(bridge.getClientSocket()); in setUp()
66 client.close(); in closeAndAssertClosed()
84 client.flush(); in testNoWriteSync()
90 client.write("meow".getBytes(StandardCharsets.UTF_8)); in testWriteNoSync()
97 client.write("cake".getBytes(StandardCharsets.UTF_8)); in testWriteSync()
98 client.flush(); in testWriteSync()
105 client.write("meow".getBytes(StandardCharsets.UTF_8)); in testWriteSyncWrite()
106 client.flush(); in testWriteSyncWrite()
107 client.write("cake".getBytes(StandardCharsets.UTF_8)); in testWriteSyncWrite()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricServiceBase.java692 ClientMonitor client = mCurrentClient; in handleAcquired() local
693 if (client != null && client.onAcquired(acquiredInfo, vendorCode)) { in handleAcquired()
694 removeClient(client); in handleAcquired()
697 && client instanceof AuthenticationClient) { in handleAcquired()
705 ClientMonitor client = mCurrentClient; in handleAuthenticated() local
708 if (client != null && client.onAuthenticated(identifier, authenticated, token)) { in handleAuthenticated()
709 removeClient(client); in handleAuthenticated()
720 ClientMonitor client = mCurrentClient; in handleEnrollResult() local
721 if (client != null && client.onEnrollResult(identifier, remaining)) { in handleEnrollResult()
722 removeClient(client); in handleEnrollResult()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DClientLifecycleManager.java46 final IApplicationThread client = transaction.getClient(); in scheduleTransaction() local
48 if (!(client instanceof Binder)) { in scheduleTransaction()
65 void scheduleTransaction(@NonNull IApplicationThread client, @NonNull IBinder activityToken, in scheduleTransaction() argument
67 final ClientTransaction clientTransaction = transactionWithState(client, activityToken, in scheduleTransaction()
81 void scheduleTransaction(@NonNull IApplicationThread client, @NonNull IBinder activityToken, in scheduleTransaction() argument
83 final ClientTransaction clientTransaction = transactionWithCallback(client, activityToken, in scheduleTransaction()
96 void scheduleTransaction(@NonNull IApplicationThread client, in scheduleTransaction() argument
98 final ClientTransaction clientTransaction = transactionWithCallback(client, in scheduleTransaction()
109 private static ClientTransaction transactionWithState(@NonNull IApplicationThread client, in transactionWithState() argument
111 final ClientTransaction clientTransaction = ClientTransaction.obtain(client, activityToken); in transactionWithState()
[all …]
/frameworks/base/media/java/android/media/
DIMediaRouterService.aidl26 void registerClientAsUser(IMediaRouterClient client, String packageName, int userId); in registerClientAsUser() argument
27 void unregisterClient(IMediaRouterClient client); in unregisterClient() argument
29 void registerClientGroupId(IMediaRouterClient client, String groupId); in registerClientGroupId() argument
31 MediaRouterClientState getState(IMediaRouterClient client); in getState() argument
32 boolean isPlaybackActive(IMediaRouterClient client); in isPlaybackActive() argument
34 void setDiscoveryRequest(IMediaRouterClient client, int routeTypes, boolean activeScan); in setDiscoveryRequest() argument
35 void setSelectedRoute(IMediaRouterClient client, String routeId, boolean explicit); in setSelectedRoute() argument
36 void requestSetVolume(IMediaRouterClient client, String routeId, int volume); in requestSetVolume() argument
37 void requestUpdateVolume(IMediaRouterClient client, String routeId, int direction); in requestUpdateVolume() argument
/frameworks/hardware/interfaces/bufferhub/1.0/vts/functional/
DVtsHalBufferHubV1_0TargetTest.cpp121 sp<IBufferClient> client; in TEST_F() local
126 client = outClient; in TEST_F()
131 ASSERT_NE(nullptr, client.get()); in TEST_F()
134 ASSERT_EQ(BufferHubStatus::NO_ERROR, client->close()); in TEST_F()
135 EXPECT_EQ(BufferHubStatus::CLIENT_CLOSED, client->close()); in TEST_F()
144 sp<IBufferClient> client; in TEST_F() local
149 client = outClient; in TEST_F()
154 ASSERT_NE(nullptr, client.get()); in TEST_F()
159 client.clear(); in TEST_F()
173 sp<IBufferClient> client; in TEST_F() local
[all …]
/frameworks/native/libs/vr/libdvr/
Ddvr_display_manager.cpp90 std::unique_ptr<DisplayManagerClient> client; member
101 auto client = DisplayManagerClient::Create(); in dvrDisplayManagerCreate() local
102 if (!client) { in dvrDisplayManagerCreate()
107 *client_out = new DvrDisplayManager{std::move(client)}; in dvrDisplayManagerCreate()
111 void dvrDisplayManagerDestroy(DvrDisplayManager* client) { delete client; } in dvrDisplayManagerDestroy() argument
113 int dvrDisplayManagerGetEventFd(DvrDisplayManager* client) { in dvrDisplayManagerGetEventFd() argument
114 if (!client) in dvrDisplayManagerGetEventFd()
117 return client->client->event_fd(); in dvrDisplayManagerGetEventFd()
120 int dvrDisplayManagerTranslateEpollEventMask(DvrDisplayManager* client, in dvrDisplayManagerTranslateEpollEventMask() argument
122 if (!client || !out_events) in dvrDisplayManagerTranslateEpollEventMask()
[all …]
/frameworks/native/libs/vr/libpdx_uds/
Dservice_framework_tests.cpp456 auto client = TestClient::Create(kTestService1); in TEST_F() local
457 ASSERT_NE(nullptr, client); in TEST_F()
460 const int channel_id = client->GetThisChannelId(); in TEST_F()
464 EXPECT_EQ(-ENOENT, client->GetTestChannelId()); in TEST_F()
467 EXPECT_EQ(0, client->SetTestChannel()); in TEST_F()
468 EXPECT_EQ(channel_id, client->GetTestChannelId()); in TEST_F()
478 auto client = TestClient::Create(kTestService1); in TEST_F() local
479 ASSERT_NE(nullptr, client); in TEST_F()
482 const int channel_id = client->GetThisChannelId(); in TEST_F()
486 EXPECT_EQ(-ENOENT, client->GetTestChannelId()); in TEST_F()
[all …]
/frameworks/base/core/java/android/hardware/location/
DContextHubClientCallback.java50 public void onMessageFromNanoApp(ContextHubClient client, NanoAppMessage message) {} in onMessageFromNanoApp() argument
57 public void onHubReset(ContextHubClient client) {} in onHubReset() argument
66 public void onNanoAppAborted(ContextHubClient client, long nanoAppId, int abortCode) {} in onNanoAppAborted() argument
74 public void onNanoAppLoaded(ContextHubClient client, long nanoAppId) {} in onNanoAppLoaded() argument
82 public void onNanoAppUnloaded(ContextHubClient client, long nanoAppId) {} in onNanoAppUnloaded() argument
90 public void onNanoAppEnabled(ContextHubClient client, long nanoAppId) {} in onNanoAppEnabled() argument
98 public void onNanoAppDisabled(ContextHubClient client, long nanoAppId) {} in onNanoAppDisabled() argument
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DConnectedClientsTracker.java91 for (TetheredClient client : server.getAllLeases()) { in updateConnectedClients()
92 if (client.getTetheringType() == TETHERING_WIFI in updateConnectedClients()
93 && !wifiClientMacs.contains(client.getMacAddress())) { in updateConnectedClients()
97 final TetheredClient prunedClient = pruneExpired(client, now); in updateConnectedClients()
107 for (MacAddress client : wifiClientMacs) { in updateConnectedClients()
108 if (clientsMap.containsKey(client)) continue; in updateConnectedClients()
109 clientsMap.put(client, new TetheredClient( in updateConnectedClients()
110 client, Collections.emptyList() /* addresses */, TETHERING_WIFI)); in updateConnectedClients()
157 private static TetheredClient pruneExpired(TetheredClient client, long now) { in pruneExpired() argument
158 final List<AddressInfo> addresses = client.getAddresses(); in pruneExpired()
[all …]
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp232 sp <AudioPlaybackClient> client = in getOutputForAttr() local
234 mAudioPlaybackClients.add(*portId, client); in getOutputForAttr()
240 sp<AudioPlaybackClient>& client, in getPlaybackClientAndEffects() argument
250 client = mAudioPlaybackClients.valueAt(index); in getPlaybackClientAndEffects()
260 sp<AudioPlaybackClient> client; in startOutput() local
263 getPlaybackClientAndEffects(portId, client, audioPolicyEffects, __func__); in startOutput()
268 client->io, client->stream, client->session); in startOutput()
270 ALOGW("Failed to add effects on session %d", client->session); in startOutput()
277 client->active = true; in startOutput()
295 sp<AudioPlaybackClient> client; in doStopOutput() local
[all …]
/frameworks/native/services/vr/virtual_touchpad/include/dvr/
Dvirtual_touchpad_client.h22 void dvrVirtualTouchpadDestroy(DvrVirtualTouchpad* client);
33 int dvrVirtualTouchpadAttach(DvrVirtualTouchpad* client);
40 int dvrVirtualTouchpadDetach(DvrVirtualTouchpad* client);
51 int dvrVirtualTouchpadTouch(DvrVirtualTouchpad* client, int touchpad, float x,
61 int dvrVirtualTouchpadButtonState(DvrVirtualTouchpad* client, int touchpad,
72 int dvrVirtualTouchpadScroll(DvrVirtualTouchpad* client, int touchpad, float x,
/frameworks/base/core/jni/
Dandroid_view_SurfaceSession.cpp44 SurfaceComposerClient* client = new SurfaceComposerClient(); in nativeCreate() local
45 client->incStrong((void*)nativeCreate); in nativeCreate()
46 return reinterpret_cast<jlong>(client); in nativeCreate()
50 SurfaceComposerClient* client = reinterpret_cast<SurfaceComposerClient*>(ptr); in nativeDestroy() local
51 client->decStrong((void*)nativeCreate); in nativeDestroy()
55 SurfaceComposerClient* client = reinterpret_cast<SurfaceComposerClient*>(ptr); in nativeKill() local
56 client->dispose(); in nativeKill()
/frameworks/base/services/core/java/com/android/server/slice/
DSlicePermissionManager.java96 SliceClientPermissions client = getClient(pkgUser); in grantFullAccess() local
97 client.setHasFullAccess(true); in grantFullAccess()
105 SliceClientPermissions client = getClient(pkgUser); in grantSliceAccess() local
106 client.grantUri(uri, providerPkgUser); in grantSliceAccess()
118 SliceClientPermissions client = getClient(pkgUser); in revokeSliceAccess() local
119 client.revokeUri(uri, providerPkgUser); in revokeSliceAccess()
131 SliceClientPermissions client = getClient(pkgUser); in removePkg() local
132 client.clear(); in removePkg()
153 SliceClientPermissions client = getClient(pkgUser); in hasPermission() local
155 return client.hasFullAccess() in hasPermission()
[all …]
/frameworks/hardware/interfaces/stats/1.0/vts/functional/
DVtsHalStatsV1_0TargetTest.cpp42 client = IStats::getService(GetParam()); in SetUp()
43 ASSERT_NE(client, nullptr); in SetUp()
48 sp<IStats> client; member in StatsHidlTest
56 ret = client->reportSpeakerImpedance(impedance); in TEST_P()
67 ret = client->reportHardwareFailed(failed); in TEST_P()
78 ret = client->reportChargeCycles(cycles); in TEST_P()
92 ret = client->reportBatteryHealthSnapshot(args); in TEST_P()
102 ret = client->reportSlowIo(slowio); in TEST_P()
112 ret = client->reportBatteryCausedShutdown(shutdown); in TEST_P()
125 ret = client->reportUsbPortOverheatEvent(event); in TEST_P()
[all …]
/frameworks/hardware/interfaces/stats/1.0/test_client/
DStatsClient.cpp60 android::sp<IStats> client = IStats::tryGetService(); in main() local
61 if (!client) { in main()
86 client->reportSpeakerImpedance(left_obj); in main()
95 client->reportHardwareFailed(failed); in main()
103 client->reportPhysicalDropDetected(drop); in main()
112 client->reportChargeCycles(cycles); in main()
124 client->reportBatteryHealthSnapshot(args); in main()
131 client->reportSlowIo(slowio); in main()
138 client->reportBatteryCausedShutdown(shutdown); in main()
149 client->reportUsbPortOverheatEvent(event); in main()
[all …]

12345678910>>...16