Home
last modified time | relevance | path

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

12

/system/chre/util/include/chre/util/pigweed/
Dchre_channel_output.h42 class ChreServerNanoappChannelOutput : public pw::rpc::ChannelOutput {
55 pw::Status Send(pw::span<const std::byte> buffer) override;
66 class ChreClientNanoappChannelOutput : public pw::rpc::ChannelOutput {
81 pw::Status Send(pw::span<const std::byte> buffer) override;
91 class ChreServerHostChannelOutput : public pw::rpc::ChannelOutput {
103 pw::Status Send(pw::span<const std::byte> buffer) override;
Drpc_server.h46 pw::rpc::Service &service;
170 pw::Status closeChannel(uint32_t id);
175 pw::rpc::Server mServer;
/system/chre/apps/test/common/chre_api_test/inc/
Dchre_api_test_manager.h41 pw::Status ChreBleGetCapabilities(const google_protobuf_Empty &request,
47 pw::Status ChreBleGetFilterCapabilities(const google_protobuf_Empty &request,
53 pw::Status ChreSensorFindDefault(
60 pw::Status ChreGetSensorInfo(const chre_rpc_ChreHandleInput &request,
66 pw::Status ChreGetSensorSamplingStatus(
73 pw::Status ChreSensorConfigure(
80 pw::Status ChreSensorConfigureModeOnly(
87 pw::Status ChreAudioGetSource(const chre_rpc_ChreHandleInput &request,
93 pw::Status ChreAudioConfigureSource(
100 pw::Status ChreAudioGetStatus(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()
79 pw::Status ChreServerNanoappChannelOutput::Send( in Send()
80 pw::span<const std::byte> buffer) { in Send()
101 pw::Status ChreClientNanoappChannelOutput::Send( in Send()
102 pw::span<const std::byte> buffer) { in Send()
114 pw::Status ChreServerHostChannelOutput::Send(pw::span<const std::byte> buffer) { in Send()
116 pw::Status returnCode = PW_STATUS_OK; in Send()
Drpc_server.cc100 pw::span packet(static_cast<const std::byte *>(hostMessage->message), in handleMessageFromHost()
103 pw::Result<uint32_t> result = pw::rpc::ExtractChannelId(packet); in handleMessageFromHost()
126 pw::Status status = mServer.ProcessPacket(packet); in handleMessageFromHost()
128 if (status != pw::OkStatus()) { in handleMessageFromHost()
140 pw::span packet(reinterpret_cast<const std::byte *>(data->msg), 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.cc68 pw::span packet(reinterpret_cast<const std::byte *>(data->msg), in handleMessageFromServer()
81 pw::Status status = mRpcClient.ProcessPacket(packet); in handleMessageFromServer()
83 if (status != pw::OkStatus()) { in handleMessageFromServer()
/system/chre/apps/test/common/chre_api_test/src/
Dchre_api_test_manager.cc68 pw::Status status = writer->Write(message); in sendFinishAndCloseWriter()
93 pw::Status ChreApiTestService::ChreBleGetCapabilities( in ChreBleGetCapabilities()
98 ? pw::OkStatus() in ChreBleGetCapabilities()
99 : pw::Status::InvalidArgument(); in ChreBleGetCapabilities()
102 pw::Status ChreApiTestService::ChreBleGetFilterCapabilities( in ChreBleGetFilterCapabilities()
107 ? pw::OkStatus() in ChreBleGetFilterCapabilities()
108 : pw::Status::InvalidArgument(); in ChreBleGetFilterCapabilities()
111 pw::Status ChreApiTestService::ChreSensorFindDefault( in ChreSensorFindDefault()
117 ? pw::OkStatus() in ChreSensorFindDefault()
118 : pw::Status::InvalidArgument(); in ChreSensorFindDefault()
[all …]
/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/host/common/include/chre_host/pigweed/
Dhal_channel_output.h33 public pw::rpc::ChannelOutput {
37 : pw::rpc::ChannelOutput("CHRE"), in HalChannelOutput()
45 pw::Status Send(pw::span<const std::byte> buffer) override;
/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/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.sh68 { log -pw -t checkpoint_gc Cannot read gc_urgent_sleep_time; exit 1; }
71 { log -pw -t checkpoint_gc Cannot set gc_urgent_sleep_time; exit 1; }
80 log -pw -t checkpoint_gc Failed to set gc_urgent; exit 1; }
104 …log -pw -t checkpoint_gc Garbage Collection is making no progress. Aborting checkpoint_gc attempt …
119 log -pw -t checkpoint_gc Timed out with gc threshold not met.
/system/chre/core/
Dlog.cc30 pw::tokenizer::EncodedMessage<pw::log_tokenized::kEncodingBufferSizeBytes> in EncodeTokenizedMessage()
/system/chre/platform/shared/
Dtokenized_log.cc31 pw::tokenizer::EncodedMessage<pw::log_tokenized::kEncodingBufferSizeBytes> in platform_chrePwTokenizedLog()
/system/chre/host/common/pigweed/
Dhal_channel_output.cc39 pw::Status HalChannelOutput::Send(pw::span<const std::byte> buffer) { in Send()
/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,
50 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.cpp257 passwd* pw = getpwuid(uid); in main() local
258 setenv("LOGNAME", pw->pw_name, 1); in main()
259 setenv("SHELL", pw->pw_shell, 1); in main()
260 setenv("USER", pw->pw_name, 1); in main()
/system/security/keystore2/src/
Dsuper_key.rs509 pw: &Password, in populate_cache_from_super_key_blob()
511 let super_key = Self::extract_super_key_from_key_entry(algorithm, entry, pw, None) in populate_cache_from_super_key_blob()
522 pw: &Password, in extract_super_key_from_key_entry()
534 let key = pw in extract_super_key_from_key_entry()
540 let key = pw in extract_super_key_from_key_entry()
576 pw: &Password, in encrypt_with_password()
580 pw.derive_key_hkdf(&salt, AES_256_KEY_LENGTH) in encrypt_with_password()
583 pw.derive_key_pbkdf2(&salt, AES_256_KEY_LENGTH) in encrypt_with_password()
1349 fn setup_test(pw: &Password) -> (Arc<RwLock<SuperKeyManager>>, KeystoreDB, LegacyImporter) { in setup_test()
1357 .init_user(&mut keystore_db, &legacy_importer, USER_ID, pw) in setup_test()
[all …]
/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/security/keystore2/src/crypto/
Dlib.rs184 fn from(pw: &'a [u8]) -> Self { in from()
185 Self::Ref(pw) in from()
212 let pw = self.get_key(); in derive_key_pbkdf2() localVariable
221 pw.as_ptr() as *const std::os::raw::c_char, in derive_key_pbkdf2()
222 pw.len(), in derive_key_pbkdf2()
548 let pw = [0; 16]; in test_pbkdf2() localVariable
554 PBKDF2(key.as_mut_ptr(), key.len(), pw.as_ptr(), pw.len(), salt.as_ptr()); in test_pbkdf2()
/system/chre/host/common/test/
Dchre_test_rpc.cc90 pw::Status status) { in incrementResponse()
127 pw::rpc::NanopbUnaryReceiver<chre_rpc_NumberMessage> call = in main()

12