/hardware/interfaces/identity/support/include/android/hardware/identity/support/ |
D | IdentityCredentialSupport.h | 38 using ::std::vector; 58 void hexdump(const string& name, const vector<uint8_t>& data); 62 string encodeHex(const vector<uint8_t>& data); 66 optional<vector<uint8_t>> decodeHex(const string& hexEncoded); 83 string cborPrettyPrint(const vector<uint8_t>& encodedCbor, size_t maxBStrSize = 32, 84 const vector<string>& mapKeysToNotPrint = {}); 95 optional<vector<uint8_t>> getRandom(size_t numBytes); 98 vector<uint8_t> sha256(const vector<uint8_t>& data); 103 optional<vector<uint8_t>> decryptAes128Gcm(const vector<uint8_t>& key, 104 const vector<uint8_t>& encryptedData, [all …]
|
/hardware/interfaces/identity/aidl/default/common/ |
D | SecureHardwareProxy.h | 32 using ::std::vector; 68 vector<uint8_t> encryptedCredentialKeys) = 0; 76 virtual optional<vector<uint8_t>> createCredentialKey(const vector<uint8_t>& challenge, 77 const vector<uint8_t>& applicationId) = 0; 79 virtual bool startPersonalization(int accessControlProfileCount, vector<int> entryCounts, 84 virtual optional<vector<uint8_t>> addAccessControlProfile( 85 int id, const vector<uint8_t>& readerCertificate, bool userAuthenticationRequired, 88 virtual bool beginAddEntry(const vector<int>& accessControlProfileIds, const string& nameSpace, 92 virtual optional<vector<uint8_t>> addEntryValue(const vector<int>& accessControlProfileIds, 94 const vector<uint8_t>& content) = 0; [all …]
|
D | IdentityCredential.h | 44 using ::std::vector; 50 const vector<uint8_t>& credentialData) in IdentityCredential() 62 ndk::ScopedAStatus deleteCredential(vector<uint8_t>* outProofOfDeletionSignature) override; 64 const vector<uint8_t>& challenge, 65 vector<uint8_t>* outProofOfDeletionSignature) override; 66 ndk::ScopedAStatus proveOwnership(const vector<uint8_t>& challenge, 67 vector<uint8_t>* outProofOfOwnershipSignature) override; 68 ndk::ScopedAStatus createEphemeralKeyPair(vector<uint8_t>* outKeyPair) override; 69 ndk::ScopedAStatus setReaderEphemeralPublicKey(const vector<uint8_t>& publicKey) override; 72 const vector<RequestNamespace>& requestNamespaces) override; [all …]
|
D | WritableIdentityCredential.h | 35 using ::std::vector; 53 bool initializeForUpdate(const vector<uint8_t>& encryptedCredentialKeys); 56 ndk::ScopedAStatus getAttestationCertificate(const vector<uint8_t>& attestationApplicationId, 57 const vector<uint8_t>& attestationChallenge, 58 vector<Certificate>* outCertificateChain) override; 64 const vector<int32_t>& entryCounts) override; 71 ndk::ScopedAStatus beginAddEntry(const vector<int32_t>& accessControlProfileIds, 74 ndk::ScopedAStatus addEntryValue(const vector<uint8_t>& content, 75 vector<uint8_t>* outEncryptedContent) override; 78 vector<uint8_t>* outCredentialData, [all …]
|
/hardware/interfaces/identity/aidl/default/ |
D | FakeSecureHardwareProxy.h | 36 vector<uint8_t> encryptedCredentialKeys) override; 41 optional<vector<uint8_t>> createCredentialKey(const vector<uint8_t>& challenge, 42 const vector<uint8_t>& applicationId) override; 44 bool startPersonalization(int accessControlProfileCount, vector<int> entryCounts, 49 optional<vector<uint8_t>> addAccessControlProfile(int id, 50 const vector<uint8_t>& readerCertificate, 55 bool beginAddEntry(const vector<int>& accessControlProfileIds, const string& nameSpace, 59 optional<vector<uint8_t>> addEntryValue(const vector<int>& accessControlProfileIds, 61 const vector<uint8_t>& content) override; 64 optional<vector<uint8_t>> finishAddingEntries() override; [all …]
|
D | FakeSecureHardwareProxy.cpp | 49 using ::std::vector; 71 bool testCredential, string docType, vector<uint8_t> encryptedCredentialKeys) { in initializeForUpdate() 78 optional<vector<uint8_t>> FakeSecureHardwareProvisioningProxy::createCredentialKey( in createCredentialKey() 79 const vector<uint8_t>& challenge, const vector<uint8_t>& applicationId) { in createCredentialKey() 87 vector<uint8_t> pubKeyCert(publicKeyCertSize); in createCredentialKey() 93 int accessControlProfileCount, vector<int> entryCounts, const string& docType, in startPersonalization() 104 optional<vector<uint8_t>> FakeSecureHardwareProvisioningProxy::addAccessControlProfile( in addAccessControlProfile() 105 int id, const vector<uint8_t>& readerCertificate, bool userAuthenticationRequired, in addAccessControlProfile() 107 vector<uint8_t> mac(28); in addAccessControlProfile() 116 bool FakeSecureHardwareProvisioningProxy::beginAddEntry(const vector<int>& accessControlProfileIds, in beginAddEntry() [all …]
|
/hardware/interfaces/identity/support/tests/ |
D | IdentityCredentialSupportTest.cpp | 31 using std::vector; 38 EXPECT_EQ("", support::encodeHex(vector<uint8_t>({}))); in TEST() 39 EXPECT_EQ("01", support::encodeHex(vector<uint8_t>({1}))); in TEST() 42 vector<uint8_t>({0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}))); in TEST() 43 EXPECT_EQ("0102ffe060", support::encodeHex(vector<uint8_t>({1, 2, 255, 224, 96}))); in TEST() 47 EXPECT_EQ(vector<uint8_t>({}), support::decodeHex("")); in TEST() 48 EXPECT_EQ(vector<uint8_t>({1}), support::decodeHex("01")); in TEST() 50 EXPECT_EQ(vector<uint8_t>({0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}), in TEST() 59 vector<uint8_t> data = {1, 2, 3}; in TEST() 61 optional<vector<uint8_t>> keyPair = support::createEcKeyPair(); in TEST() [all …]
|
/hardware/interfaces/identity/aidl/vts/ |
D | Util.h | 31 using ::std::vector; 38 vector<uint8_t> attestationAppId) in AttestationData() 52 vector<uint8_t> attestationChallenge; 53 vector<uint8_t> attestationApplicationId; 54 vector<Certificate> attestationCertificate; 59 TestEntryData(string nameSpace, string name, vector<int32_t> profileIds) in TestEntryData() 62 TestEntryData(string nameSpace, string name, const string& value, vector<int32_t> profileIds) in TestEntryData() 66 TestEntryData(string nameSpace, string name, const vector<uint8_t>& value, in TestEntryData() 67 vector<int32_t> profileIds) in TestEntryData() 71 TestEntryData(string nameSpace, string name, bool value, vector<int32_t> profileIds) in TestEntryData() [all …]
|
D | VtsIWritableIdentityCredentialTests.cpp | 40 using std::vector; 67 vector<uint8_t> attestationChallenge; in TEST_P() 68 vector<Certificate> attestationCertificate; in TEST_P() 69 vector<uint8_t> attestationApplicationId = {}; in TEST_P() 90 vector<uint8_t> attestationChallenge(challenge.begin(), challenge.end()); in TEST_P() 91 vector<Certificate> attestationCertificate; in TEST_P() 92 vector<uint8_t> attestationApplicationId = {1}; in TEST_P() 134 const vector<int32_t> entryCounts = {2, 4}; in TEST_P() 157 const vector<int32_t> entryCounts = {1, 1}; in TEST_P() 171 const vector<int32_t> entryCounts = {1}; in TEST_P() [all …]
|
D | ReaderAuthTests.cpp | 46 using std::vector; 64 void retrieveData(const vector<uint8_t>& readerPrivateKey, 65 const vector<vector<uint8_t>>& readerCertChain, bool expectSuccess, 69 vector<uint8_t> readerPublicKey_; 70 vector<uint8_t> readerPrivateKey_; 71 vector<uint8_t> intermediateAPublicKey_; 72 vector<uint8_t> intermediateAPrivateKey_; 73 vector<uint8_t> intermediateBPublicKey_; 74 vector<uint8_t> intermediateBPrivateKey_; 75 vector<uint8_t> intermediateCPublicKey_; [all …]
|
D | EndToEndTests.cpp | 42 using std::vector; 74 tuple<bool, string, vector<uint8_t>, vector<uint8_t>, vector<uint8_t>> 75 extractFromTestCredentialData(const vector<uint8_t>& credentialData) { in extractFromTestCredentialData() 77 vector<uint8_t> storageKey; in extractFromTestCredentialData() 78 vector<uint8_t> credentialPrivKey; in extractFromTestCredentialData() 79 vector<uint8_t> sha256Pop; in extractFromTestCredentialData() 103 vector<uint8_t> hardwareBoundKey = support::getTestHardwareBoundKey(); in extractFromTestCredentialData() 104 const vector<uint8_t>& encryptedCredentialKeys = encryptedCredentialKeysItem->value(); in extractFromTestCredentialData() 105 const vector<uint8_t> docTypeVec(docType.begin(), docType.end()); in extractFromTestCredentialData() 106 optional<vector<uint8_t>> decryptedCredentialKeys = in extractFromTestCredentialData() [all …]
|
/hardware/interfaces/security/keymint/aidl/vts/functional/ |
D | KeyMintAidlTestBase.h | 52 using ::std::vector; 59 vector<uint8_t> blob; 60 vector<KeyCharacteristics> characteristics; 79 uint32_t boot_patch_level(const vector<KeyCharacteristics>& key_characteristics); 84 ErrorCode GenerateKey(const AuthorizationSet& key_desc, vector<uint8_t>* key_blob, in GenerateKey() 85 vector<KeyCharacteristics>* key_characteristics) { in GenerateKey() 90 const optional<AttestationKey>& attest_key, vector<uint8_t>* key_blob, 91 vector<KeyCharacteristics>* key_characteristics, 92 vector<Certificate>* cert_chain); 97 const string& key_material, vector<uint8_t>* key_blob, [all …]
|
D | AttestKeyTest.cpp | 29 bool IsSelfSigned(const vector<Certificate>& chain) { in IsSelfSigned() 50 vector<KeyCharacteristics> attest_key_characteristics; in TEST_P() 51 vector<Certificate> attest_key_cert_chain; in TEST_P() 67 vector<uint8_t> attested_key_blob; in TEST_P() 68 vector<KeyCharacteristics> attested_key_characteristics; in TEST_P() 69 vector<Certificate> attested_key_cert_chain; in TEST_P() 188 vector<uint8_t> subject_der(make_name_from_str(subject)); in TEST_P() 193 vector<uint8_t> serial_blob(build_serial_blob(serial_int)); in TEST_P() 199 vector<KeyCharacteristics> attest_key_characteristics; in TEST_P() 200 vector<Certificate> attest_key_cert_chain; in TEST_P() [all …]
|
/hardware/interfaces/power/stats/aidl/default/ |
D | PowerStats.h | 35 std::unordered_map<std::string, std::vector<StateResidency>>* residencies) = 0; 36 virtual std::unordered_map<std::string, std::vector<State>> getInfo() = 0; 51 const std::vector<int32_t>& in_channelIds, 52 std::vector<EnergyMeasurement>* _aidl_return) = 0; 53 virtual ndk::ScopedAStatus getEnergyMeterInfo(std::vector<Channel>* _aidl_return) = 0; 63 ndk::ScopedAStatus getPowerEntityInfo(std::vector<PowerEntity>* _aidl_return) override; 64 ndk::ScopedAStatus getStateResidency(const std::vector<int32_t>& in_powerEntityIds, 65 std::vector<StateResidencyResult>* _aidl_return) override; 66 ndk::ScopedAStatus getEnergyConsumerInfo(std::vector<EnergyConsumer>* _aidl_return) override; 67 ndk::ScopedAStatus getEnergyConsumed(const std::vector<int32_t>& in_energyConsumerIds, [all …]
|
/hardware/google/pixel/powerstats/include/ |
D | PowerStatsAidl.h | 36 std::unordered_map<std::string, std::vector<StateResidency>> *residencies) = 0; 37 virtual std::unordered_map<std::string, std::vector<State>> getInfo() = 0; 52 const std::vector<int32_t> &in_channelIds, 53 std::vector<EnergyMeasurement> *_aidl_return) = 0; 54 virtual ndk::ScopedAStatus getEnergyMeterInfo(std::vector<Channel> *_aidl_return) = 0; 63 ndk::ScopedAStatus getPowerEntityInfo(std::vector<PowerEntity> *_aidl_return) override; 64 ndk::ScopedAStatus getStateResidency(const std::vector<int32_t> &in_powerEntityIds, 65 std::vector<StateResidencyResult> *_aidl_return) override; 66 ndk::ScopedAStatus getEnergyConsumerInfo(std::vector<EnergyConsumer> *_aidl_return) override; 67 ndk::ScopedAStatus getEnergyConsumed(const std::vector<int32_t> &in_energyConsumerIds, [all …]
|
/hardware/interfaces/power/stats/aidl/vts/ |
D | VtsHalPowerStatsTargetTest.cpp | 58 std::vector<T> getRandomSubset(std::vector<T> const& collection); 63 void testUnique(std::vector<T> const& collection, S T::*field); 66 void testMatching(std::vector<T> const& c1, R T::*f1, std::vector<S> const& c2, R S::*f2); 73 std::vector<T> PowerStatsAidl::getRandomSubset(std::vector<T> const& collection) { in getRandomSubset() 78 std::vector<T> selected; in getRandomSubset() 92 void PowerStatsAidl::testUnique(std::vector<T> const& collection, S T::*field) { in testUnique() 100 void PowerStatsAidl::testMatching(std::vector<T> const& c1, R T::*f1, std::vector<S> const& c2, in testMatching() 116 std::vector<PowerEntity> infos; in TEST_P() 126 std::vector<PowerEntity> entities; in TEST_P() 134 std::vector<PowerEntity> entities; in TEST_P() [all …]
|
/hardware/interfaces/identity/support/src/ |
D | IdentityCredentialSupport.cpp | 72 void hexdump(const string& name, const vector<uint8_t>& data) { in hexdump() 112 string encodeHex(const vector<uint8_t>& data) { in encodeHex() 128 optional<vector<uint8_t>> decodeHex(const string& hexEncoded) { in decodeHex() 129 vector<uint8_t> out; in decodeHex() 172 optional<vector<uint8_t>> getRandom(size_t numBytes) { in getRandom() 173 vector<uint8_t> output; in getRandom() 182 optional<vector<uint8_t>> decryptAes128Gcm(const vector<uint8_t>& key, in decryptAes128Gcm() 183 const vector<uint8_t>& encryptedData, in decryptAes128Gcm() 184 const vector<uint8_t>& additionalAuthenticatedData) { in decryptAes128Gcm() 194 vector<uint8_t> plainText; in decryptAes128Gcm() [all …]
|
/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/ |
D | Generators.h | 23 const std::vector<DeviceConfigParameter>& getOutputDeviceConfigParameters(); 24 const std::vector<DeviceConfigParameter>& getOutputDeviceSingleConfigParameters(); 25 const std::vector<DeviceConfigParameter>& getOutputDeviceInvalidConfigParameters( 27 const std::vector<DeviceConfigParameter>& getInputDeviceConfigParameters(); 28 const std::vector<DeviceConfigParameter>& getInputDeviceSingleConfigParameters(); 29 const std::vector<DeviceConfigParameter>& getInputDeviceInvalidConfigParameters( 33 std::vector<DeviceConfigParameter> generateOutputDeviceConfigParameters(bool oneProfilePerDevice); 34 std::vector<DeviceConfigParameter> generateInputDeviceConfigParameters(bool oneProfilePerDevice);
|
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/ |
D | InvalidDevice.h | 35 std::vector<Extension> extensions, DeviceType deviceType, 39 const std::vector<IPreparedModelParcel>& preparedModels, 40 const std::vector<BufferRole>& inputRoles, 41 const std::vector<BufferRole>& outputRoles, 45 ndk::ScopedAStatus getSupportedExtensions(std::vector<Extension>* extensions) override; 47 std::vector<bool>* supportedOperations) override; 52 const std::vector<ndk::ScopedFileDescriptor>& modelCache, 53 const std::vector<ndk::ScopedFileDescriptor>& dataCache, 54 const std::vector<uint8_t>& token, 57 int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache, [all …]
|
/hardware/google/camera/common/hal/utils/ |
D | camera_id_manager.h | 47 std::vector<uint32_t> physical_camera_ids; 60 const std::vector<CameraIdMap>& id_maps); 65 std::vector<std::uint32_t> GetVisibleCameraIds() const; 68 std::vector<std::uint32_t> GetCameraIds() const; 73 std::vector<std::uint32_t> GetPhysicalCameraIds( 88 status_t Initialize(const std::vector<CameraIdMap>& id_maps); 90 status_t ValidateInput(const std::vector<CameraIdMap>& id_maps); 98 std::vector<uint32_t> public_camera_internal_ids_; 109 std::vector<std::vector<uint32_t>> physical_camera_ids_;
|
/hardware/interfaces/drm/1.0/default/ |
D | TypeConvert.h | 45 Vector<T> vector; in toVector() local 46 vector.appendArray(vec.data(), vec.size()); in toVector() 47 return *const_cast<const Vector<T> *>(&vector); in toVector() 51 Vector<T> vector; in toVector() local 52 vector.appendArray(vec.data(), vec.size()); in toVector() 53 return vector; in toVector() 58 Vector<T> vector; in toVector() local 59 vector.appendArray(array.data(), array.size()); in toVector() 60 return vector; in toVector() 65 Vector<T> vector; in toVector() local [all …]
|
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/ |
D | ResilientDevice.h | 45 std::string versionString, std::vector<nn::Extension> extensions, 56 const std::vector<nn::Extension>& getSupportedExtensions() const override; 62 nn::GeneralResult<std::vector<bool>> getSupportedOperations( 67 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, 68 const std::vector<nn::SharedHandle>& dataCache, 72 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, 73 const std::vector<nn::SharedHandle>& dataCache, 77 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels, 78 const std::vector<nn::BufferRole>& inputRoles, 79 const std::vector<nn::BufferRole>& outputRoles) const override; [all …]
|
/hardware/google/camera/common/sensor_listener/ |
D | goog_sensor_motion.h | 129 int num_sample, std::vector<int64_t>* latest_n_timestamps, 130 std::vector<float>* motion_vector_x, std::vector<float>* motion_vector_y, 131 std::vector<float>* motion_vector_z, 132 std::vector<int64_t>* latest_n_arrival_timestamps) const; 150 std::vector<int64_t>* event_timestamps, 151 std::vector<float>* motion_vector_x, std::vector<float>* motion_vector_y, 152 std::vector<float>* motion_vector_z, 153 std::vector<int64_t>* event_arrival_timestamps) const;
|
/hardware/interfaces/drm/1.2/vts/functional/ |
D | drm_hal_clearkey_module.cpp | 28 std::vector<uint8_t> DrmHalVTSClearkeyModule::handleProvisioningRequest( in handleProvisioningRequest() 29 const std::vector<uint8_t>& /*provisioningRequest*/, in handleProvisioningRequest() 35 std::vector<DrmHalVTSClearkeyModule::ContentConfiguration> 76 std::vector<uint8_t> DrmHalVTSClearkeyModule::handleKeyRequest( in handleKeyRequest() 77 const std::vector<uint8_t>& keyRequest, in handleKeyRequest() 81 std::vector<uint8_t> expectedKeyRequest = { in handleKeyRequest() 88 std::vector<uint8_t> expectedKeyRequestPersistent = { in handleKeyRequest() 96 std::vector<uint8_t> knownKeyResponse = { in handleKeyRequest() 105 std::vector<uint8_t> knownKeyResponsePersistent = { in handleKeyRequest()
|
/hardware/interfaces/audio/core/all-versions/vts/functional/6.0/ |
D | Generators.cpp | 31 const std::vector<DeviceParameter>& getDeviceParameters(); 36 std::vector<DeviceConfigParameter> generateOutputDeviceConfigParameters(bool oneProfilePerDevice) { in generateOutputDeviceConfigParameters() 37 std::vector<DeviceConfigParameter> result; in generateOutputDeviceConfigParameters() 51 std::vector<audio_channel_mask_t>(channels.begin(), channels.end()), in generateOutputDeviceConfigParameters() 52 std::vector<uint32_t>(sampleRates.begin(), sampleRates.end()), in generateOutputDeviceConfigParameters() 87 const std::vector<DeviceConfigParameter>& getOutputDeviceConfigParameters() { in getOutputDeviceConfigParameters() 88 static std::vector<DeviceConfigParameter> parameters = in getOutputDeviceConfigParameters() 93 const std::vector<DeviceConfigParameter>& getOutputDeviceSingleConfigParameters() { in getOutputDeviceSingleConfigParameters() 94 static std::vector<DeviceConfigParameter> parameters = in getOutputDeviceSingleConfigParameters() 99 std::vector<DeviceConfigParameter> generateInputDeviceConfigParameters(bool oneProfilePerDevice) { in generateInputDeviceConfigParameters() [all …]
|