Home
last modified time | relevance | path

Searched refs:session (Results 1 – 25 of 26) sorted by relevance

12

/system/apex/apexd/
Dapexd_test_utils.h114 inline void PrintTo(const ApexSessionInfo& session, std::ostream* os) { in PrintTo() argument
116 *os << " sessionId : " << session.sessionId << "\n"; in PrintTo()
117 *os << " isUnknown : " << session.isUnknown << "\n"; in PrintTo()
118 *os << " isVerified : " << session.isVerified << "\n"; in PrintTo()
119 *os << " isStaged : " << session.isStaged << "\n"; in PrintTo()
120 *os << " isActivated : " << session.isActivated << "\n"; in PrintTo()
121 *os << " isActivationFailed : " << session.isActivationFailed << "\n"; in PrintTo()
122 *os << " isSuccess : " << session.isSuccess << "\n"; in PrintTo()
123 *os << " isRolledBack : " << session.isRolledBack << "\n"; in PrintTo()
124 *os << " isRollbackFailed : " << session.isRollbackFailed << "\n"; in PrintTo()
Dapexd_session.cpp91 ApexSession session(state); in CreateSession() local
93 return StatusOr<ApexSession>(std::move(session)); in CreateSession()
130 auto session = GetSessionFromFile(sessionDirPath + "/" + kStateFileName); in GetSessions() local
131 if (!session.Ok()) { in GetSessions()
132 LOG(WARNING) << session.ErrorMessage(); in GetSessions()
135 sessions.push_back(std::move(*session)); in GetSessions()
155 for (const ApexSession& session : sessions) { in GetActiveSession() local
156 if (!session.IsFinalized()) { in GetActiveSession()
161 ret.emplace(session); in GetActiveSession()
214 std::ostream& operator<<(std::ostream& out, const ApexSession& session) { in operator <<() argument
[all …]
Dapexd.cpp805 for (ApexSession& session : sessions) { in ClearSessions()
806 Status status = session.DeleteSession(); in ClearSessions()
895 Status DoRollback(ApexSession& session) { in DoRollback() argument
901 auto st = session.UpdateStateAndCommit(SessionState::ROLLBACK_FAILED); in DoRollback()
902 LOG(DEBUG) << "Marking " << session << " as failed to rollback"; in DoRollback()
904 LOG(WARNING) << "Failed to mark session " << session in DoRollback()
950 Status RollbackStagedSession(ApexSession& session) { in RollbackStagedSession() argument
953 return session.UpdateStateAndCommit(SessionState::ROLLED_BACK); in RollbackStagedSession()
956 Status RollbackActivatedSession(ApexSession& session) { in RollbackActivatedSession() argument
966 session.UpdateStateAndCommit(SessionState::ROLLBACK_IN_PROGRESS); in RollbackActivatedSession()
[all …]
Dapexservice_test.cpp1068 ApexSessionInfo session; in TEST_F() local
1069 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1073 EXPECT_THAT(session, SessionInfoEq(expected)); in TEST_F()
1079 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1083 EXPECT_THAT(session, SessionInfoEq(expected)); in TEST_F()
1090 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1092 EXPECT_THAT(session, SessionInfoEq(expected)); in TEST_F()
1171 ApexSessionInfo session;
1172 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(456, &session)))
1176 EXPECT_THAT(session, SessionInfoEq(expected));
[all …]
Dapexservice.cpp220 void convertToApexSessionInfo(const ApexSession& session, in convertToApexSessionInfo() argument
225 session_info->sessionId = session.GetId(); in convertToApexSessionInfo()
227 switch (session.GetState()) { in convertToApexSessionInfo()
294 for (const auto& session : sessions) { in getSessions() local
296 convertToApexSessionInfo(session, &sessionInfo); in getSessions()
307 auto session = ApexSession::GetSession(session_id); in getStagedSessionInfo() local
308 if (!session.Ok()) { in getStagedSessionInfo()
315 convertToApexSessionInfo(*session, apex_session_info); in getStagedSessionInfo()
545 for (const auto& session : sessions) { in dump() local
547 auto child_ids = session.GetChildSessionIds(); in dump()
[all …]
Dapexd_session.h60 std::ostream& operator<<(std::ostream& out, const ApexSession& session);
/system/netd/resolv/
DDnsTlsSessionCache.cpp40 int DnsTlsSessionCache::newSessionCallback(SSL* ssl, SSL_SESSION* session) { in newSessionCallback() argument
41 if (!ssl || !session) { in newSessionCallback()
52 cache->recordSession(session); in newSessionCallback()
56 void DnsTlsSessionCache::recordSession(SSL_SESSION* session) { in recordSession() argument
58 mSessions.emplace_front(session); in recordSession()
DDnsTlsSessionCache.h48 static int newSessionCallback(SSL* _Nullable ssl, SSL_SESSION* _Nullable session);
51 void recordSession(SSL_SESSION* _Nullable session) EXCLUDES(mLock);
DDnsTlsSocket.cpp211 bssl::UniquePtr<SSL_SESSION> session = mCache->getSession(); in sslConnect() local
212 if (session) { in sslConnect()
214 SSL_set_session(ssl.get(), session.get()); in sslConnect()
DREADME.md26 `DnsTlsSessionCache` allows TLS session resumption.
96 This sets the limit on how long session tickets will be preserved during idle periods,
/system/extras/simpleperf/demo/CppApi/app/src/main/cpp/
Dnative-lib.cpp36 simpleperf::ProfileSession session; in ProfileThreadFunc() local
38 session.StartRecording(options); in ProfileThreadFunc()
42 session.PauseRecording(); in ProfileThreadFunc()
45 session.ResumeRecording(); in ProfileThreadFunc()
49 session.StopRecording(); in ProfileThreadFunc()
/system/bt/common/
Dmetrics_unittest.cc111 A2DPSession* session = new A2DPSession(); in MakeA2DPSession() local
112 session->set_media_timer_min_millis(metrics.media_timer_min_ms); in MakeA2DPSession()
113 session->set_media_timer_max_millis(metrics.media_timer_max_ms); in MakeA2DPSession()
114 session->set_media_timer_avg_millis(metrics.media_timer_avg_ms); in MakeA2DPSession()
115 session->set_buffer_overruns_max_count(metrics.buffer_overruns_max_count); in MakeA2DPSession()
116 session->set_buffer_overruns_total(metrics.buffer_overruns_total); in MakeA2DPSession()
117 session->set_buffer_underruns_average(metrics.buffer_underruns_average); in MakeA2DPSession()
118 session->set_buffer_underruns_count(metrics.buffer_underruns_count); in MakeA2DPSession()
119 session->set_audio_duration_millis(metrics.audio_duration_ms); in MakeA2DPSession()
120 session->set_source_codec(source_codec); in MakeA2DPSession()
[all …]
/system/core/trusty/storage/lib/include/trusty/lib/
Dstorage.h54 void storage_close_session(storage_session_t session);
76 int storage_open_file(storage_session_t session, file_handle_t *handle_p,
93 int storage_delete_file(storage_session_t session, const char *name,
151 int storage_end_transaction(storage_session_t session, bool complete);
/system/core/trusty/storage/lib/
Dstorage.c104 static ssize_t send_reqv(storage_session_t session, in send_reqv() argument
110 rc = writev(session, tx_iovs, tx_iovcnt); in send_reqv()
117 rc = readv(session, rx_iovs, rx_iovcnt); in send_reqv()
137 void storage_close_session(storage_session_t session) in storage_close_session() argument
139 tipc_close(session); in storage_close_session()
143 int storage_open_file(storage_session_t session, file_handle_t *handle_p, const char *name, in storage_open_file() argument
152 ssize_t rc = send_reqv(session, tx, 3, rx, 2); in storage_open_file()
162 *handle_p = make_file_handle(session, rsp.handle); in storage_open_file()
180 int storage_delete_file(storage_session_t session, const char *name, uint32_t opflags) in storage_delete_file() argument
187 ssize_t rc = send_reqv(session, tx, 3, rx, 1); in storage_delete_file()
[all …]
/system/bt/proto/bluetooth/metrics/
Dbluetooth.proto29 repeated BluetoothSession session = 1; field
98 // A metrics dump takes a snapshot of current Bluetooth session and thus
106 // Duration of the session.
118 // The information about the RFComm session.
121 // The information about the A2DP audio session.
145 // Session information that gets logged for A2DP session.
168 // Total audio time in this A2DP session
171 // Audio codec used in this A2DP session in A2DP source role
174 // Whether A2DP offload is enabled in this A2DP session
/system/apex/proto/
Dsession_state.proto37 // Current state of the session
40 // Child session ids
/system/bt/binder/android/bluetooth/
DIBluetoothAvrcpController.aidl22 import android.media.session.PlaybackState;
/system/media/audio/include/system/
Daudio.h468 audio_session_t session; /* audio session */ member
488 struct audio_port_config_session_ext session; /* session specific info */ member
519 audio_session_t session; /* audio session */ member
539 struct audio_port_session_ext session; member
1304 if (lhs->ext.session.session != rhs->ext.session.session) return false; in audio_port_configs_are_equal()
/system/chre/core/
Dgnss_manager.cc87 GnssSession *session; in handleStatusChange() member
96 cbState->session = this; in handleStatusChange()
100 state->session->handleStatusChangeSync(state->enabled, state->errorCode); in handleStatusChange()
/system/bt/service/doc/
DIBluetoothLowEnergyCallback.txt42 * Called to report BLE device scan results once a scan session is started for
DIBluetoothLowEnergy.txt70 * Stops a previously initiated scan session for the client with ID
/system/extras/power_profile/camera_avg/Application/src/main/java/com/example/android/powerprofile/cameraavg/
DCameraAvgFragment.java337 public void onCaptureProgressed(@NonNull CameraCaptureSession session,
344 public void onCaptureCompleted(@NonNull CameraCaptureSession session,
847 public void onCaptureCompleted(@NonNull CameraCaptureSession session, in captureStillPicture()
/system/extras/perfprofd/
Dperfprofd_config.proto14 // The configuration for a profiling session.
/system/chre/platform/shared/idl/
Dhost_messages.fbs198 /// session can be active at a time. Upon accepting a request, zero or more
213 /// The number of DebugDumpData messages sent in this session
/system/core/fastboot/
DREADME.md319 fastboot session. This message is meant to allow recovery if a
320 previous session failed, e.g. due to network error or user Ctrl+C.

12