/system/chre/apps/test/common/chre_api_test/src/ |
D | chre_api_test_manager.cc | 63 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/ |
D | chre_api_test_manager.h | 41 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/ |
D | chre_channel_output.cc | 41 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()
|
D | rpc_server.cc | 101 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()
|
D | rpc_client.cc | 64 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/ |
D | chre_channel_output.h | 43 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;
|
D | rpc_server.h | 46 pw::rpc::Service &service; 164 pw::Status closeChannel(uint32_t id); 169 pw::rpc::Server mServer;
|
/system/chre/test/common/ |
D | run_tests.cc | 25 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/ |
D | su.cpp | 30 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/ |
D | rpc_world_manager.h | 37 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/ |
D | user_state.cpp | 85 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()
|
D | user_state.h | 61 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/ |
D | rpc_world_manager.cc | 28 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/ |
D | checkpoint_gc.sh | 61 { 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/ |
D | rpc_service_manager.h | 34 : public pw::rpc::pw_rpc::nanopb::EchoService::Service<EchoService> { 38 pw::Status Echo(const pw_rpc_EchoMessage &request,
|
/system/chre/test/simulation/inc/ |
D | rpc_test.h | 41 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/ |
D | Config.java | 90 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/ |
D | rpc_service_manager.cc | 27 pw::Status EchoService::Echo(const pw_rpc_EchoMessage &request, in Echo() 33 return pw::OkStatus(); in Echo()
|
/system/core/run-as/ |
D | run-as.cpp | 264 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/ |
D | runconuid.cpp | 90 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/ |
D | log_message_parser.h | 30 using pw::tokenizer::DetokenizedString; 31 using pw::tokenizer::Detokenizer;
|
/system/security/keystore2/src/ |
D | super_key.rs | 411 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 …]
|
D | maintenance.rs | 79 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/ |
D | lib.rs | 184 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/ |
D | log.cc | 29 pw::tokenizer::EncodedMessage encodedMessage(token, types, args); in EncodeTokenizedMessage()
|