/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioInputDescriptor.cpp | 117 for (const auto &client : getClientIterable()) { in isSourceActive() local 118 if (client->active() && in isSourceActive() 119 ((client->source() == source) || in isSourceActive() 121 (client->source() == AUDIO_SOURCE_HOTWORD) && in isSourceActive() 122 client->isSoundTrigger()))) { in isSourceActive() 143 for (const auto &client : getClientIterable()) { in getHighestPriorityClient() local 144 if (activeOnly && !client->active()) { in getHighestPriorityClient() 147 app_state_t curState = client->appState(); in getHighestPriorityClient() 149 int32_t curPriority = source_priority(client->source()); in getHighestPriorityClient() 151 topClient = client; in getHighestPriorityClient() [all …]
|
/frameworks/native/services/vr/virtual_touchpad/ |
D | DvrVirtualTouchpadClient.cpp | 11 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/opt/telephony/src/java/com/android/internal/telephony/ |
D | ClientWakelockTracker.java | 39 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/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | SliceClientPermissionsTest.java | 60 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/av/services/camera/libcameraservice/api1/client2/ |
D | CaptureSequencer.cpp | 37 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 …]
|
D | CaptureSequencer.h | 47 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 …]
|
D | FrameProcessor.cpp | 32 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/ |
D | pose_client.h | 78 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/ |
D | pose_client.cpp | 38 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/ |
D | RingtonePlayer.java | 119 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/ |
D | FileBridgeTest.java | 38 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/media/java/android/media/ |
D | IMediaRouterService.aidl | 26 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/base/services/core/java/com/android/server/wm/ |
D | ClientLifecycleManager.java | 46 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/services/core/java/com/android/server/biometrics/ |
D | BiometricServiceBase.java | 681 ClientMonitor client = mCurrentClient; in handleAcquired() local 682 if (client != null && client.onAcquired(acquiredInfo, vendorCode)) { in handleAcquired() 683 removeClient(client); in handleAcquired() 686 && client instanceof AuthenticationClient) { in handleAcquired() 694 ClientMonitor client = mCurrentClient; in handleAuthenticated() local 697 if (client != null && client.onAuthenticated(identifier, authenticated, token)) { in handleAuthenticated() 698 removeClient(client); in handleAuthenticated() 709 ClientMonitor client = mCurrentClient; in handleEnrollResult() local 710 if (client != null && client.onEnrollResult(identifier, remaining)) { in handleEnrollResult() 711 removeClient(client); in handleEnrollResult() [all …]
|
/frameworks/hardware/interfaces/bufferhub/1.0/vts/functional/ |
D | VtsHalBufferHubV1_0TargetTest.cpp | 121 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/base/core/java/android/hardware/location/ |
D | ContextHubClientCallback.java | 50 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/native/libs/vr/libdvr/ |
D | dvr_display_manager.cpp | 90 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/ |
D | service_framework_tests.cpp | 456 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/native/services/vr/virtual_touchpad/include/dvr/ |
D | virtual_touchpad_client.h | 22 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/ |
D | android_view_SurfaceSession.cpp | 44 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/av/services/audiopolicy/service/ |
D | AudioPolicyInterfaceImpl.cpp | 224 sp <AudioPlaybackClient> client = in getOutputForAttr() local 226 mAudioPlaybackClients.add(*portId, client); in getOutputForAttr() 232 sp<AudioPlaybackClient>& client, in getPlaybackClientAndEffects() argument 242 client = mAudioPlaybackClients.valueAt(index); in getPlaybackClientAndEffects() 252 sp<AudioPlaybackClient> client; in startOutput() local 255 getPlaybackClientAndEffects(portId, client, audioPolicyEffects, __func__); in startOutput() 260 client->io, client->stream, client->session); in startOutput() 262 ALOGW("Failed to add effects on session %d", client->session); in startOutput() 269 client->active = true; in startOutput() 287 sp<AudioPlaybackClient> client; in doStopOutput() local [all …]
|
/frameworks/base/tools/preload2/src/com/android/preload/actions/ |
D | ScanPackageAction.java | 45 Client client = Main.getUI().getSelectedClient(); in run() local 46 if (client != null) { in run() 47 work(client); in run() 61 work(ret.client); in run() 85 private Client client; field in ScanPackageAction.ClientWrapper 88 client = c; in ClientWrapper() 93 return client.getClientData().getClientDescription() + " (pid " in toString() 94 + client.getClientData().getPid() + ")"; in toString()
|
/frameworks/hardware/interfaces/stats/1.0/test_client/ |
D | StatsClient.cpp | 60 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 …]
|
/frameworks/av/media/libstagefright/ |
D | StagefrightMediaScanner.cpp | 52 MediaScannerClient &client) { in processFile() argument 55 client.setLocale(locale()); in processFile() 56 client.beginFile(); in processFile() 57 MediaScanResult result = processFileInternal(path, mimeType, client); in processFile() 61 client.setMimeType("application/octet-stream"); in processFile() 63 client.endFile(); in processFile() 69 MediaScannerClient &client) { in processFileInternal() argument 100 status = client.setMimeType(value); in processFileInternal() 138 status = client.addStringTag(kKeyMap[i].tag, value); in processFileInternal()
|
/frameworks/base/core/tests/coretests/src/android/net/http/ |
D | CookiesTest.java | 32 import org.apache.http.client.HttpClient; 33 import org.apache.http.client.methods.HttpGet; 35 import org.apache.http.impl.client.DefaultHttpClient; 67 HttpClient client = new DefaultHttpClient(); in testCookiesAreNotLogged() local 68 client.execute(new HttpGet(server.getUrl("/").toURI())); in testCookiesAreNotLogged() 97 HttpClient client = new DefaultHttpClient(); in testCookiesWithNonMatchingCase() local 98 client.getParams().setParameter( in testCookiesWithNonMatchingCase() 101 HttpResponse getCookies = client.execute(new HttpGet("http://my.t-mobile.com/")); in testCookiesWithNonMatchingCase() 105 HttpResponse sendCookies = client.execute(new HttpGet("http://my.t-mobile.com/")); in testCookiesWithNonMatchingCase()
|