/system/tools/aidl/tests/golden_output/aidl-test-fixedsizearray-cpp-source/gen/include/android/aidl/fixedsizearray/ |
D | FixedSizeArrayExample.h | 68 …d::binder::Status RepeatBytes(const std::array<uint8_t, 3>& input, std::array<uint8_t, 3>* repeate… 69 …id::binder::Status RepeatInts(const std::array<int32_t, 3>& input, std::array<int32_t, 3>* repeate… 70 …ers(const std::array<::android::sp<::android::IBinder>, 3>& input, std::array<::android::sp<::andr… 71 …array<::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3>& input, std::array… 72 …at2dBytes(const std::array<std::array<uint8_t, 3>, 2>& input, std::array<std::array<uint8_t, 3>, 2… 73 …eat2dInts(const std::array<std::array<int32_t, 3>, 2>& input, std::array<std::array<int32_t, 3>, 2… 74 …array<std::array<::android::sp<::android::IBinder>, 3>, 2>& input, std::array<std::array<::android… 75 …array<std::array<::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3>, 2>& in… 83 …inder::Status RepeatBytes(const std::array<uint8_t, 3>& /*input*/, std::array<uint8_t, 3>* /*repea… in RepeatBytes() 86 …binder::Status RepeatInts(const std::array<int32_t, 3>& /*input*/, std::array<int32_t, 3>* /*repea… in RepeatInts() [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-fixedsizearray-ndk-source/gen/include/aidl/android/aidl/fixedsizearray/ |
D | FixedSizeArrayExample.h | 89 …:ScopedAStatus RepeatBytes(const std::array<uint8_t, 3>& in_input, std::array<uint8_t, 3>* out_rep… 90 …::ScopedAStatus RepeatInts(const std::array<int32_t, 3>& in_input, std::array<int32_t, 3>* out_rep… 91 …us RepeatBinders(const std::array<::ndk::SpAIBinder, 3>& in_input, std::array<::ndk::SpAIBinder, 3… 92 …array<::aidl::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3>& in_input, s… 93 …Bytes(const std::array<std::array<uint8_t, 3>, 2>& in_input, std::array<std::array<uint8_t, 3>, 2>… 94 …dInts(const std::array<std::array<int32_t, 3>, 2>& in_input, std::array<std::array<int32_t, 3>, 2>… 95 …t std::array<std::array<::ndk::SpAIBinder, 3>, 2>& in_input, std::array<std::array<::ndk::SpAIBind… 96 …array<std::array<::aidl::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3>, … 102 …:ScopedAStatus RepeatBytes(const std::array<uint8_t, 3>& in_input, std::array<uint8_t, 3>* out_rep… 103 …::ScopedAStatus RepeatInts(const std::array<int32_t, 3>& in_input, std::array<int32_t, 3>* out_rep… [all …]
|
/system/security/identity/ |
D | CredentialData.cpp | 89 cppbor::Array array; in saveToDisk() local 90 array.add(sacp.id); in saveToDisk() 91 array.add(sacp.readerCertificate.encodedCertificate); in saveToDisk() 92 array.add(sacp.userAuthenticationRequired); in saveToDisk() 93 array.add(sacp.timeoutMillis); in saveToDisk() 94 array.add(sacp.secureUserId); in saveToDisk() 96 array.add(mac); in saveToDisk() 97 sacpArray.add(std::move(array)); in saveToDisk() 124 cppbor::Array array; in saveToDisk() local 126 array.add(data.certificate); in saveToDisk() [all …]
|
/system/media/audio_utils/ |
D | MelProcessor.cpp | 51 constexpr std::array<std::array<float, kBiquadNumCoefs>, MelProcessor::kCascadeBiquadNumber> 55 constexpr std::array<std::array<float, kBiquadNumCoefs>, MelProcessor::kCascadeBiquadNumber> 59 constexpr std::array<std::array<float, kBiquadNumCoefs>, MelProcessor::kCascadeBiquadNumber> 63 constexpr std::array<std::array<float, kBiquadNumCoefs>, MelProcessor::kCascadeBiquadNumber> 67 constexpr std::array<std::array<float, kBiquadNumCoefs>, MelProcessor::kCascadeBiquadNumber> 71 constexpr std::array<std::array<float, kBiquadNumCoefs>, MelProcessor::kCascadeBiquadNumber> 75 constexpr std::array<std::array<float, kBiquadNumCoefs>, MelProcessor::kCascadeBiquadNumber> 79 constexpr std::array<std::array<float, kBiquadNumCoefs>, MelProcessor::kCascadeBiquadNumber> 83 constexpr std::array<std::array<float, kBiquadNumCoefs>, MelProcessor::kCascadeBiquadNumber> 87 constexpr std::array<std::array<float, kBiquadNumCoefs>, MelProcessor::kCascadeBiquadNumber> [all …]
|
/system/tools/aidl/tests/ |
D | aidl_test_client_file_descriptors.cpp | 87 std::vector<unique_fd> array; in TEST_F() local 88 array.resize(2); in TEST_F() 89 DoPipe(&array[0], &array[1]); in TEST_F() 97 repeated = std::vector<unique_fd>(array.size()); in TEST_F() 101 auto status = cpp_java_tests->ReverseFileDescriptorArray(array, &repeated, &reversed); in TEST_F() 104 WriteStringToFd("First", array[1]); in TEST_F() 129 std::vector<unique_fd> array; in TEST_F() local 130 array.resize(2); in TEST_F() 131 DoPipe(&array[0], &array[1]); in TEST_F() 134 for (auto& fd : array) { in TEST_F() [all …]
|
D | aidl_test_client_ndk_parcelables.cpp | 129 p.boolNullableArray = std::array<bool, 2>{true, false}; in TEST_F() 130 p.byteNullableArray = std::array<uint8_t, 2>{42, 0}; in TEST_F() 131 p.stringNullableArray = std::array<std::optional<std::string>, 2>{"hello", "world"}; in TEST_F() 134 p.boolNullableMatrix->at(0) = std::array<bool, 2>{true, false}; in TEST_F() 136 p.byteNullableMatrix->at(0) = std::array<uint8_t, 2>{42, 0}; in TEST_F() 138 p.stringNullableMatrix->at(0) = std::array<std::optional<std::string>, 2>{"hello", "world"}; in TEST_F() 154 std::array<std::array<uint8_t, 3>, 2> byte_array; in TEST_F() 182 std::array<std::array<T, 3>, 2> Make2dArray(std::initializer_list<T> values) { in Make2dArray() 183 std::array<std::array<T, 3>, 2> arr = {}; in Make2dArray() 197 CheckRepeat(service, &IRepeatFixedSizeArray::RepeatBytes, (std::array<uint8_t, 3>{1, 2, 3})); in TEST_F() [all …]
|
D | aidl_test_service.cpp | 904 Status RepeatBytes(const std::array<uint8_t, 3>& in_input, std::array<uint8_t, 3>* out_repeated, in RepeatBytes() 905 std::array<uint8_t, 3>* _aidl_return) override { in RepeatBytes() 910 Status RepeatInts(const std::array<int32_t, 3>& in_input, std::array<int32_t, 3>* out_repeated, in RepeatInts() 911 std::array<int32_t, 3>* _aidl_return) override { in RepeatInts() 916 Status RepeatBinders(const std::array<sp<IBinder>, 3>& in_input, in RepeatBinders() 917 std::array<sp<IBinder>, 3>* out_repeated, in RepeatBinders() 918 std::array<sp<IBinder>, 3>* _aidl_return) override { in RepeatBinders() 924 const std::array<FixedSizeArrayExample::IntParcelable, 3>& in_input, in RepeatParcelables() 925 std::array<FixedSizeArrayExample::IntParcelable, 3>* out_repeated, in RepeatParcelables() 926 std::array<FixedSizeArrayExample::IntParcelable, 3>* _aidl_return) override { in RepeatParcelables() [all …]
|
/system/chre/util/tests/ |
D | heap_test.cc | 44 std::array<int, MaxSize> array; in TEST() local 45 std::array<int, MaxSize> array_sorted; in TEST() 48 array[i] = std::rand(); in TEST() 49 array_sorted[i] = array[i]; in TEST() 55 v.push_back(array[i]); in TEST() 85 std::array<int, MaxSize> array; in TEST() local 86 std::array<int, MaxSize> array_sorted; in TEST() 89 array[i] = std::rand(); in TEST() 90 array_sorted[i] = array[i]; in TEST() 95 v.push_back(array[i]); in TEST()
|
/system/tools/aidl/tests/golden_output/aidl-test-fixedsizearray-ndk-source/gen/android/aidl/fixedsizearray/ |
D | FixedSizeArrayExample.cpp | 601 std::array<uint8_t, 3> in_input; in _aidl_android_aidl_fixedsizearray_FixedSizeArrayExample_IRepeatFixedSizeArray_onTransact() 602 std::array<uint8_t, 3> out_repeated; in _aidl_android_aidl_fixedsizearray_FixedSizeArrayExample_IRepeatFixedSizeArray_onTransact() 603 std::array<uint8_t, 3> _aidl_return; in _aidl_android_aidl_fixedsizearray_FixedSizeArrayExample_IRepeatFixedSizeArray_onTransact() 623 std::array<int32_t, 3> in_input; in _aidl_android_aidl_fixedsizearray_FixedSizeArrayExample_IRepeatFixedSizeArray_onTransact() 624 std::array<int32_t, 3> out_repeated; in _aidl_android_aidl_fixedsizearray_FixedSizeArrayExample_IRepeatFixedSizeArray_onTransact() 625 std::array<int32_t, 3> _aidl_return; in _aidl_android_aidl_fixedsizearray_FixedSizeArrayExample_IRepeatFixedSizeArray_onTransact() 645 std::array<::ndk::SpAIBinder, 3> in_input; in _aidl_android_aidl_fixedsizearray_FixedSizeArrayExample_IRepeatFixedSizeArray_onTransact() 646 std::array<::ndk::SpAIBinder, 3> out_repeated; in _aidl_android_aidl_fixedsizearray_FixedSizeArrayExample_IRepeatFixedSizeArray_onTransact() 647 std::array<::ndk::SpAIBinder, 3> _aidl_return; in _aidl_android_aidl_fixedsizearray_FixedSizeArrayExample_IRepeatFixedSizeArray_onTransact() 667 …std::array<::aidl::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3> in_inpu… in _aidl_android_aidl_fixedsizearray_FixedSizeArrayExample_IRepeatFixedSizeArray_onTransact() [all …]
|
/system/chre/util/include/chre/util/ |
D | macros.h | 28 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) argument 32 #define ARRAY_END(array) (array + ARRAY_SIZE(array)) argument
|
/system/chre/apps/nearby/third_party/contexthub/chre/util/include/chre/util/ |
D | macros.h | 28 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) argument 32 #define ARRAY_END(array) (array + ARRAY_SIZE(array)) argument
|
/system/connectivity/wificond/net/ |
D | mlme_event.h | 37 const std::array<uint8_t, ETH_ALEN>& GetBSSID() const { return bssid_; } in GetBSSID() 49 std::array<uint8_t, ETH_ALEN> bssid_; 61 const std::array<uint8_t, ETH_ALEN>& GetBSSID() const { return bssid_; } in GetBSSID() 73 std::array<uint8_t, ETH_ALEN> bssid_; 85 const std::array<uint8_t, ETH_ALEN>& GetBSSID() const { return bssid_; } in GetBSSID() 92 std::array<uint8_t, ETH_ALEN> bssid_; 107 std::array<uint8_t, ETH_ALEN> bssid_; 121 std::array<uint8_t, ETH_ALEN> bssid_;
|
/system/core/libutils/ |
D | VectorImpl.cpp | 124 ssize_t VectorImpl::insertArrayAt(const void* array, size_t index, size_t length) in insertArrayAt() argument 130 _do_copy(where, array, length); in insertArrayAt() 135 ssize_t VectorImpl::appendArray(const void* array, size_t length) in appendArray() argument 137 return insertArrayAt(array, size(), length); in appendArray() 177 void* array = const_cast<void*>(arrayImpl()); in sort() local 181 void* item = reinterpret_cast<char*>(array) + mItemSize*(i); in sort() 182 void* curr = reinterpret_cast<char*>(array) + mItemSize*(i-1); in sort() 187 array = editArrayImpl(); in sort() 188 if (!array) return NO_MEMORY; in sort() 191 item = reinterpret_cast<char*>(array) + mItemSize*(i); in sort() [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-fixedsizearray-cpp-source/gen/android/aidl/fixedsizearray/ |
D | FixedSizeArrayExample.cpp | 715 …atFixedSizeArray::RepeatBytes(const std::array<uint8_t, 3>& input, std::array<uint8_t, 3>* repeate… in RepeatBytes() 757 …eatFixedSizeArray::RepeatInts(const std::array<int32_t, 3>& input, std::array<int32_t, 3>* repeate… in RepeatInts() 799 …ers(const std::array<::android::sp<::android::IBinder>, 3>& input, std::array<::android::sp<::andr… in RepeatBinders() 841 …array<::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3>& input, std::array… in RepeatParcelables() 883 …at2dBytes(const std::array<std::array<uint8_t, 3>, 2>& input, std::array<std::array<uint8_t, 3>, 2… in Repeat2dBytes() 925 …eat2dInts(const std::array<std::array<int32_t, 3>, 2>& input, std::array<std::array<int32_t, 3>, 2… in Repeat2dInts() 967 …array<std::array<::android::sp<::android::IBinder>, 3>, 2>& input, std::array<std::array<::android… in Repeat2dBinders() 1009 …array<std::array<::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3>, 2>& in… in Repeat2dParcelables() 1072 std::array<uint8_t, 3> in_input; in onTransact() 1073 std::array<uint8_t, 3> out_repeated; in onTransact() [all …]
|
/system/extras/module_ndk_libs/libnativehelper/include_jni/ |
D | jni.h | 851 jsize GetArrayLength(jarray array) in GetArrayLength() 852 { return functions->GetArrayLength(this, array); } in GetArrayLength() 859 jobject GetObjectArrayElement(jobjectArray array, jsize index) in GetObjectArrayElement() 860 { return functions->GetObjectArrayElement(this, array, index); } in GetObjectArrayElement() 862 void SetObjectArrayElement(jobjectArray array, jsize index, jobject value) in SetObjectArrayElement() 863 { functions->SetObjectArrayElement(this, array, index, value); } in SetObjectArrayElement() 882 jboolean* GetBooleanArrayElements(jbooleanArray array, jboolean* isCopy) in GetBooleanArrayElements() 883 { return functions->GetBooleanArrayElements(this, array, isCopy); } in GetBooleanArrayElements() 884 jbyte* GetByteArrayElements(jbyteArray array, jboolean* isCopy) in GetByteArrayElements() 885 { return functions->GetByteArrayElements(this, array, isCopy); } in GetByteArrayElements() [all …]
|
/system/tools/aidl/tests/java/src/android/aidl/tests/ |
D | JavaOnlyImmutableAnnotationTests.java | 48 Bar[] array = new Bar[3]; in testReadWriteJavaOnlyImmutableParcelable() local 49 array[0] = new Bar("zero"); in testReadWriteJavaOnlyImmutableParcelable() 50 array[1] = new Bar("one"); in testReadWriteJavaOnlyImmutableParcelable() 51 array[2] = new Bar("two"); in testReadWriteJavaOnlyImmutableParcelable() 53 Foo foo = new Foo(7, new Bar("my"), list, map, array, Union.num(42)); in testReadWriteJavaOnlyImmutableParcelable() 113 Bar[] array = new Bar[3]; in testBuilder() local 114 array[0] = new Bar("zero"); in testBuilder() 115 array[1] = new Bar("one"); in testBuilder() 116 array[2] = new Bar("two"); in testBuilder() 118 Foo foo = new Foo(7, b, list, map, array, Union.num(42)); in testBuilder() [all …]
|
/system/chre/apps/test/chqts/src/shared/ |
D | nano_string_test.cc | 152 char array[kAsciiLen + 1]; in testHexAscii() local 153 array[kAsciiLen] = kUnsetValue; in testHexAscii() 154 uint32ToHexAscii(array, sizeof(array), value); in testHexAscii() 155 EXPECT_EQ(kUnsetValue, array[kAsciiLen]); in testHexAscii() 156 array[kAsciiLen] = '\0'; in testHexAscii() 157 EXPECT_STREQ(str, array); in testHexAscii()
|
/system/libhidl/ |
D | test_main.cpp | 219 int32_t array[] = {5, 6, 7}; in TEST_F() local 220 vector<int32_t> v(array, array + 3); in TEST_F() 226 EXPECT_ARRAYEQ(hv1, array, 3); in TEST_F() 236 EXPECT_ARRAYEQ(v3, array, v3.size()); in TEST_F() 258 int32_t array[] = {5, 6, 7}; in TEST_F() local 259 android::hardware::hidl_vec<int32_t> hv1 = std::vector<int32_t>(array, array + 3); in TEST_F() 296 int32_t array[] = {5, 6, 7}; in TEST_F() local 297 hidl_vec<int32_t> hv1 = std::vector<int32_t>(array, array + 3); in TEST_F() 433 int32_t array[] = {5, 6, 7}; in TEST_F() local 435 hidl_array<int32_t, 3> ha(array); in TEST_F() [all …]
|
/system/connectivity/wificond/tests/ |
D | ap_interface_impl_unittest.cpp | 36 using std::array; 54 const array<uint8_t, ETH_ALEN> kFakeMacAddress01 = {0x45, 0x54, 0xad, 0x67, 0x98, 0xf6}; 55 const array<uint8_t, ETH_ALEN> kFakeMacAddress02 = {0x45, 0x54, 0xad, 0x67, 0x98, 0xf7}; 107 array<uint8_t, ETH_ALEN> fake_mac_address_01 = kFakeMacAddress01; in TEST_F() 108 array<uint8_t, ETH_ALEN> fake_mac_address_02 = kFakeMacAddress02; in TEST_F() 129 array<uint8_t, ETH_ALEN> fake_mac_address_01 = kFakeMacAddress01; in TEST_F()
|
D | mock_client_interface_impl.cpp | 32 const std::array<uint8_t, ETH_ALEN> kTestInterfaceMacAddress = {0x10, 0x20, 0xfe, 0xae, 0x2d, 0xc2}; 44 std::array<uint8_t, ETH_ALEN>(kTestInterfaceMacAddress), in MockClientInterfaceImpl()
|
/system/core/libutils/include/utils/ |
D | Vector.h | 106 inline const TYPE* array() const; 142 ssize_t insertArrayAt(const TYPE* array, size_t index, size_t length); 145 ssize_t appendArray(const TYPE* array, size_t length); 202 inline const_iterator begin() const { return array(); } in begin() 203 inline const_iterator end() const { return array() + size(); } in end() 209 ssize_t index = removeItemsAt(static_cast<size_t>(pos-array())); in erase() 276 const TYPE* Vector<TYPE>::array() const { in array() function 291 return *(array() + index); 301 return *(array() + size() - 1); in top() 325 ssize_t Vector<TYPE>::insertArrayAt(const TYPE* array, size_t index, size_t length) { in insertArrayAt() argument [all …]
|
/system/libbase/include/android-base/ |
D | macros.h | 74 char(&ArraySizeHelper(T(&array)[N]))[N]; // NOLINT(readability/casting) 76 #define arraysize(array) (sizeof(ArraySizeHelper(array))) argument
|
/system/tools/aidl/ |
D | aidl_to_ndk.cpp | 123 static TypeInfo WrapArrayType(TypeInfo info, const ArrayType* array) { in WrapArrayType() argument 124 AIDL_FATAL_IF(!array, AIDL_LOCATION_HERE) << "not an array"; in WrapArrayType() 129 if (std::get_if<DynamicArray>(array)) { in WrapArrayType() 132 auto dimensions = std::get<FixedSizeArray>(*array).GetDimensionInts(); in WrapArrayType() 159 const ArrayType* array = nullptr; in GetTypeInfo() local 173 array = &kDynamicArray; in GetTypeInfo() 176 array = &aidl.GetArray(); in GetTypeInfo() 184 if (array) { in GetTypeInfo() 185 info = WrapArrayType(info, array); in GetTypeInfo()
|
/system/tools/aidl/tests/rust/ |
D | test_client.rs | 208 ($test:ident, $func:ident, $array:expr) => { 211 let mut array = $array.to_vec(); localVariable 214 let mut repeated = vec![Default::default(); array.len()]; 216 let result = get_test_service().$func(&array, &mut repeated); 217 assert_eq!(repeated, array); 218 array.reverse(); 219 assert_eq!(result, Ok(array)); 530 ($service:expr, $func:ident, $array:expr) => {{ 531 let mut array = $array; localVariable 533 let mut repeated = Some(vec![Default::default(); array.len()]); [all …]
|
/system/connectivity/wificond/ |
D | client_interface_impl.h | 68 const std::array<uint8_t, ETH_ALEN>& interface_mac_addr, 79 const std::array<uint8_t, ETH_ALEN>& GetMacAddress(); 98 const std::array<uint8_t, ETH_ALEN> interface_mac_addr_; 108 std::array<uint8_t, ETH_ALEN> bssid_;
|