/system/bt/bta/test/gatt/ |
D | database_builder_sample_device_test.cc | 231 EXPECT_EQ(service->characteristics[0].uuid, SERVICE_1_CHAR_1_UUID); in TEST() 232 EXPECT_EQ(service->characteristics[1].uuid, SERVICE_1_CHAR_2_UUID); in TEST() 233 EXPECT_EQ(service->characteristics[2].uuid, SERVICE_1_CHAR_3_UUID); in TEST() 240 EXPECT_EQ(service->characteristics[0].uuid, SERVICE_3_CHAR_1_UUID); in TEST() 241 EXPECT_EQ(service->characteristics[0].descriptors[0].uuid, in TEST() 246 EXPECT_EQ(service->characteristics[0].uuid, SERVICE_4_CHAR_1_UUID); in TEST() 247 EXPECT_EQ(service->characteristics[1].uuid, SERVICE_4_CHAR_2_UUID); in TEST() 248 EXPECT_EQ(service->characteristics[2].uuid, SERVICE_4_CHAR_3_UUID); in TEST() 249 EXPECT_EQ(service->characteristics[3].uuid, SERVICE_4_CHAR_4_UUID); in TEST() 250 EXPECT_EQ(service->characteristics[4].uuid, SERVICE_4_CHAR_5_UUID); in TEST() [all …]
|
D | database_builder_test.cc | 90 EXPECT_EQ(service->characteristics[0].uuid, SERVICE_1_CHAR_1_UUID); in TEST() 91 EXPECT_EQ(service->characteristics[0].declaration_handle, 0x0002); in TEST() 92 EXPECT_EQ(service->characteristics[0].value_handle, 0x0003); in TEST() 93 EXPECT_EQ(service->characteristics[0].properties, 0x02); in TEST() 95 EXPECT_EQ(service->characteristics[0].descriptors[0].uuid, in TEST() 97 EXPECT_EQ(service->characteristics[0].descriptors[0].handle, 0x0004); in TEST()
|
/system/keymaster/legacy_support/ |
D | keymaster_passthrough_engine.cpp | 202 static void ConvertCharacteristics(const keymaster_key_characteristics_t& characteristics, in ConvertCharacteristics() argument 205 hw_enforced->Reinitialize(characteristics.hw_enforced); in ConvertCharacteristics() 207 sw_enforced->Reinitialize(characteristics.sw_enforced); in ConvertCharacteristics() 218 keymaster_key_characteristics_t* characteristics = nullptr; in GenerateKey() local 221 &blob, &characteristics); in GenerateKey() 228 ConvertCharacteristics(*characteristics, hw_enforced, sw_enforced); in GenerateKey() 229 keymaster_free_characteristics(characteristics); in GenerateKey() 230 free (characteristics); in GenerateKey() 241 keymaster_key_characteristics_t characteristics = {}; in GenerateKey() local 244 &blob, &characteristics); in GenerateKey() [all …]
|
D | keymaster1_engine.cpp | 68 static void ConvertCharacteristics(keymaster_key_characteristics_t* characteristics, in ConvertCharacteristics() argument 71 characteristics); in ConvertCharacteristics() 73 hw_enforced->Reinitialize(characteristics->hw_enforced); in ConvertCharacteristics() 75 sw_enforced->Reinitialize(characteristics->sw_enforced); in ConvertCharacteristics() 84 keymaster_key_characteristics_t* characteristics; in GenerateKey() local 87 &blob, &characteristics); in GenerateKey() 94 ConvertCharacteristics(characteristics, hw_enforced, sw_enforced); in GenerateKey() 106 keymaster_key_characteristics_t* characteristics; in ImportKey() local 112 &blob, &characteristics); in ImportKey() 119 ConvertCharacteristics(characteristics, hw_enforced, sw_enforced); in ImportKey()
|
/system/bt/service/common/android/bluetooth/ |
D | bluetooth_gatt_service.cc | 41 std::vector<BluetoothGattCharacteristic> characteristics; in writeToParcel() local 42 for (const auto& chrc : characteristics_) characteristics.push_back(chrc); in writeToParcel() 44 status = parcel->writeParcelableVector(characteristics); in writeToParcel() 69 std::vector<BluetoothGattCharacteristic> characteristics; in readFromParcel() local 70 status = parcel->readParcelableVector(&characteristics); in readFromParcel() 73 for (const auto& chrc : characteristics) characteristics_.push_back(chrc); in readFromParcel()
|
/system/bt/bta/gatt/ |
D | database_builder.cc | 93 service->characteristics.emplace_back( in AddCharacteristic() 108 if (service->characteristics.empty()) { in AddDescriptor() 114 Characteristic* char_node = &service->characteristics.front(); in AddDescriptor() 115 for (auto it = service->characteristics.begin(); in AddDescriptor() 116 it != service->characteristics.end(); it++) { in AddDescriptor() 147 if (!service || service->characteristics.empty()) { in NextDescriptorRangeToExplore() 151 for (auto it = service->characteristics.cbegin(); in NextDescriptorRangeToExplore() 152 it != service->characteristics.cend(); it++) { in NextDescriptorRangeToExplore() 161 if (next != service->characteristics.end()) in NextDescriptorRangeToExplore()
|
D | database.cc | 67 for (const Characteristic& c : service.characteristics) { in ToString() 104 for (const Characteristic& charac : service.characteristics) { in Serialize() 171 current_service_it->characteristics.emplace_back( in Deserialize() 178 current_service_it->characteristics.back().descriptors.emplace_back( in Deserialize()
|
/system/bt/service/common/bluetooth/ |
D | service.h | 30 const std::vector<Characteristic>& characteristics, in Service() argument 35 characteristics_(characteristics), in Service() 48 const std::vector<Characteristic>& characteristics() const { in characteristics() function 51 std::vector<Characteristic>& characteristics() { return characteristics_; } in characteristics() function
|
/system/security/keystore/ |
D | operation_proto_handler.cpp | 56 void checkKeyCharacteristics(const hidl_vec<KeyParameter>& characteristics, in checkKeyCharacteristics() argument 58 for (auto& opParam : characteristics) { in checkKeyCharacteristics() 89 void checkOpCharacteristics(const hidl_vec<KeyParameter>& characteristics, in checkOpCharacteristics() argument 91 for (auto& opParam : characteristics) { in checkOpCharacteristics() 112 checkKeyCharacteristics(op.characteristics.softwareEnforced, &operationConfig); in uploadOpAsProto() 113 checkKeyCharacteristics(op.characteristics.hardwareEnforced, &operationConfig); in uploadOpAsProto()
|
D | operation_struct.h | 43 characteristics(characteristics_), appToken(appToken_), authToken(), verificationToken(), in Operation() 54 KeyCharacteristics characteristics; member
|
D | keymaster_worker.cpp | 264 KeymasterWorker::getAuthToken(const KeyCharacteristics& characteristics, uint64_t handle, in getAuthToken() argument 267 AuthorizationSet allCharacteristics(characteristics.softwareEnforced); in getAuthToken() 268 allCharacteristics.append(characteristics.hardwareEnforced.begin(), in getAuthToken() 269 characteristics.hardwareEnforced.end()); in getAuthToken() 350 KeyCharacteristics characteristics; in begin() local 363 std::tie(error, characteristics, keyBlob, charBlob) = createKeyCharacteristicsCache( in begin() 373 std::tie(authRc, authToken) = getAuthToken(characteristics, 0 /* no challenge */, purpose, in begin() 399 AuthorizationSet key_auths = characteristics.hardwareEnforced; in begin() 400 key_auths.append(characteristics.softwareEnforced.begin(), in begin() 401 characteristics.softwareEnforced.end()); in begin() [all …]
|
D | keystore_client_impl.cpp | 221 auto [km_response, characteristics] = future.get(); in generateKey() 226 *hardware_enforced_characteristics = characteristics.hardwareEnforced.getParameters(); in generateKey() 227 *software_enforced_characteristics = characteristics.softwareEnforced.getParameters(); in generateKey() 247 auto [km_response, characteristics] = future.get(); in getKeyCharacteristics() 252 *hardware_enforced_characteristics = characteristics.hardwareEnforced.getParameters(); in getKeyCharacteristics() 253 *software_enforced_characteristics = characteristics.softwareEnforced.getParameters(); in getKeyCharacteristics() 276 auto [km_response, characteristics] = future.get(); in importKey() 281 *hardware_enforced_characteristics = characteristics.hardwareEnforced.getParameters(); in importKey() 282 *software_enforced_characteristics = characteristics.softwareEnforced.getParameters(); in importKey()
|
D | operation.cpp | 31 KeyCharacteristics&& characteristics, in addOperation() argument 35 std::move(characteristics), appToken, params)); in addOperation()
|
/system/core/debuggerd/client/ |
D | debuggerd_client_test.cpp | 42 std::vector<std::string> characteristics = in getThreadCount() local 44 if (std::find(characteristics.begin(), characteristics.end(), "embedded") in getThreadCount() 45 != characteristics.end()) { in getThreadCount()
|
/system/core/trusty/keymaster/legacy/ |
D | trusty_keymaster_device.cpp | 177 keymaster_key_characteristics_t* characteristics) { in generate_key() argument 207 if (characteristics) { in generate_key() 208 response.enforced.CopyToParamSet(&characteristics->hw_enforced); in generate_key() 209 response.unenforced.CopyToParamSet(&characteristics->sw_enforced); in generate_key() 217 const keymaster_blob_t* app_data, keymaster_key_characteristics_t* characteristics) { in get_key_characteristics() argument 226 if (!characteristics) { in get_key_characteristics() 240 response.enforced.CopyToParamSet(&characteristics->hw_enforced); in get_key_characteristics() 241 response.unenforced.CopyToParamSet(&characteristics->sw_enforced); in get_key_characteristics() 249 keymaster_key_characteristics_t* characteristics) { in import_key() argument 282 if (characteristics) { in import_key() [all …]
|
/system/keymaster/contexts/ |
D | keymaster2_passthrough_context.cpp | 71 keymaster_key_characteristics_t characteristics = {}; in ParseKeyBlob() local 84 &characteristics); in ParseKeyBlob() 91 hw_enforced.Reinitialize(characteristics.hw_enforced); in ParseKeyBlob() 92 sw_enforced.Reinitialize(characteristics.sw_enforced); in ParseKeyBlob() 94 keymaster_free_characteristics(&characteristics); in ParseKeyBlob()
|
D | soft_keymaster_device.cpp | 348 keymaster_key_characteristics_t* characteristics = in BuildCharacteristics() local 351 if (characteristics) { in BuildCharacteristics() 352 hw_enforced.CopyToParamSet(&characteristics->hw_enforced); in BuildCharacteristics() 353 sw_enforced.CopyToParamSet(&characteristics->sw_enforced); in BuildCharacteristics() 355 return characteristics; in BuildCharacteristics() 741 keymaster_key_blob_t* key_blob, keymaster_key_characteristics_t** characteristics) { in generate_key() argument 755 return km1_dev->generate_key(km1_dev, params, key_blob, characteristics); in generate_key() 769 if (characteristics) { in generate_key() 776 *characteristics = BuildCharacteristics(response.enforced, response.unenforced); in generate_key() 777 if (!*characteristics) in generate_key() [all …]
|
D | keymaster1_passthrough_context.cpp | 126 keymaster_key_characteristics_t* characteristics; in parseKeymaster1HwBlob() local 128 app_data_ptr, &characteristics); in parseKeymaster1HwBlob() 133 characteristics); in parseKeymaster1HwBlob() 135 hw_enforced->Reinitialize(characteristics->hw_enforced); in parseKeymaster1HwBlob() 136 sw_enforced->Reinitialize(characteristics->sw_enforced); in parseKeymaster1HwBlob()
|
D | soft_keymaster_context.cpp | 411 keymaster_key_characteristics_t* characteristics; in ParseKeymaster1HwBlob() local 413 app_data_ptr, &characteristics); in ParseKeymaster1HwBlob() 417 characteristics); in ParseKeymaster1HwBlob() 421 hw_enforced->Reinitialize(characteristics->hw_enforced); in ParseKeymaster1HwBlob() 422 sw_enforced->Reinitialize(characteristics->sw_enforced); in ParseKeymaster1HwBlob()
|
/system/core/trusty/keymaster/include/trusty_keymaster/legacy/ |
D | trusty_keymaster_device.h | 51 keymaster_key_characteristics_t* characteristics); 59 keymaster_key_characteristics_t* characteristics); 102 keymaster_key_characteristics_t* characteristics); 113 keymaster_key_characteristics_t* characteristics);
|
/system/bt/service/ |
D | gatt_server_old.cc | 107 std::unordered_map<int, Characteristic> characteristics; member 167 g_internal->characteristics[char_handle].uuid = id; in ServiceAddedCallback() 168 g_internal->characteristics[char_handle].blob_section = 0; in ServiceAddedCallback() 177 g_internal->characteristics[blob_attribute].notify = in ServiceAddedCallback() 181 g_internal->characteristics[control_attribute]; in ServiceAddedCallback() 213 g_internal->characteristics[attr_handle]; in RequestReadCallback() 264 g_internal->characteristics[attr_handle]; in RequestWriteCallback() 274 g_internal->characteristics[target_blob->second].blob_section = ch.blob[0]; in RequestWriteCallback() 631 internal_->characteristics[handle].notify = properties & kPropertyNotify; in AddCharacteristic() 704 Characteristic& ch = internal_->characteristics[attribute_id]; in SetCharacteristicValue() [all …]
|
/system/security/keystore-engine/ |
D | keystore_backend_binder.cpp | 80 const ::android::security::keymaster::KeyCharacteristics& characteristics) { in getKeyAlgoritmFromKeyCharacteristics() 81 for (const auto& param : characteristics.hardwareEnforced.getParameters()) { in getKeyAlgoritmFromKeyCharacteristics() 85 for (const auto& param : characteristics.softwareEnforced.getParameters()) { in getKeyAlgoritmFromKeyCharacteristics() 122 auto [km_response, characteristics] = kc_future.get(); in sign() 129 auto algorithm = getKeyAlgoritmFromKeyCharacteristics(characteristics); in sign()
|
/system/keymaster/include/keymaster/ |
D | soft_keymaster_device.h | 140 keymaster_key_characteristics_t** characteristics); 151 keymaster_key_characteristics_t** characteristics); 189 keymaster_key_characteristics_t* characteristics); 200 keymaster_key_characteristics_t* characteristics);
|
/system/hardware/interfaces/wifi/keystore/1.0/default/ |
D | keystore.cpp | 124 const ::android::security::keymaster::KeyCharacteristics& characteristics) { in getKeyAlgoritmFromKeyCharacteristics() 125 for (const auto& param : characteristics.hardwareEnforced.getParameters()) { in getKeyAlgoritmFromKeyCharacteristics() 129 for (const auto& param : characteristics.softwareEnforced.getParameters()) { in getKeyAlgoritmFromKeyCharacteristics() 166 auto [km_response, characteristics] = kc_future.get(); in sign() 174 auto algorithm = getKeyAlgoritmFromKeyCharacteristics(characteristics); in sign()
|
/system/bt/service/example/heart_rate/ |
D | heart_rate_server.cc | 293 hr_measurement_handle_ = service.characteristics()[0].handle(); in OnServiceAdded() 295 service.characteristics()[0].descriptors()[0].handle(); in OnServiceAdded() 296 body_sensor_loc_handle_ = service.characteristics()[1].handle(); in OnServiceAdded() 297 hr_control_point_handle_ = service.characteristics()[2].handle(); in OnServiceAdded()
|