Home
last modified time | relevance | path

Searched refs:pw (Results 1 – 25 of 38) sorted by relevance

12

/system/chre/apps/test/common/chre_api_test/src/
Dchre_api_test_manager.cc63 pw::Status status = writer->Write(message); in sendFinishAndCloseWriter()
88 pw::Status ChreApiTestService::ChreBleGetCapabilities( in ChreBleGetCapabilities()
93 ? pw::OkStatus() in ChreBleGetCapabilities()
94 : pw::Status::InvalidArgument(); in ChreBleGetCapabilities()
97 pw::Status ChreApiTestService::ChreBleGetFilterCapabilities( in ChreBleGetFilterCapabilities()
102 ? pw::OkStatus() in ChreBleGetFilterCapabilities()
103 : pw::Status::InvalidArgument(); in ChreBleGetFilterCapabilities()
106 pw::Status ChreApiTestService::ChreBleStartScanAsync( in ChreBleStartScanAsync()
112 ? pw::OkStatus() in ChreBleStartScanAsync()
113 : pw::Status::InvalidArgument(); in ChreBleStartScanAsync()
[all …]
/system/chre/apps/test/common/chre_api_test/inc/
Dchre_api_test_manager.h41 pw::Status ChreBleGetCapabilities(const chre_rpc_Void &request,
47 pw::Status ChreBleGetFilterCapabilities(const chre_rpc_Void &request,
53 pw::Status ChreBleStartScanAsync(
60 pw::Status ChreBleStopScanAsync(const chre_rpc_Void &request,
66 pw::Status ChreSensorFindDefault(
73 pw::Status ChreGetSensorInfo(const chre_rpc_ChreHandleInput &request,
79 pw::Status ChreGetSensorSamplingStatus(
86 pw::Status ChreSensorConfigure(
93 pw::Status ChreSensorConfigureModeOnly(
100 pw::Status ChreAudioGetSource(const chre_rpc_ChreHandleInput &request,
[all …]
/system/chre/util/pigweed/
Dchre_channel_output.cc41 pw::Status sendToNanoapp(uint32_t targetInstanceId, uint16_t eventType, in sendToNanoapp()
42 pw::span<const std::byte> buffer) { in sendToNanoapp()
81 pw::Status ChreServerNanoappChannelOutput::Send( in Send()
82 pw::span<const std::byte> buffer) { in Send()
100 pw::Status ChreClientNanoappChannelOutput::Send( in Send()
101 pw::span<const std::byte> buffer) { in Send()
110 pw::Status ChreServerHostChannelOutput::Send(pw::span<const std::byte> buffer) { in Send()
112 pw::Status returnCode = PW_STATUS_OK; in Send()
Drpc_server.cc101 pw::span packet(static_cast<const std::byte *>(hostMessage->message), in handleMessageFromHost()
104 pw::Result<uint32_t> result = pw::rpc::ExtractChannelId(packet); in handleMessageFromHost()
127 pw::Status status = mServer.ProcessPacket(packet); in handleMessageFromHost()
129 if (status != pw::OkStatus()) { in handleMessageFromHost()
141 pw::span packet(static_cast<const std::byte *>(data->msg), data->msgSize); in handleMessageFromNanoapp()
143 pw::Result<uint32_t> result = pw::rpc::ExtractChannelId(packet); in handleMessageFromNanoapp()
158 pw::Status success = mServer.ProcessPacket(packet); in handleMessageFromNanoapp()
160 if (success != pw::OkStatus()) { in handleMessageFromNanoapp()
196 pw::Status RpcServer::closeChannel(uint32_t id) { in closeChannel()
Drpc_client.cc64 pw::span packet(static_cast<const std::byte *>(data->msg), data->msgSize); in handleMessageFromServer()
76 pw::Status status = mRpcClient.ProcessPacket(packet); in handleMessageFromServer()
78 if (status != pw::OkStatus()) { in handleMessageFromServer()
/system/chre/util/include/chre/util/pigweed/
Dchre_channel_output.h43 class ChreChannelOutputBase : public pw::rpc::ChannelOutput {
76 pw::Status Send(pw::span<const std::byte> buffer) override;
98 pw::Status Send(pw::span<const std::byte> buffer) override;
117 pw::Status Send(pw::span<const std::byte> buffer) override;
Drpc_server.h46 pw::rpc::Service &service;
164 pw::Status closeChannel(uint32_t id);
169 pw::rpc::Server mServer;
/system/chre/test/common/
Drun_tests.cc25 using pw::unit_test::EventHandler;
26 using pw::unit_test::RunTestsSummary;
27 using pw::unit_test::TestCase;
28 using pw::unit_test::TestExpectation;
29 using pw::unit_test::TestResult;
78 pw::unit_test::RegisterEventHandler(&eventHandler); in runAllTests()
/system/extras/su/
Dsu.cpp30 struct passwd* pw = getpwnam(tok); in pwtoid() local
31 if (pw) { in pwtoid()
32 if (uid) *uid = pw->pw_uid; in pwtoid()
33 if (gid) *gid = pw->pw_gid; in pwtoid()
123 struct passwd* pw = getpwuid(uid); in main() local
124 if (pw) { in main()
125 setenv("LOGNAME", pw->pw_name, 1); in main()
126 setenv("USER", pw->pw_name, 1); in main()
/system/chre/apps/rpc_world/inc/
Drpc_world_manager.h37 pw::Status Increment(const chre_rpc_NumberMessage &request,
115 pw::rpc::NanopbUnaryReceiver<chre_rpc_NumberMessage> mIncrementCall;
116 pw::rpc::NanopbClientReader<chre_rpc_TimerResponse> mTimerCall;
117 pw::rpc::NanopbClientWriter<chre_rpc_NumberMessage, chre_rpc_NumberMessage>
/system/security/keystore/
Duser_state.cpp85 ResponseCode UserState::initialize(const android::String8& pw) { in initialize() argument
89 ResponseCode response = writeMasterKey(pw); in initialize()
139 ResponseCode UserState::writeMasterKey(const android::String8& pw) { in writeMasterKey() argument
141 generateKeyFromPassword(passwordKey, pw, mSalt); in writeMasterKey()
151 ResponseCode UserState::readMasterKey(const android::String8& pw) { in readMasterKey() argument
181 generateKeyFromPassword(passwordKey, pw, salt); in readMasterKey()
198 response = writeMasterKey(pw); in readMasterKey()
237 void UserState::generateKeyFromPassword(std::vector<uint8_t>& key, const android::String8& pw, in generateKeyFromPassword() argument
256 PKCS5_PBKDF2_HMAC(reinterpret_cast<const char*>(pw.string()), pw.length(), salt, saltSize, 8192, in generateKeyFromPassword()
Duser_state.h61 ResponseCode initialize(const android::String8& pw);
65 ResponseCode writeMasterKey(const android::String8& pw);
66 ResponseCode readMasterKey(const android::String8& pw);
84 void generateKeyFromPassword(std::vector<uint8_t>& key, const android::String8& pw,
/system/chre/apps/rpc_world/src/
Drpc_world_manager.cc28 pw::Status RpcWorldService::Increment(const chre_rpc_NumberMessage &request, in Increment()
33 return pw::OkStatus(); in Increment()
50 pw::Status status) { in incrementResponse()
62 void timerEnd(pw::Status status) { in timerEnd()
66 void addResponse(const chre_rpc_NumberMessage &response, pw::Status status) { in addResponse()
137 mTimerWriter.Finish(pw::OkStatus()); in handleEvent()
/system/extras/checkpoint_gc/
Dcheckpoint_gc.sh61 { log -pw -t checkpoint_gc Cannot read gc_urgent_sleep_time; exit 1; }
64 { log -pw -t checkpoint_gc Cannot set gc_urgent_sleep_time; exit 1; }
73 log -pw -t checkpoint_gc Failed to set gc_urgent; exit 1; }
97 log -pw -t checkpoint_gc Timed out with gc threshold not met.
/system/chre/apps/test/common/rpc_service_test/inc/
Drpc_service_manager.h34 : public pw::rpc::pw_rpc::nanopb::EchoService::Service<EchoService> {
38 pw::Status Echo(const pw_rpc_EchoMessage &request,
/system/chre/test/simulation/inc/
Drpc_test.h41 pw::Status Increment(const chre_rpc_NumberMessage &request,
49 pw::rpc::NanopbUnaryReceiver<chre_rpc_NumberMessage> mIncrementCall;
/system/teeui/tools/framebufferizer/src/com/android/framebufferizer/utils/
DConfig.java90 PrintWriter pw = new PrintWriter(file); in saveConfiguration() local
91 pw.write(jsonObject.toString()); in saveConfiguration()
92 pw.flush(); in saveConfiguration()
93 pw.close(); in saveConfiguration()
/system/chre/apps/test/common/rpc_service_test/src/
Drpc_service_manager.cc27 pw::Status EchoService::Echo(const pw_rpc_EchoMessage &request, in Echo()
33 return pw::OkStatus(); in Echo()
/system/core/run-as/
Drun-as.cpp264 passwd* pw = getpwuid(uid); in main() local
265 setenv("LOGNAME", pw->pw_name, 1); in main()
266 setenv("SHELL", pw->pw_shell, 1); in main()
267 setenv("USER", pw->pw_name, 1); in main()
/system/extras/runconuid/
Drunconuid.cpp90 struct passwd* pw; in lookup_uid() local
97 if ((pw = getpwnam(c)) != 0) { in lookup_uid()
98 return pw->pw_uid; in lookup_uid()
/system/chre/host/common/include/chre_host/
Dlog_message_parser.h30 using pw::tokenizer::DetokenizedString;
31 using pw::tokenizer::Detokenizer;
/system/security/keystore2/src/
Dsuper_key.rs411 pw: &Password, in unlock_user_key()
423 .load_super_key(user, pw) in unlock_user_key()
438 Self::encrypt_with_password(&super_key, pw).context("In create_new_key.") in unlock_user_key()
443 self.populate_cache_from_super_key_blob(user, USER_SUPER_KEY.algorithm, entry, pw) in unlock_user_key()
537 pw: &Password, in check_and_unlock_super_key()
541 .with_try_import_super_key(user_id, pw, || db.load_super_key(alias, user_id)) in check_and_unlock_super_key()
547 .populate_cache_from_super_key_blob(user_id, alias.algorithm, entry, pw) in check_and_unlock_super_key()
566 pw: Option<&Password>, in check_and_initialize_super_key()
573 } else if let Some(pw) = pw { in check_and_initialize_super_key()
580 Self::encrypt_with_password(&super_key, pw).context(ks_err!())?; in check_and_initialize_super_key()
[all …]
Dmaintenance.rs79 if let Some(pw) = password.as_ref() { in on_user_password_changed()
81 skm.unlock_screen_lock_bound_key(&mut db.borrow_mut(), user_id as u32, pw) in on_user_password_changed()
286 map_or_log_err(Self::on_user_password_changed(user_id, password.map(|pw| pw.into())), Ok) in onUserPasswordChanged()
/system/security/keystore2/src/crypto/
Dlib.rs184 fn from(pw: &'a [u8]) -> Self { in from()
185 Self::Ref(pw) in from()
209 let pw = self.get_key(); in derive_key() localVariable
216 pw.as_ptr() as *const std::os::raw::c_char, in derive_key()
217 pw.len(), in derive_key()
534 let pw = vec![0; 16]; in test_generate_key_from_password() localVariable
537 generateKeyFromPassword(key.as_mut_ptr(), 16, pw.as_ptr(), 16, salt.as_ptr()); in test_generate_key_from_password()
/system/chre/core/
Dlog.cc29 pw::tokenizer::EncodedMessage encodedMessage(token, types, args); in EncodeTokenizedMessage()

12