Home
last modified time | relevance | path

Searched refs:device_ (Results 1 – 25 of 33) sorted by relevance

12

/system/nvram/hal/tests/
Dscoped_nvram_device.cc44 result = nvram_open(module, &device_); in ScopedNvramDevice()
47 device_ = nullptr; in ScopedNvramDevice()
50 if (device_->common.version != NVRAM_DEVICE_API_VERSION_1_1) { in ScopedNvramDevice()
52 nvram_close(device_); in ScopedNvramDevice()
53 device_ = nullptr; in ScopedNvramDevice()
59 if (device_) { in ~ScopedNvramDevice()
60 int result = nvram_close(device_); in ~ScopedNvramDevice()
69 if (!device_) { in GetTotalSizeInBytes()
72 return device_->get_total_size_in_bytes(device_, total_size); in GetTotalSizeInBytes()
77 if (!device_) { in GetAvailableSizeInBytes()
[all …]
/system/keymaster/contexts/
Dkeymaster2_passthrough_context.cpp26 : device_(dev), engine_(KeymasterPassthroughEngine::createInstance(dev)) { in Keymaster2PassthroughContext()
66 return device_->upgrade_key(device_, &key_to_upgrade, &upgrade_params, upgraded_key); in UpgradeKeyBlob()
83 auto rc = device_->get_key_characteristics(device_, &blob, clientIdPtr, applicationDataPtr, in ParseKeyBlob()
110 return device_->delete_key(device_, &blob); in DeleteKey()
114 return device_->delete_all_keys(device_); in DeleteAllKeys()
119 return device_->add_rng_entropy(device_, buf, length); in AddRngEntropy()
133 auto rc = device_->attest_key(device_, &key.key_material(), &attest_params, &cchain); in GenerateAttestation()
Dkeymaster1_passthrough_context.cpp37 : device_(dev), pt_engine_(KeymasterPassthroughEngine::createInstance(dev)), in Keymaster1PassthroughContext()
61 KM_ALGORITHM_RSA, device_, this, km1_engine_.get())); in GetKeyFactory()
65 KM_ALGORITHM_EC, device_, this, km1_engine_.get())); in GetKeyFactory()
69 KM_ALGORITHM_AES, device_, this, this)); in GetKeyFactory()
73 KM_ALGORITHM_HMAC, device_, this, this)); in GetKeyFactory()
205 return device_->add_rng_entropy(device_, buf, length); in AddRngEntropy()
/system/bt/gd/security/pairing/
Dclassic_pairing_handler_unittest.cc134 security_record_ = std::make_shared<record::SecurityRecord>(device_); in SetUp()
195 hci::AddressWithType device_; member in bluetooth::security::channel::__anoned5ad9ed0111::ClassicPairingHandlerTest
249 ReceiveLinkKeyRequest(device_); in TEST_F()
254 ReceiveIoCapabilityRequest(device_); in TEST_F()
262 …ReceiveIoCapabilityResponse(device_, hci::IoCapability::DISPLAY_ONLY, hci::OobDataPresent::NOT_PRE… in TEST_F()
265 ReceiveUserConfirmationRequest(device_, numeric_value); in TEST_F()
270 ReceiveSimplePairingComplete(hci::ErrorCode::SUCCESS, device_); in TEST_F()
273 ReceiveLinkKeyNotification(device_, link_key, key_type); in TEST_F()
287 ReceiveLinkKeyRequest(device_); in TEST_F()
292 ReceiveIoCapabilityRequest(device_); in TEST_F()
[all …]
/system/nvram/hal/
Dnvram_device_adapter.cpp302 memset(&device_, 0, sizeof(nvram_device_t)); in NvramDeviceAdapter()
304 device_.common.tag = HARDWARE_DEVICE_TAG; in NvramDeviceAdapter()
305 device_.common.version = NVRAM_DEVICE_API_VERSION_1_1; in NvramDeviceAdapter()
306 device_.common.module = const_cast<hw_module_t *>(module); in NvramDeviceAdapter()
307 device_.common.close = device_nvram_device_close; in NvramDeviceAdapter()
309 device_.get_total_size_in_bytes = device_get_total_size_in_bytes; in NvramDeviceAdapter()
310 device_.get_available_size_in_bytes = device_get_available_size_in_bytes; in NvramDeviceAdapter()
311 device_.get_max_space_size_in_bytes = device_get_max_space_size_in_bytes; in NvramDeviceAdapter()
312 device_.get_max_spaces = device_get_max_spaces; in NvramDeviceAdapter()
313 device_.get_space_list = device_get_space_list; in NvramDeviceAdapter()
[all …]
/system/bt/gd/l2cap/internal/
Ddynamic_channel_impl.cc35 device_(link->GetDevice()) { in DynamicChannelImpl()
44 return device_; in GetDevice()
62 …ASSERT_LOG(!closed_, "Device %s Cid 0x%x closed twice, old status 0x%x, new status 0x%x", device_.… in OnClosed()
74 ss << "Device " << device_ << "Psm 0x" << std::hex << psm_ << " Cid 0x" << std::hex << cid_; in ToString()
Ddynamic_channel_impl.h78 const hci::AddressWithType device_; variable
/system/bt/gd/security/channel/
Dsecurity_manager_channel_unittest.cc218 device_ = hci::AddressWithType(address, hci::AddressType::PUBLIC_DEVICE_ADDRESS); in SetUp()
254 hci::AddressWithType device_; member in bluetooth::security::channel::__anon855c6ade0111::SecurityManagerChannelTest
260 hci_layer_->IncomingEvent(hci::IoCapabilityRequestBuilder::Create(device_.GetAddress())); in TEST_F()
270 …auto packet = hci::IoCapabilityRequestReplyBuilder::Create(device_.GetAddress(), io_capability, oo… in TEST_F()
287 …hci::IoCapabilityRequestNegativeReplyBuilder::Create(device_.GetAddress(), hci::ErrorCode::COMMAND… in TEST_F()
304 …hci_layer_->IncomingEvent(hci::IoCapabilityResponseBuilder::Create(device_.GetAddress(), io_capabi… in TEST_F()
311 hci_layer_->IncomingEvent(hci::PinCodeRequestBuilder::Create(device_.GetAddress())); in TEST_F()
320 …auto packet = hci::PinCodeRequestReplyBuilder::Create(device_.GetAddress(), pin_code_length, pin_c… in TEST_F()
335 auto packet = hci::PinCodeRequestNegativeReplyBuilder::Create(device_.GetAddress()); in TEST_F()
350 …hci_layer_->IncomingEvent(hci::UserPasskeyNotificationBuilder::Create(device_.GetAddress(), passke… in TEST_F()
[all …]
/system/bt/test/headless/pairing/
Dpairing.cc35 if (options_.device_.size() != 1) { in Run()
41 RawAddress raw_address = options_.device_.front(); in Run()
/system/nvram/hal/include/nvram/hal/
Dnvram_device_adapter.h51 hw_device_t* as_device() { return &device_.common; } in as_device()
55 nvram_device_t device_;
/system/bt/gd/l2cap/classic/internal/
Dfixed_channel_impl.h41 return device_.GetAddress(); in GetDevice()
58 ss << "Device " << device_ << " Cid 0x" << std::hex << cid_; in ToString()
83 const hci::AddressWithType device_; variable
Dfixed_channel_impl.cc31 : cid_(cid), device_(link->GetDevice()), link_(link), l2cap_handler_(l2cap_handler) { in FixedChannelImpl()
50 …ASSERT_LOG(!closed_, "Device %s Cid 0x%x closed twice, old status 0x%x, new status 0x%x", device_.… in OnClosed()
/system/bt/gd/l2cap/le/internal/
Dfixed_channel_impl.h42 return device_; in GetDevice()
66 ss << "Device " << device_ << " Cid 0x" << std::hex << cid_; in ToString()
85 const hci::AddressWithType device_; variable
Dfixed_channel_impl.cc40 : cid_(cid), device_(link->GetDevice()), link_(link), l2cap_handler_(l2cap_handler) { in FixedChannelImpl()
59 …ASSERT_LOG(!closed_, "Device %s Cid 0x%x closed twice, old status 0x%x, new status 0x%x", device_.… in OnClosed()
/system/keymaster/tests/
Dandroid_keymaster_test_utils.cpp181 device_ = GetParam()->CreateDevice(); in Keymaster2Test()
187 device_->common.close(reinterpret_cast<hw_device_t*>(device_)); in ~Keymaster2Test()
191 return device_; in device()
712 memset(&device_, 0, sizeof(device_)); in Sha256OnlyWrapper()
713 device_.common.module = &new_module; in Sha256OnlyWrapper()
715 device_.common.close = close_device; in Sha256OnlyWrapper()
716 device_.get_supported_algorithms = get_supported_algorithms; in Sha256OnlyWrapper()
717 device_.get_supported_block_modes = get_supported_block_modes; in Sha256OnlyWrapper()
718 device_.get_supported_padding_modes = get_supported_padding_modes; in Sha256OnlyWrapper()
719 device_.get_supported_digests = get_supported_digests; in Sha256OnlyWrapper()
[all …]
Dandroid_keymaster_test_utils.h339 keymaster2_device_t* device_;
352 explicit Keymaster0CountingWrapper(keymaster0_device_t* device) : device_(device), counter_(0) { in Keymaster0CountingWrapper()
353 common = device_->common; in Keymaster0CountingWrapper()
355 client_version = device_->client_version; in Keymaster0CountingWrapper()
356 flags = device_->flags; in Keymaster0CountingWrapper()
388 return wrapper->device_; in device()
403 wrapper->device_->common.close(reinterpret_cast<hw_device_t*>(wrapper->device_)); in counting_close_device()
480 keymaster0_device_t* device_;
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp101 SnapshotManager::SnapshotManager(IDeviceInfo* device) : device_(device) { in SnapshotManager()
102 gsid_dir_ = device_->GetGsidDir(); in SnapshotManager()
103 metadata_dir_ = device_->GetMetadataDir(); in SnapshotManager()
203 if (device_->GetSlotSuffix() == contents) { in GetCurrentSlot()
285 auto contents = device_->GetSlotSuffix(); in FinishedSnapshotWrites()
487 const auto& opener = device_->GetPartitionOpener(); in MapCowImage()
536 if (device_->IsRecovery()) { in DeleteSnapshot()
579 auto other_suffix = device_->GetOtherSlotSuffix(); in InitiateMerge()
1033 if (device_->IsRecovery() && !in_factory_data_reset_) { in AcknowledgeMergeSuccess()
1161 uint32_t slot = SlotNumberForSlotSuffix(device_->GetSlotSuffix()); in CollapseSnapshotDevice()
[all …]
/system/bt/test/headless/read/
Dname.cc42 if (options_.device_.size() != 1) { in Run()
48 const RawAddress& raw_address = options_.device_.front(); in Run()
/system/security/keystore/
Doperation_struct.h39 Operation(uint64_t handle_, uint64_t keyid_, KeyPurpose purpose_, const sp<Keymaster>& device_, in Operation()
42 : handle(handle_), keyid(keyid_), purpose(purpose_), device(device_), in Operation()
/system/core/fs_mgr/libdm/include/libdm/
Dloop_control.h75 const std::string& device() const { return device_; } in device()
87 std::string device_; variable
Ddm_target.h240 : DmTarget(start, length), device_(device) {} in DmTargetSnapshotOrigin()
243 std::string GetParameterString() const override { return device_; } in GetParameterString()
247 std::string device_;
259 device_(device), in DmTargetCrypt()
275 std::string device_; variable
/system/bt/test/headless/sdp/
Dsdp.cc132 if (options_.device_.size() != 1) { in Run()
144 return sdp_query_uuid(options_.loop_, options_.device_.front(), in Run()
/system/core/fs_mgr/libdm/
Dloop_control.cpp158 control_.Detach(device_); in ~LoopDevice()
163 valid_ = control_.Attach(fd_.get(), timeout_ms, &device_); in Init()
/system/bt/test/headless/
Dget_options.h42 std::list<RawAddress> device_; variable
/system/keymaster/include/keymaster/contexts/
Dkeymaster2_passthrough_context.h112 keymaster2_device_t* device_;

12