Home
last modified time | relevance | path

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

12

/system/apex/apexd/
Dapexd_session.cpp131 auto session = GetSessionFromFile(sessionDirPath + "/" + kStateFileName); in GetSessions() local
132 if (!session.ok()) { in GetSessions()
133 LOG(WARNING) << session.error(); in GetSessions()
136 sessions.push_back(std::move(*session)); in GetSessions()
156 for (const ApexSession& session : sessions) { in GetActiveSessions() local
157 if (!session.IsFinalized() && session.GetState() != SessionState::UNKNOWN) { in GetActiveSessions()
158 activeSessions.push_back(session); in GetActiveSessions()
256 std::ostream& operator<<(std::ostream& out, const ApexSession& session) { in operator <<() argument
257 return out << "[id = " << session.GetId() in operator <<()
258 << "; state = " << SessionState::State_Name(session.GetState()) in operator <<()
[all …]
Dapexd_test_utils.h106 inline void PrintTo(const ApexSessionInfo& session, std::ostream* os) { in PrintTo() argument
108 *os << " sessionId : " << session.sessionId << "\n"; in PrintTo()
109 *os << " isUnknown : " << session.isUnknown << "\n"; in PrintTo()
110 *os << " isVerified : " << session.isVerified << "\n"; in PrintTo()
111 *os << " isStaged : " << session.isStaged << "\n"; in PrintTo()
112 *os << " isActivated : " << session.isActivated << "\n"; in PrintTo()
113 *os << " isActivationFailed : " << session.isActivationFailed << "\n"; in PrintTo()
114 *os << " isSuccess : " << session.isSuccess << "\n"; in PrintTo()
115 *os << " isReverted : " << session.isReverted << "\n"; in PrintTo()
116 *os << " isRevertFailed : " << session.isRevertFailed << "\n"; in PrintTo()
Dapexd.cpp1188 auto session = ApexSession::GetSession(session_id); in abortStagedSession() local
1189 if (!session) { in abortStagedSession()
1192 switch (session->GetState()) { in abortStagedSession()
1196 return session->DeleteSession(); in abortStagedSession()
1198 return Error() << "Session " << *session << " can't be aborted"; in abortStagedSession()
1329 const ApexSession& session) { in snapshotOrRestoreDeIfNeeded() argument
1330 if (session.HasRollbackEnabled()) { in snapshotOrRestoreDeIfNeeded()
1331 for (const auto& apex_name : session.GetApexNames()) { in snapshotOrRestoreDeIfNeeded()
1333 snapshotDataDirectory(base_dir, session.GetRollbackId(), apex_name); in snapshotOrRestoreDeIfNeeded()
1339 } else if (session.IsRollback()) { in snapshotOrRestoreDeIfNeeded()
[all …]
Dapexservice_test.cpp696 auto session = ApexSession::GetSession(1547); in TEST_F() local
697 ASSERT_FALSE(session->GetBuildFingerprint().empty()); in TEST_F()
829 auto session = ApexSession::GetSession(1547); in TEST_F() local
830 ASSERT_TRUE(session->GetChildSessionIds().empty()); in TEST_F()
831 ASSERT_FALSE(session->IsRollback()); in TEST_F()
832 ASSERT_FALSE(session->HasRollbackEnabled()); in TEST_F()
833 ASSERT_EQ(0, session->GetRollbackId()); in TEST_F()
1699 ApexSessionInfo session; in TEST_F() local
1700 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1704 EXPECT_THAT(session, SessionInfoEq(expected)); in TEST_F()
[all …]
Dapexservice.cpp229 void convertToApexSessionInfo(const ApexSession& session, in convertToApexSessionInfo() argument
234 session_info->sessionId = session.GetId(); in convertToApexSessionInfo()
235 session_info->crashingNativeProcess = session.GetCrashingNativeProcess(); in convertToApexSessionInfo()
237 switch (session.GetState()) { in convertToApexSessionInfo()
300 for (const auto& session : sessions) { in getSessions() local
302 convertToApexSessionInfo(session, &sessionInfo); in getSessions()
313 auto session = ApexSession::GetSession(session_id); in getStagedSessionInfo() local
314 if (!session.ok()) { in getStagedSessionInfo()
321 convertToApexSessionInfo(*session, apex_session_info); in getStagedSessionInfo()
621 for (const auto& session : sessions) { in dump() local
[all …]
Dapexd_session.h77 std::ostream& operator<<(std::ostream& out, const ApexSession& session);
/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/gd/neighbor/cert/
Dneighbor_test.py62 session = self.dut_neighbor.set_inquiry_mode(inquiry_msg)
65 …assertThat(session).emits(NeighborMatchers.InquiryResult(self.cert_address), timeout=timedelta(sec…
73 session = self.dut_neighbor.set_inquiry_mode(inquiry_msg)
76 assertThat(session).emits(
93 session = self.dut_neighbor.set_inquiry_mode(inquiry_msg)
96 assertThat(session).emits(
101 session = self.dut_neighbor.get_remote_name(self.cert_address)
102 session.verify_name(self.cert_name)
/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/apex/proto/
Dsession_state.proto37 // Current state of the session
40 // Child session ids
46 // True if rollback is enabled for this session
49 // True if this session is a rollback of a previous install
55 // The crashing native process that has caused this session to be reverted
58 // The names of the apexes within this session. Only populated for sessions
/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/gd/proto/bluetooth/metrics/
Dbluetooth.proto27 repeated BluetoothSession session = 1; field
96 // A metrics dump takes a snapshot of current Bluetooth session and thus
104 // Duration of the session.
116 // The information about the RFComm session.
119 // The information about the A2DP audio session.
143 // Session information that gets logged for A2DP session.
166 // Total audio time in this A2DP session
169 // Audio codec used in this A2DP session in A2DP source role
172 // Whether A2DP offload is enabled in this A2DP session
/system/bt/gd/common/
Dobserver_registry.h47 void callback_wrapper(int session, Callback<R(T...)> callback, T... t) { in callback_wrapper() argument
48 if (session == session_) { in callback_wrapper()
/system/media/audio/include/system/
Daudio.h161 static inline bool audio_is_global_session(audio_session_t session) { in audio_is_global_session() argument
162 return session <= AUDIO_SESSION_OUTPUT_MIX; in audio_is_global_session()
479 audio_session_t session; /* audio session */ member
499 struct audio_port_config_session_ext session; /* session specific info */ member
530 audio_session_t session; /* audio session */ member
550 struct audio_port_session_ext session; member
1360 if (lhs->ext.session.session != rhs->ext.session.session) return false; in audio_port_configs_are_equal()
/system/bt/binder/android/bluetooth/
DIBluetoothAvrcpController.aidl22 import android.media.session.PlaybackState;
/system/tools/aidl/
Dhiddenapi-greylist219 "android.media.session.IActiveSessionsListener",
220 "android.media.session.ICallback",
221 "android.media.session.IOnMediaKeyListener",
222 "android.media.session.IOnVolumeKeyLongPressListener",
223 "android.media.session.ISession",
224 "android.media.session.ISessionCallback",
225 "android.media.session.ISessionController",
226 "android.media.session.ISessionControllerCallback",
227 "android.media.session.ISessionManager",
/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/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.
/system/core/adb/
DSERVICES.TXT161 Start an interactive shell session on the device. Redirect
/system/sepolicy/public/
Ddomain.te1217 # when running an app-scoped profiling session.

12