/hardware/interfaces/identity/support/src/ |
D | IdentityCredentialSupport.cpp | 155 const cppbor::Item* entry = (*array)[n].get(); in cborAreAllElementsNonCompound() 248 if (!cborPrettyPrintInternal((*array)[n].get(), out, indent + 2, maxBStrSize, in cborPrettyPrintInternal() 259 if (!cborPrettyPrintInternal((*array)[n].get(), out, indent + 2, maxBStrSize, in cborPrettyPrintInternal() 281 if (!cborPrettyPrintInternal(map_key.get(), out, indent + 2, maxBStrSize, in cborPrettyPrintInternal() 291 if (!cborPrettyPrintInternal(map_value.get(), out, indent + 2, maxBStrSize, in cborPrettyPrintInternal() 306 cborPrettyPrintInternal(semantic->child().get(), out, indent, maxBStrSize, in cborPrettyPrintInternal() 336 cborPrettyPrintInternal(item.get(), out, 0, maxBStrSize, mapKeysToNotPrint); in cborPrettyPrint() 381 if (ctx.get() == nullptr) { in decryptAes128Gcm() 386 if (EVP_DecryptInit_ex(ctx.get(), EVP_aes_128_gcm(), NULL, NULL, NULL) != 1) { in decryptAes128Gcm() 391 if (EVP_CIPHER_CTX_ctrl(ctx.get(), EVP_CTRL_GCM_SET_IVLEN, kAesGcmIvSize, NULL) != 1) { in decryptAes128Gcm() [all …]
|
/hardware/libhardware/tests/keymaster/ |
D | keymaster_test.cpp | 57 const uint8_t* mine = get(); in operator ==() 58 const uint8_t* theirs = other.get(); in operator ==() 83 const uint8_t* data = blob.get(); in operator <<() 103 dev->delete_keypair(dev, get(), length()); in ~UniqueKey() 148 uint8_t* get() const { in get() function in android::UniqueReadOnlyBlob 382 ASSERT_FALSE(x509_blob.get() == NULL) in TEST_P() 385 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get()); in TEST_P() 389 ASSERT_EQ(EVP_PKEY_RSA, EVP_PKEY_type(actual.get()->type)) in TEST_P() 392 bssl::UniquePtr<RSA> rsa(EVP_PKEY_get1_RSA(actual.get())); in TEST_P() 393 ASSERT_FALSE(rsa.get() == NULL) in TEST_P() [all …]
|
/hardware/interfaces/identity/aidl/vts/ |
D | VtsAttestationParserSupport.cpp | 93 if (!oid.get()) return nullptr; in getAttestationRecord() 95 int location = X509_get_ext_by_OBJ(certificate, oid.get(), -1); in getAttestationRecord() 113 if (!cert.get()) { in verifyAttestationRecord() 117 ASN1_OCTET_STRING* attest_rec = getAttestationRecord(cert.get()); in verifyAttestationRecord() 165 if (!key_cert.get() || !signing_cert.get()) { in verifyChain() 169 EVP_PKEY_Ptr signing_pubkey(X509_get_pubkey(signing_cert.get())); in verifyChain() 170 if (!signing_pubkey.get()) return false; in verifyChain() 172 if (X509_verify(key_cert.get(), signing_pubkey.get()) != 1) { in verifyChain() 178 if (X509_verify(signing_cert.get(), signing_pubkey.get()) != 1) { in verifyChain()
|
/hardware/interfaces/tests/extension/vibrator/aidl/client/ |
D | test-ndk-client.cpp | 32 ASSERT_NE(nullptr, vibBinder.get()); in TEST() 34 ASSERT_NE(nullptr, vib.get()); in TEST() 42 ASSERT_NE(nullptr, vibBinder.get()); in TEST() 44 ASSERT_NE(nullptr, vib.get()); in TEST() 48 ASSERT_EQ(STATUS_OK, AIBinder_getExtension(vibBinder.get(), cvibBinder.getR())); in TEST() 49 ASSERT_NE(nullptr, cvibBinder.get()); in TEST() 51 ASSERT_NE(nullptr, cvib.get()); in TEST()
|
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/ |
D | TriStateTest.cpp | 72 EXPECT_EQ(2, (++a).get(0)); in TEST() 73 EXPECT_EQ(2, (a++).get(0)); in TEST() 74 EXPECT_EQ(3, a.get(0)); in TEST() 76 EXPECT_EQ(2, (--a).get(0)); in TEST() 77 EXPECT_EQ(2, (a--).get(0)); in TEST() 78 EXPECT_EQ(1, a.get(0)); in TEST() 81 EXPECT_EQ(static_cast<uint32_t>(100), (++b).get(100)); in TEST() 82 EXPECT_EQ(static_cast<uint32_t>(101), (b++).get(101)); in TEST() 83 EXPECT_EQ(static_cast<uint32_t>(102), b.get(102)); in TEST() 86 EXPECT_EQ(static_cast<uint32_t>(103), (--b).get(103)); in TEST() [all …]
|
/hardware/google/av/codec2/tests/ |
D | C2SampleComponent_test.cpp | 223 int32_t get(const C2FieldSupportedValues::Primitive &p, int32_t*) { in get() function 226 int64_t get(const C2FieldSupportedValues::Primitive &p, int64_t*) { in get() function 229 uint32_t get(const C2FieldSupportedValues::Primitive &p, uint32_t*) { in get() function 232 uint64_t get(const C2FieldSupportedValues::Primitive &p, uint64_t*) { in get() function 235 float get(const C2FieldSupportedValues::Primitive &p, float*) { in get() function 242 typename std::underlying_type<E>::type get(const C2FieldSupportedValues::Primitive &p, E*) { in get() function 244 return getter<u>().get(p, (u*)0); in get() 259 typename lax_underlying_type<E>::type get( in get() function 261 return getter<E>().get(p, (E*)0); in get() 271 cout << ".range(" << get(sv.range.min, t); in dumpFSV() [all …]
|
D | C2Param_test.cpp | 1753 const C2NumbersTuning *T[] = { tun.get(), btun.get() }; in TEST_F() 1800 EXPECT_EQ(C2NumbersTuning::From(tun.get()), tun.get()); in TEST_F() 1801 EXPECT_EQ(C2NumbersPortTuning::From(tun.get()), nullptr); in TEST_F() 1802 EXPECT_EQ(C2NumbersPortTuning::input::From(tun.get()), nullptr); in TEST_F() 1803 EXPECT_EQ(C2NumbersPortTuning::output::From(tun.get()), nullptr); in TEST_F() 1804 EXPECT_EQ(C2NumbersStreamTuning::From(tun.get()), nullptr); in TEST_F() 1805 EXPECT_EQ(C2NumbersStreamTuning::input::From(tun.get()), nullptr); in TEST_F() 1806 EXPECT_EQ(C2NumbersStreamTuning::output::From(tun.get()), nullptr); in TEST_F() 1838 const C2NumbersPortTuning *P[] = { outp1.get(), inp1.get(), boutp1.get() }; in TEST_F() 1847 const C2NumbersPortTuning::input *PI[] = { inp2.get(), binp2.get() }; in TEST_F() [all …]
|
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/ |
D | HidReport.cpp | 27 mUsagePage(global.usagePage.get(0)), // default value 0 in HidReport() 30 mLogicalMin(global.logicalMin.get(0)), // default value 0 in HidReport() 31 mLogicalMax(global.logicalMax.get(0)), in HidReport() 63 int exponentInt = mExponent.get(0); in getExponentValue() 71 int exponentInt = mExponent.get(0); in getExponentString() 86 ret << std::hex << std::setfill('0') << std::setw(2) << mUnit.get(0); in getUnitString() 182 int64_t a = mPhysicalMin.get(0); in getPhysicalRange() 183 int64_t b = mPhysicalMax.get(0); in getPhysicalRange() 208 return mUnit.get(0); // default unit is 0 means default unit in getUnit() 213 return mReportId.get(0); in getReportId()
|
/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | ValidateBurst.cpp | 62 ASSERT_NE(nullptr, preparedModel.get()); in createBurst() 72 ASSERT_NE(nullptr, fmqRequestChannel.get()); in createBurst() 73 ASSERT_NE(nullptr, fmqResultChannel.get()); in createBurst() 88 ASSERT_NE(nullptr, burstContext.get()); in createBurst() 99 ASSERT_NE(nullptr, preparedModel.get()); in createBurstWithResultChannelLength() 109 ASSERT_NE(nullptr, sender.get()); in createBurstWithResultChannelLength() 110 ASSERT_NE(nullptr, receiver.get()); in createBurstWithResultChannelLength() 111 ASSERT_NE(nullptr, context.get()); in createBurstWithResultChannelLength() 249 ASSERT_NE(nullptr, sender.get()); in validateBurstSerialization() 250 ASSERT_NE(nullptr, receiver.get()); in validateBurstSerialization() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | ValidateBurst.cpp | 67 ASSERT_NE(nullptr, preparedModel.get()); in createBurst() 77 ASSERT_NE(nullptr, fmqRequestChannel.get()); in createBurst() 78 ASSERT_NE(nullptr, fmqResultChannel.get()); in createBurst() 94 ASSERT_NE(nullptr, burstContext.get()); in createBurst() 105 ASSERT_NE(nullptr, preparedModel.get()); in createBurstWithResultChannelLength() 115 ASSERT_NE(nullptr, sender.get()); in createBurstWithResultChannelLength() 116 ASSERT_NE(nullptr, receiver.get()); in createBurstWithResultChannelLength() 117 ASSERT_NE(nullptr, context.get()); in createBurstWithResultChannelLength() 255 ASSERT_NE(nullptr, sender.get()); in validateBurstSerialization() 256 ASSERT_NE(nullptr, receiver.get()); in validateBurstSerialization() [all …]
|
/hardware/libhardware/modules/camera/3_4/metadata/ |
D | metadata_reader_test.cpp | 71 metadata_.get(), facing_tag_, translation.first), in TEST_F() 85 v4l2_camera_hal::UpdateMetadata(metadata_.get(), facing_tag_, invalid), in TEST_F() 101 metadata_.get(), orientation_tag_, orientation), in TEST_F() 115 metadata_.get(), orientation_tag_, orientation + 1), in TEST_F() 124 metadata_.get(), orientation_tag_, orientation - 1), in TEST_F() 141 metadata_.get(), max_inputs_tag_, expected), in TEST_F() 161 metadata_.get(), max_outputs_tag_, expected), in TEST_F() 173 metadata_.get(), max_outputs_tag_, invalid), in TEST_F() 197 v4l2_camera_hal::UpdateMetadata(metadata_.get(), configs_tag_, configs), in TEST_F() 217 v4l2_camera_hal::UpdateMetadata(metadata_.get(), configs_tag_, config), in TEST_F() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/ |
D | VehicleObjectPool_test.cpp | 62 ASSERT_EQ(value.get(), valuePool->obtain(VehiclePropertyType::INT32).get()); in TEST_F() 64 ASSERT_NE(value.get(), valuePool->obtain(VehiclePropertyType::FLOAT).get()); in TEST_F() 74 void* raw = vs.get(); in TEST_F() 79 ASSERT_NE(raw, valuePool->obtain(VehiclePropertyType::STRING).get()); in TEST_F() 92 auto poolPtr = valuePool.get(); in TEST_F()
|
/hardware/interfaces/cas/1.0/default/ |
D | CasImpl.cpp | 82 if (holder.get() == nullptr) { in setPrivateData() 94 if (holder.get() != nullptr) { in openSession() 109 if (holder.get() == nullptr) { in setSessionPrivateData() 119 if (holder.get() == nullptr) { in closeSession() 130 if (holder.get() == nullptr) { in processEcm() 140 if (holder.get() == nullptr) { in processEmm() 152 if (holder.get() == nullptr) { in sendEvent() 163 if (holder.get() == nullptr) { in provision() 175 if (holder.get() == nullptr) { in refreshEntitlements() 184 ALOGV("%s: plugin=%p", __FUNCTION__, mPluginHolder.get()); in release()
|
/hardware/interfaces/configstore/utils/include/configstore/ |
D | Utils.h | 67 decltype(V::value) get(const decltype(V::value) &defValue) { in decltype() 74 if (!configs.get()) { in decltype() 119 return get<OptionalBool, I, func>(defValue); in getBool() 125 return get<OptionalInt32, I, func>(defValue); in getInt32() 131 return get<OptionalUInt32, I, func>(defValue); in getUInt32() 137 return get<OptionalInt64, I, func>(defValue); in getInt64() 143 return get<OptionalUInt64, I, func>(defValue); in getUInt64() 149 return get<OptionalString, I, func>(defValue); in getString() 155 return get<OptionalDisplayOrientation, I, func>(defValue); in getDisplayOrientation()
|
/hardware/google/av/media/eco/ |
D | ECOData.cpp | 141 RETURN_STATUS_IF_ERROR(parcel->writeInt32(std::get<int32_t>(it.second))); in writeToParcel() 145 RETURN_STATUS_IF_ERROR(parcel->writeInt64(std::get<int64_t>(it.second))); in writeToParcel() 149 RETURN_STATUS_IF_ERROR(parcel->writeUint32(std::get<size_t>(it.second))); in writeToParcel() 153 RETURN_STATUS_IF_ERROR(parcel->writeFloat(std::get<float>(it.second))); in writeToParcel() 157 RETURN_STATUS_IF_ERROR(parcel->writeDouble(std::get<double>(it.second))); in writeToParcel() 161 RETURN_STATUS_IF_ERROR(parcel->writeCString(std::get<std::string>(it.second).c_str())); in writeToParcel() 165 RETURN_STATUS_IF_ERROR(parcel->writeByte(std::get<int8_t>(it.second))); in writeToParcel() 208 const std::string& entryValue = std::get<std::string>(mKeyValueStore.at(key)); in findString() 237 *out = std::get<T>(mKeyValueStore.at(key)); in findValue() 382 std::get<int32_t>(it.second)); in debugString() [all …]
|
/hardware/interfaces/cas/1.2/default/ |
D | CasImpl.cpp | 126 if (holder.get() == nullptr) { in setPluginStatusUpdateCallback() 135 if (holder.get() == nullptr) { in setPrivateData() 147 if (holder.get() != nullptr) { in openSession() 164 if (holder.get() != nullptr) { in openSession_1_2() 179 if (holder.get() == nullptr) { in setSessionPrivateData() 188 if (holder.get() == nullptr) { in closeSession() 197 if (holder.get() == nullptr) { in processEcm() 207 if (holder.get() == nullptr) { in processEmm() 217 if (holder.get() == nullptr) { in sendEvent() 229 if (holder.get() == nullptr) { in sendSessionEvent() [all …]
|
/hardware/interfaces/cas/1.1/default/ |
D | CasImpl.cpp | 104 if (holder.get() == nullptr) { in setPrivateData() 116 if (holder.get() != nullptr) { in openSession() 130 if (holder.get() == nullptr) { in setSessionPrivateData() 139 if (holder.get() == nullptr) { in closeSession() 148 if (holder.get() == nullptr) { in processEcm() 158 if (holder.get() == nullptr) { in processEmm() 168 if (holder.get() == nullptr) { in sendEvent() 180 if (holder.get() == nullptr) { in sendSessionEvent() 191 if (holder.get() == nullptr) { in provision() 201 if (holder.get() == nullptr) { in refreshEntitlements() [all …]
|
/hardware/interfaces/wifi/1.0/vts/functional/ |
D | wifi_chip_hidl_test.cpp | 73 ASSERT_NE(nullptr, wifi_chip_.get()); in SetUp() 166 EXPECT_NE(nullptr, getWifiChip().get()); in TEST() 197 ASSERT_NE(nullptr, wifi_chip_.get()); in TEST_F() 373 EXPECT_NE(nullptr, iface.get()); in TEST_F() 393 EXPECT_NE(nullptr, iface.get()); in TEST_F() 421 EXPECT_NE(nullptr, ap_iface.get()); in TEST_F() 427 EXPECT_NE(nullptr, status_and_iface1.second.get()); in TEST_F() 433 EXPECT_EQ(nullptr, status_and_iface2.second.get()); in TEST_F() 448 EXPECT_NE(nullptr, ap_iface.get()); in TEST_F() 470 EXPECT_NE(nullptr, iface.get()); in TEST_F() [all …]
|
/hardware/interfaces/audio/core/all-versions/vts/functional/ |
D | AudioPrimaryHidlHalTest.h | 119 return DevicesFactoryManager::getInstance().get(getFactoryName()); in getDevicesFactory() 122 return DeviceManager::getInstance().get(getFactoryName(), getDeviceName()); in getDevice() 228 const auto& deviceName = std::get<PARAM_DEVICE_NAME>(info.param); in DeviceParameterToString() 231 std::get<PARAM_FACTORY_NAME>(info.param), info.index}); in DeviceParameterToString() 244 if (DeviceManager::getInstance().get(factoryName, deviceName) != nullptr) { in getDeviceParameters() 275 return std::get<PARAM_DEVICE_NAME>(elem) == DeviceManager::kPrimaryDevice; in getDeviceParametersForPrimaryDeviceTests() 287 return std::get<PARAM_FACTORY_NAME>(GetParam()); in getFactoryName() 290 return std::get<PARAM_DEVICE_NAME>(GetParam()); in getDeviceName() 456 ASSERT_OK((BaseTestClass::getDevice().get()->*getter)(returnIn(res, initialValue))); 467 auto ret = (BaseTestClass::getDevice().get()->*setter)(setValue); [all …]
|
/hardware/interfaces/tetheroffload/config/1.0/vts/functional/ |
D | VtsHalTetheroffloadConfigV1_0TargetTest.cpp | 57 if (s.get() < 0) { in netlinkSocket() 64 if (::bind(s.get(), asSockaddr(&bind_addr), sizeof(bind_addr)) != 0) { in netlinkSocket() 71 if (::connect(s.get(), asSockaddr(&kernel_addr), sizeof(kernel_addr)) != 0) { in netlinkSocket() 86 ASSERT_NE(nullptr, config.get()) << "Could not get HIDL instance"; in SetUp() 99 if (fd1.get() < 0) { in TEST_P() 109 if (fd2.get() < 0) { in TEST_P() 141 if (fd1.get() < 0) { in TEST_P() 166 if (fd2.get() < 0) { in TEST_P()
|
/hardware/google/av/media/sfplugin/ |
D | ReflectedParamUpdater.cpp | 56 (void)c2Value.get(&int32Value); in debugString() 60 (void)c2Value.get(&uint32Value); in debugString() 65 (void)c2Value.get((c2_cntr32_t*)&uint32Value); in debugString() 69 (void)c2Value.get(&int64Value); in debugString() 73 (void)c2Value.get(&uint64Value); in debugString() 78 (void)c2Value.get((c2_cntr64_t*)&uint64Value); in debugString() 82 (void)c2Value.get(&floatValue); in debugString() 103 s << (void*)bufValue.get(); in debugString() 327 if (param->get()->size() < offset + size) { in updateParamsFromMessage() 333 new (newParam) _C2Param(offset + size, param->get()->index()); in updateParamsFromMessage() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/ |
D | VehicleService.cpp | 32 auto hal = std::make_unique<impl::EmulatedVehicleHal>(store.get()); in main() 33 auto emulator = std::make_unique<impl::VehicleEmulator>(hal.get()); in main() 34 auto service = std::make_unique<VehicleHalManager>(hal.get()); in main()
|
/hardware/libhardware/modules/audio_remote_submix/tests/ |
D | remote_submix_tests.cpp | 159 GenerateData(outBuffer.get(), outBufferSize); in VerifyOutputInput() 161 WriteIntoStream(streamOut, outBuffer.get(), outBufferSize); in VerifyOutputInput() 162 memset(inBuffer.get(), 0, inBufferSize); in VerifyOutputInput() 163 ReadFromStream(streamIn, inBuffer.get(), inBufferSize); in VerifyOutputInput() 165 ASSERT_EQ(0, memcmp(outBuffer.get(), inBuffer.get(), inBufferSize)); in VerifyOutputInput() 167 VerifyBufferNotZeroes(inBuffer.get(), inBufferSize); in VerifyOutputInput() 181 GenerateData(buffer.get(), bufferSize); in WriteSomethingIntoStream() 183 WriteIntoStream(streamOut, buffer.get(), bufferSize); in WriteSomethingIntoStream() 236 memset(buffer.get(), 0, bufferSize); in TEST_F() 237 ASSERT_EQ(0, streamOut->write(streamOut, buffer.get(), bufferSize)); in TEST_F() [all …]
|
/hardware/interfaces/renderscript/1.0/vts/functional/ |
D | VtsHalRenderscriptV1_0TargetTest.cpp | 22 ASSERT_NE(nullptr, device.get()); in SetUp() 27 ASSERT_NE(nullptr, context.get()); in SetUp() 31 if (context.get() != nullptr) { in TearDown()
|
/hardware/interfaces/tests/extension/vibrator/aidl/default/ |
D | service.cpp | 40 CHECK(STATUS_OK == AIBinder_setExtension(vibBinder.get(), cvib->asBinder().get())); in main() 43 CHECK(STATUS_OK == AServiceManager_addService(vibBinder.get(), instance.c_str())); in main()
|