Home
last modified time | relevance | path

Searched refs:sessionId (Results 1 – 25 of 227) sorted by relevance

12345678910

/hardware/google/pixel/power-libperfmgr/aidl/
DPowerSessionManager.cpp137 addedRes = mSessionTaskMap.add(sessionDescriptor->sessionId, sve, {}); in addPowerSession()
140 ALOGE("sessionTaskMap failed to add power session: %" PRId64, sessionDescriptor->sessionId); in addPowerSession()
143 setThreadsFromPowerSession(sessionDescriptor->sessionId, threadIds); in addPowerSession()
147 void PowerSessionManager<HintManagerT>::removePowerSession(int64_t sessionId) { in removePowerSession() argument
151 forceSessionActive(sessionId, false); in removePowerSession()
160 mSessionTaskMap.replace(sessionId, {}, &addedThreads, &removedThreads); in removePowerSession()
161 mSessionTaskMap.remove(sessionId); in removePowerSession()
170 unregisterSession(sessionId); in removePowerSession()
175 int64_t sessionId, const std::vector<int32_t> &threadIds) { in setThreadsFromPowerSession() argument
178 forceSessionActive(sessionId, false); in setThreadsFromPowerSession()
[all …]
DPowerSessionManager.h56 void removePowerSession(int64_t sessionId);
58 void setThreadsFromPowerSession(int64_t sessionId, const std::vector<int32_t> &threadIds);
60 void pause(int64_t sessionId);
61 void resume(int64_t sessionId);
66 void updateTargetWorkDuration(int64_t sessionId, AdpfVoteType voteId,
70 void voteSet(int64_t sessionId, AdpfVoteType voteId, int uclampMin, int uclampMax,
73 void voteSet(int64_t sessionId, AdpfVoteType voteId, Cycles capacity,
77 void disableBoosts(int64_t sessionId);
79 void setPreferPowerEfficiency(int64_t sessionId, bool enabled);
89 void registerSession(std::shared_ptr<void> session, int64_t sessionId);
[all …]
DSessionTaskMap.cpp29 bool SessionTaskMap::add(int64_t sessionId, const SessionValueEntry &sv, in add() argument
31 if (mSessions.find(sessionId) != mSessions.end()) { in add()
37 sessValPtr->sessionId = sessionId; in add()
39 auto &sessEntry = mSessions[sessionId]; in add()
49 void SessionTaskMap::addVote(int64_t sessionId, int voteId, int uclampMin, int uclampMax, in addVote() argument
52 auto sessItr = mSessions.find(sessionId); in addVote()
61 void SessionTaskMap::addGpuVote(int64_t sessionId, int voteId, Cycles capacity, in addGpuVote() argument
64 auto sessItr = mSessions.find(sessionId); in addGpuVote()
72 std::shared_ptr<SessionValueEntry> SessionTaskMap::findSession(int64_t sessionId) const { in findSession()
73 auto sessItr = mSessions.find(sessionId); in findSession()
[all …]
DSessionTaskMap.h47 bool add(int64_t sessionId, const SessionValueEntry &sv, const std::vector<pid_t> &taskIds);
50 void addVote(int64_t sessionId, int voteId, int uclampMin, int uclampMax,
53 void addGpuVote(int64_t sessionId, int voteId, Cycles capacity,
58 std::shared_ptr<SessionValueEntry> findSession(int64_t sessionId) const;
69 std::vector<pid_t> &getTaskIds(int64_t sessionId);
75 bool remove(int64_t sessionId);
78 bool replace(int64_t sessionId, const std::vector<pid_t> &taskIds,
93 auto sessionItr = mSessions.find(session->sessionId); in forEachSessionInTask()
111 const std::string &idString(int64_t sessionId) const;
114 bool isAppSession(int64_t sessionId) const;
[all …]
/hardware/interfaces/drm/1.0/vts/functional/
Ddrm_hal_vendor_test.cpp263 SessionId sessionId; in openSession() local
268 sessionId = id; in openSession()
271 return sessionId; in openSession()
277 void DrmHalVendorPluginTest::closeSession(const SessionId& sessionId) { in closeSession() argument
278 Status status = drmPlugin->closeSession(sessionId); in closeSession()
300 const SessionId& sessionId, const ContentConfiguration& configuration, in loadKeys() argument
304 sessionId, configuration.initData, configuration.mimeType, type, in loadKeys()
329 sessionId, keyResponse, in loadKeys()
345 auto sessionId = openSession(); in TEST_P() local
346 closeSession(sessionId); in TEST_P()
[all …]
/hardware/google/pixel/power-libperfmgr/aidl/tests/mocks/
DMockPowerSessionManager.h41 MOCK_METHOD(void, removePowerSession, (int64_t sessionId), ());
43 (int64_t sessionId, const std::vector<int32_t> &threadIds), ());
44 MOCK_METHOD(void, pause, (int64_t sessionId), ());
45 MOCK_METHOD(void, resume, (int64_t sessionId), ());
49 (int64_t sessionId, impl::pixel::AdpfVoteType voteId,
53 (int64_t sessionId, impl::pixel::AdpfVoteType voteId, int uclampMin, int uclampMax,
58 (int64_t sessionId, impl::pixel::AdpfVoteType voteId, impl::pixel::Cycles capacity,
63 MOCK_METHOD(void, disableBoosts, (int64_t sessionId), ());
64 MOCK_METHOD(void, setPreferPowerEfficiency, (int64_t sessionId, bool enabled), ());
67 MOCK_METHOD(void, registerSession, (std::shared_ptr<void> session, int64_t sessionId), ());
[all …]
/hardware/interfaces/drm/1.1/vts/functional/
Ddrm_hal_clearkey_test.cpp40 SessionId sessionId; in openSession() local
43 [&sessionId](Status status, const SessionId& id) { in openSession()
46 sessionId = id; in openSession()
49 return sessionId; in openSession()
56 SessionId sessionId; in openSession() local
59 [&sessionId](Status status, const SessionId& id) { in openSession()
62 sessionId = id; in openSession()
65 return sessionId; in openSession()
72 void DrmHalClearkeyTest::closeSession(const SessionId& sessionId) { in closeSession() argument
73 EXPECT_TRUE(drmPlugin->closeSession(sessionId).isOk()); in closeSession()
[all …]
/hardware/interfaces/drm/aidl/vts/
Ddrm_hal_test.cpp162 auto sessionId = openSession(); in TEST_P() local
166 auto ret = drmPlugin->getKeyRequest(sessionId, initData, kBadMime, KeyType::STREAMING, in TEST_P()
169 closeSession(sessionId); in TEST_P()
176 auto sessionId = openSession(); in TEST_P() local
177 vector<uint8_t> keySetId = loadKeys(sessionId, KeyType::OFFLINE); in TEST_P()
178 closeSession(sessionId); in TEST_P()
222 auto sessionId = openSession(); in TEST_P() local
224 vector<uint8_t> keySetId = loadKeys(sessionId, content, KeyType::OFFLINE); in TEST_P()
225 closeSession(sessionId); in TEST_P()
299 auto sessionId = openSession(); in TEST_P() local
[all …]
/hardware/qcom/sm7250/gps/batching/
DBatchingAdapter.cpp257 BatchingAdapter::isBatchingSession(LocationAPI* client, uint32_t sessionId) in isBatchingSession() argument
259 LocationSessionKey key(client, sessionId); in isBatchingSession()
264 BatchingAdapter::isTripSession(uint32_t sessionId) { in isTripSession() argument
265 return (mTripSessions.find(sessionId) != mTripSessions.end()); in isTripSession()
269 BatchingAdapter::saveBatchingSession(LocationAPI* client, uint32_t sessionId, in saveBatchingSession() argument
272 LocationSessionKey key(client, sessionId); in saveBatchingSession()
277 BatchingAdapter::eraseBatchingSession(LocationAPI* client, uint32_t sessionId) in eraseBatchingSession() argument
279 LocationSessionKey key(client, sessionId); in eraseBatchingSession()
287 BatchingAdapter::reportResponse(LocationAPI* client, LocationError err, uint32_t sessionId) in reportResponse() argument
289 LOC_LOGD("%s]: client %p id %u err %u", __func__, client, sessionId, err); in reportResponse()
[all …]
DBatchingAdapter.h59 void startTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId,
61 void stopTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId,
70 uint32_t sessionId,
107 void reportResponse(LocationAPI* client, LocationError err, uint32_t sessionId);
110 bool isBatchingSession(LocationAPI* client, uint32_t sessionId);
111 bool isTripSession(uint32_t sessionId);
112 void saveBatchingSession(LocationAPI* client, uint32_t sessionId,
114 void eraseBatchingSession(LocationAPI* client, uint32_t sessionId);
116 void startBatching(LocationAPI* client, uint32_t sessionId,
118 void stopBatching(LocationAPI* client, uint32_t sessionId, bool restartNeeded,
[all …]
/hardware/qcom/sm8150/gps/batching/
DBatchingAdapter.cpp257 BatchingAdapter::isBatchingSession(LocationAPI* client, uint32_t sessionId) in isBatchingSession() argument
259 LocationSessionKey key(client, sessionId); in isBatchingSession()
264 BatchingAdapter::isTripSession(uint32_t sessionId) { in isTripSession() argument
265 return (mTripSessions.find(sessionId) != mTripSessions.end()); in isTripSession()
269 BatchingAdapter::saveBatchingSession(LocationAPI* client, uint32_t sessionId, in saveBatchingSession() argument
272 LocationSessionKey key(client, sessionId); in saveBatchingSession()
277 BatchingAdapter::eraseBatchingSession(LocationAPI* client, uint32_t sessionId) in eraseBatchingSession() argument
279 LocationSessionKey key(client, sessionId); in eraseBatchingSession()
287 BatchingAdapter::reportResponse(LocationAPI* client, LocationError err, uint32_t sessionId) in reportResponse() argument
289 LOC_LOGD("%s]: client %p id %u err %u", __func__, client, sessionId, err); in reportResponse()
[all …]
DBatchingAdapter.h59 void startTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId,
61 void stopTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId,
70 uint32_t sessionId,
107 void reportResponse(LocationAPI* client, LocationError err, uint32_t sessionId);
110 bool isBatchingSession(LocationAPI* client, uint32_t sessionId);
111 bool isTripSession(uint32_t sessionId);
112 void saveBatchingSession(LocationAPI* client, uint32_t sessionId,
114 void eraseBatchingSession(LocationAPI* client, uint32_t sessionId);
116 void startBatching(LocationAPI* client, uint32_t sessionId,
118 void stopBatching(LocationAPI* client, uint32_t sessionId, bool restartNeeded,
[all …]
/hardware/qcom/sm7150/gps/batching/
DBatchingAdapter.cpp256 BatchingAdapter::isBatchingSession(LocationAPI* client, uint32_t sessionId) in isBatchingSession() argument
258 LocationSessionKey key(client, sessionId); in isBatchingSession()
263 BatchingAdapter::isTripSession(uint32_t sessionId) { in isTripSession() argument
264 return (mTripSessions.find(sessionId) != mTripSessions.end()); in isTripSession()
268 BatchingAdapter::saveBatchingSession(LocationAPI* client, uint32_t sessionId, in saveBatchingSession() argument
271 LocationSessionKey key(client, sessionId); in saveBatchingSession()
276 BatchingAdapter::eraseBatchingSession(LocationAPI* client, uint32_t sessionId) in eraseBatchingSession() argument
278 LocationSessionKey key(client, sessionId); in eraseBatchingSession()
286 BatchingAdapter::reportResponse(LocationAPI* client, LocationError err, uint32_t sessionId) in reportResponse() argument
288 LOC_LOGD("%s]: client %p id %u err %u", __func__, client, sessionId, err); in reportResponse()
[all …]
DBatchingAdapter.h59 void startTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId,
61 void stopTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId,
70 uint32_t sessionId,
107 void reportResponse(LocationAPI* client, LocationError err, uint32_t sessionId);
110 bool isBatchingSession(LocationAPI* client, uint32_t sessionId);
111 bool isTripSession(uint32_t sessionId);
112 void saveBatchingSession(LocationAPI* client, uint32_t sessionId,
114 void eraseBatchingSession(LocationAPI* client, uint32_t sessionId);
116 void startBatching(LocationAPI* client, uint32_t sessionId,
118 void stopBatching(LocationAPI* client, uint32_t sessionId, bool restartNeeded,
[all …]
/hardware/qcom/sm8150p/gps/batching/
DBatchingAdapter.cpp256 BatchingAdapter::isBatchingSession(LocationAPI* client, uint32_t sessionId) in isBatchingSession() argument
258 LocationSessionKey key(client, sessionId); in isBatchingSession()
263 BatchingAdapter::isTripSession(uint32_t sessionId) { in isTripSession() argument
264 return (mTripSessions.find(sessionId) != mTripSessions.end()); in isTripSession()
268 BatchingAdapter::saveBatchingSession(LocationAPI* client, uint32_t sessionId, in saveBatchingSession() argument
271 LocationSessionKey key(client, sessionId); in saveBatchingSession()
276 BatchingAdapter::eraseBatchingSession(LocationAPI* client, uint32_t sessionId) in eraseBatchingSession() argument
278 LocationSessionKey key(client, sessionId); in eraseBatchingSession()
286 BatchingAdapter::reportResponse(LocationAPI* client, LocationError err, uint32_t sessionId) in reportResponse() argument
288 LOC_LOGD("%s]: client %p id %u err %u", __func__, client, sessionId, err); in reportResponse()
[all …]
DBatchingAdapter.h59 void startTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId,
61 void stopTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId,
70 uint32_t sessionId,
107 void reportResponse(LocationAPI* client, LocationError err, uint32_t sessionId);
110 bool isBatchingSession(LocationAPI* client, uint32_t sessionId);
111 bool isTripSession(uint32_t sessionId);
112 void saveBatchingSession(LocationAPI* client, uint32_t sessionId,
114 void eraseBatchingSession(LocationAPI* client, uint32_t sessionId);
116 void startBatching(LocationAPI* client, uint32_t sessionId,
118 void stopBatching(LocationAPI* client, uint32_t sessionId, bool restartNeeded,
[all …]
/hardware/interfaces/drm/1.2/vts/functional/
Ddrm_hal_test.cpp137 auto sessionId = openSession(); in TEST_P() local
141 sessionId, initData, kBadMime, KeyType::STREAMING, in TEST_P()
147 closeSession(sessionId); in TEST_P()
173 auto sessionId = openSession(); in TEST_P() local
174 hidl_vec<uint8_t> keySetId = loadKeys(sessionId, KeyType::OFFLINE); in TEST_P()
175 closeSession(sessionId); in TEST_P()
211 auto sessionId = openSession(); in TEST_P() local
213 hidl_vec<uint8_t> keySetId = loadKeys(sessionId, content, KeyType::OFFLINE); in TEST_P()
214 closeSession(sessionId); in TEST_P()
273 auto sessionId = openSession(); in TEST_P() local
[all …]
/hardware/interfaces/drm/1.0/default/
DDrmPlugin.cpp39 Return<Status> DrmPlugin::closeSession(const hidl_vec<uint8_t>& sessionId) { in closeSession() argument
40 return toStatus(mLegacyPlugin->closeSession(toVector(sessionId))); in closeSession()
115 Return<Status> DrmPlugin::removeKeys(const hidl_vec<uint8_t>& sessionId) { in removeKeys() argument
116 return toStatus(mLegacyPlugin->removeKeys(toVector(sessionId))); in removeKeys()
119 Return<Status> DrmPlugin::restoreKeys(const hidl_vec<uint8_t>& sessionId, in restoreKeys() argument
121 status_t legacyStatus = mLegacyPlugin->restoreKeys(toVector(sessionId), in restoreKeys()
126 Return<void> DrmPlugin::queryKeyStatus(const hidl_vec<uint8_t>& sessionId, in queryKeyStatus() argument
130 status_t status = mLegacyPlugin->queryKeyStatus(toVector(sessionId), in queryKeyStatus()
251 const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm) { in setCipherAlgorithm() argument
253 mLegacyPlugin->setCipherAlgorithm(toVector(sessionId), in setCipherAlgorithm()
[all …]
DDrmPlugin.h55 Return<Status> closeSession(const hidl_vec<uint8_t>& sessionId) override;
66 Return<Status> removeKeys(const hidl_vec<uint8_t>& sessionId) override;
68 Return<Status> restoreKeys(const hidl_vec<uint8_t>& sessionId,
71 Return<void> queryKeyStatus(const hidl_vec<uint8_t>& sessionId,
103 Return<Status> setCipherAlgorithm(const hidl_vec<uint8_t>& sessionId,
106 Return<Status> setMacAlgorithm(const hidl_vec<uint8_t>& sessionId,
109 Return<void> encrypt(const hidl_vec<uint8_t>& sessionId,
113 Return<void> decrypt(const hidl_vec<uint8_t>& sessionId,
117 Return<void> sign(const hidl_vec<uint8_t>& sessionId,
121 Return<void> verify(const hidl_vec<uint8_t>& sessionId,
[all …]
/hardware/interfaces/cas/1.1/default/
DCasImpl.cpp55 const CasSessionId* sessionId) { in CallBackExt() argument
61 casImpl->onEvent(sessionId, event, arg, data, size); in CallBackExt()
83 void CasImpl::onEvent(const CasSessionId* sessionId, int32_t event, int32_t arg, uint8_t* data, in onEvent() argument
94 if (sessionId != NULL) { in onEvent()
95 mListener->onSessionEvent(*sessionId, event, arg, eventData); in onEvent()
112 CasSessionId sessionId; in openSession() local
117 err = holder->openSession(&sessionId); in openSession()
121 _hidl_cb(toStatus(err), sessionId); in openSession()
126 Return<Status> CasImpl::setSessionPrivateData(const HidlCasSessionId& sessionId, in setSessionPrivateData() argument
128 ALOGV("%s: sessionId=%s", __FUNCTION__, sessionIdToString(sessionId).c_str()); in setSessionPrivateData()
[all …]
/hardware/interfaces/cas/1.2/default/
DCasImpl.cpp56 const CasSessionId* sessionId) { in CallBackExt() argument
62 casImpl->onEvent(sessionId, event, arg, data, size); in CallBackExt()
94 void CasImpl::onEvent(const CasSessionId* sessionId, int32_t event, int32_t arg, uint8_t* data, in onEvent() argument
105 if (sessionId != NULL) { in onEvent()
106 mListener->onSessionEvent(*sessionId, event, arg, eventData); in onEvent()
143 CasSessionId sessionId; in openSession() local
148 err = holder->openSession(&sessionId); in openSession()
152 _hidl_cb(toStatus(err), sessionId); in openSession()
160 CasSessionId sessionId; in openSession_1_2() local
166 &sessionId); in openSession_1_2()
[all …]
/hardware/interfaces/drm/aidl/android/hardware/drm/
DIDrmPlugin.aidl57 void closeSession(in byte[] sessionId); in closeSession() argument
76 byte[] decrypt(in byte[] sessionId, in byte[] keyId, in byte[] input, in byte[] iv); in decrypt() argument
95 byte[] encrypt(in byte[] sessionId, in byte[] keyId, in byte[] input, in byte[] iv); in encrypt() argument
380 SecurityLevel getSecurityLevel(in byte[] sessionId); in getSecurityLevel() argument
466 List<KeyValue> queryKeyStatus(in byte[] sessionId); in queryKeyStatus() argument
531 void removeKeys(in byte[] sessionId); in removeKeys() argument
592 void restoreKeys(in byte[] sessionId, in KeySetId keySetId); in restoreKeys() argument
613 void setCipherAlgorithm(in byte[] sessionId, in String algorithm); in setCipherAlgorithm() argument
641 void setMacAlgorithm(in byte[] sessionId, in String algorithm); in setMacAlgorithm() argument
654 void setPlaybackId(in byte[] sessionId, in String playbackId); in setPlaybackId() argument
[all …]
/hardware/interfaces/drm/aidl/aidl_api/android.hardware.drm/1/android/hardware/drm/
DIDrmPlugin.aidl37 void closeSession(in byte[] sessionId); in closeSession() argument
38 byte[] decrypt(in byte[] sessionId, in byte[] keyId, in byte[] input, in byte[] iv); in decrypt() argument
39 byte[] encrypt(in byte[] sessionId, in byte[] keyId, in byte[] input, in byte[] iv); in encrypt() argument
53 android.hardware.drm.SecurityLevel getSecurityLevel(in byte[] sessionId); in getSecurityLevel() argument
57 List<android.hardware.drm.KeyValue> queryKeyStatus(in byte[] sessionId); in queryKeyStatus() argument
62 void removeKeys(in byte[] sessionId); in removeKeys() argument
66 void restoreKeys(in byte[] sessionId, in android.hardware.drm.KeySetId keySetId); in restoreKeys() argument
67 void setCipherAlgorithm(in byte[] sessionId, in String algorithm); in setCipherAlgorithm() argument
69 void setMacAlgorithm(in byte[] sessionId, in String algorithm); in setMacAlgorithm() argument
70 void setPlaybackId(in byte[] sessionId, in String playbackId); in setPlaybackId() argument
[all …]
/hardware/interfaces/drm/aidl/aidl_api/android.hardware.drm/current/android/hardware/drm/
DIDrmPlugin.aidl37 void closeSession(in byte[] sessionId); in closeSession() argument
38 byte[] decrypt(in byte[] sessionId, in byte[] keyId, in byte[] input, in byte[] iv); in decrypt() argument
39 byte[] encrypt(in byte[] sessionId, in byte[] keyId, in byte[] input, in byte[] iv); in encrypt() argument
53 android.hardware.drm.SecurityLevel getSecurityLevel(in byte[] sessionId); in getSecurityLevel() argument
57 List<android.hardware.drm.KeyValue> queryKeyStatus(in byte[] sessionId); in queryKeyStatus() argument
62 void removeKeys(in byte[] sessionId); in removeKeys() argument
66 void restoreKeys(in byte[] sessionId, in android.hardware.drm.KeySetId keySetId); in restoreKeys() argument
67 void setCipherAlgorithm(in byte[] sessionId, in String algorithm); in setCipherAlgorithm() argument
69 void setMacAlgorithm(in byte[] sessionId, in String algorithm); in setMacAlgorithm() argument
70 void setPlaybackId(in byte[] sessionId, in String playbackId); in setPlaybackId() argument
[all …]
/hardware/interfaces/cas/aidl/default/
DCasImpl.cpp51 const CasSessionId* sessionId) { in CallBackExt() argument
57 casImpl->onEvent(sessionId, event, arg, data, size); in CallBackExt()
88 void CasImpl::onEvent(const CasSessionId* sessionId, int32_t event, int32_t arg, uint8_t* data, in onEvent() argument
99 if (sessionId != NULL) { in onEvent()
100 mListener->onSessionEvent(*sessionId, event, arg, eventData); in onEvent()
131 ScopedAStatus CasImpl::openSessionDefault(vector<uint8_t>* sessionId) { in openSessionDefault() argument
137 err = holder->openSession(sessionId); in openSessionDefault()
145 vector<uint8_t>* sessionId) { in openSession() argument
152 sessionId); in openSession()
159 ScopedAStatus CasImpl::setSessionPrivateData(const vector<uint8_t>& sessionId, in setSessionPrivateData() argument
[all …]

12345678910