/system/tools/aidl/tests/golden_output/aidl-test-fixedsizearray-cpp-source/gen/include/android/aidl/fixedsizearray/ |
D | FixedSizeArrayExample.h | 63 …d::binder::Status RepeatBytes(const std::array<uint8_t, 3>& input, std::array<uint8_t, 3>* repeate… 64 …id::binder::Status RepeatInts(const std::array<int32_t, 3>& input, std::array<int32_t, 3>* repeate… 65 …ers(const std::array<::android::sp<::android::IBinder>, 3>& input, std::array<::android::sp<::andr… 66 …array<::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3>& input, std::array… 67 …at2dBytes(const std::array<std::array<uint8_t, 3>, 2>& input, std::array<std::array<uint8_t, 3>, 2… 68 …eat2dInts(const std::array<std::array<int32_t, 3>, 2>& input, std::array<std::array<int32_t, 3>, 2… 69 …array<std::array<::android::sp<::android::IBinder>, 3>, 2>& input, std::array<std::array<::android… 70 …array<std::array<::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3>, 2>& in… 78 …inder::Status RepeatBytes(const std::array<uint8_t, 3>& /*input*/, std::array<uint8_t, 3>* /*repea… in RepeatBytes() 81 …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 | 86 …:ScopedAStatus RepeatBytes(const std::array<uint8_t, 3>& in_input, std::array<uint8_t, 3>* out_rep… 87 …::ScopedAStatus RepeatInts(const std::array<int32_t, 3>& in_input, std::array<int32_t, 3>* out_rep… 88 …us RepeatBinders(const std::array<::ndk::SpAIBinder, 3>& in_input, std::array<::ndk::SpAIBinder, 3… 89 …array<::aidl::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3>& in_input, s… 90 …Bytes(const std::array<std::array<uint8_t, 3>, 2>& in_input, std::array<std::array<uint8_t, 3>, 2>… 91 …dInts(const std::array<std::array<int32_t, 3>, 2>& in_input, std::array<std::array<int32_t, 3>, 2>… 92 …t std::array<std::array<::ndk::SpAIBinder, 3>, 2>& in_input, std::array<std::array<::ndk::SpAIBind… 93 …array<std::array<::aidl::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3>, … 99 …:ScopedAStatus RepeatBytes(const std::array<uint8_t, 3>& in_input, std::array<uint8_t, 3>* out_rep… 100 …::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() 123 cppbor::Array array; in saveToDisk() local 125 array.add(data.certificate); in saveToDisk() [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 | 126 p.boolNullableArray = std::array<bool, 2>{true, false}; in TEST_F() 127 p.byteNullableArray = std::array<uint8_t, 2>{42, 0}; in TEST_F() 128 p.stringNullableArray = std::array<std::optional<std::string>, 2>{"hello", "world"}; in TEST_F() 131 p.boolNullableMatrix->at(0) = std::array<bool, 2>{true, false}; in TEST_F() 133 p.byteNullableMatrix->at(0) = std::array<uint8_t, 2>{42, 0}; in TEST_F() 135 p.stringNullableMatrix->at(0) = std::array<std::optional<std::string>, 2>{"hello", "world"}; in TEST_F() 151 std::array<std::array<uint8_t, 3>, 2> byte_array; in TEST_F() 179 std::array<std::array<T, 3>, 2> Make2dArray(std::initializer_list<T> values) { in Make2dArray() 180 std::array<std::array<T, 3>, 2> arr = {}; in Make2dArray() 194 CheckRepeat(service, &IRepeatFixedSizeArray::RepeatBytes, (std::array<uint8_t, 3>{1, 2, 3})); in TEST_F() [all …]
|
D | aidl_test_service.cpp | 857 Status RepeatBytes(const std::array<uint8_t, 3>& in_input, std::array<uint8_t, 3>* out_repeated, in RepeatBytes() 858 std::array<uint8_t, 3>* _aidl_return) override { in RepeatBytes() 863 Status RepeatInts(const std::array<int32_t, 3>& in_input, std::array<int32_t, 3>* out_repeated, in RepeatInts() 864 std::array<int32_t, 3>* _aidl_return) override { in RepeatInts() 869 Status RepeatBinders(const std::array<sp<IBinder>, 3>& in_input, in RepeatBinders() 870 std::array<sp<IBinder>, 3>* out_repeated, in RepeatBinders() 871 std::array<sp<IBinder>, 3>* _aidl_return) override { in RepeatBinders() 877 const std::array<FixedSizeArrayExample::IntParcelable, 3>& in_input, in RepeatParcelables() 878 std::array<FixedSizeArrayExample::IntParcelable, 3>* out_repeated, in RepeatParcelables() 879 std::array<FixedSizeArrayExample::IntParcelable, 3>* _aidl_return) override { in RepeatParcelables() [all …]
|
/system/chre/util/tests/ |
D | heap_test.cc | 28 std::array<int, MaxSize> array; in TEST() local 29 std::array<int, MaxSize> array_sorted; in TEST() 32 array[i] = std::rand(); in TEST() 33 array_sorted[i] = array[i]; in TEST() 39 v.push_back(array[i]); in TEST() 69 std::array<int, MaxSize> array; in TEST() local 70 std::array<int, MaxSize> array_sorted; in TEST() 73 array[i] = std::rand(); in TEST() 74 array_sorted[i] = array[i]; in TEST() 79 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/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() 756 …eatFixedSizeArray::RepeatInts(const std::array<int32_t, 3>& input, std::array<int32_t, 3>* repeate… in RepeatInts() 797 …ers(const std::array<::android::sp<::android::IBinder>, 3>& input, std::array<::android::sp<::andr… in RepeatBinders() 838 …array<::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3>& input, std::array… in RepeatParcelables() 879 …at2dBytes(const std::array<std::array<uint8_t, 3>, 2>& input, std::array<std::array<uint8_t, 3>, 2… in Repeat2dBytes() 920 …eat2dInts(const std::array<std::array<int32_t, 3>, 2>& input, std::array<std::array<int32_t, 3>, 2… in Repeat2dInts() 961 …array<std::array<::android::sp<::android::IBinder>, 3>, 2>& input, std::array<std::array<::android… in Repeat2dBinders() 1002 …array<std::array<::android::aidl::fixedsizearray::FixedSizeArrayExample::IntParcelable, 3>, 2>& in… in Repeat2dParcelables() 1064 std::array<uint8_t, 3> in_input; in onTransact() 1065 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/tools/aidl/tests/rust/ |
D | test_client.rs | 190 ($test:ident, $func:ident, $array:expr) => { 193 let mut array = $array.to_vec(); localVariable 196 let mut repeated = vec![Default::default(); array.len()]; 198 let result = get_test_service().$func(&array, &mut repeated); 199 assert_eq!(repeated, array); 200 array.reverse(); 201 assert_eq!(result, Ok(array)); 512 ($service:expr, $func:ident, $array:expr) => {{ 513 let mut array = $array; localVariable 515 let mut repeated = Some(vec![Default::default(); array.len()]); [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/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/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 …]
|
D | SortedVector.h | 79 inline const TYPE* array() const; 135 inline const_iterator begin() const { return array(); } in begin() 136 inline const_iterator end() const { return array() + size(); } in end() 140 ssize_t index = removeItemsAt(pos-array()); in erase() 191 const TYPE* SortedVector<TYPE>::array() const { in array() function 206 return *(array() + index); 216 return *(array() + size() - 1); in top()
|
/system/tools/aidl/ |
D | aidl_to_ndk.cpp | 117 static TypeInfo WrapArrayType(TypeInfo info, const ArrayType* array) { in WrapArrayType() argument 118 AIDL_FATAL_IF(!array, AIDL_LOCATION_HERE) << "not an array"; in WrapArrayType() 123 if (std::get_if<DynamicArray>(array)) { in WrapArrayType() 126 const auto& dimensions = std::get<FixedSizeArray>(*array).dimensions; in WrapArrayType() 154 const ArrayType* array = nullptr; in GetTypeInfo() local 168 array = &kDynamicArray; in GetTypeInfo() 171 array = &aidl.GetArray(); in GetTypeInfo() 179 if (array) { in GetTypeInfo() 180 info = WrapArrayType(info, array); in GetTypeInfo()
|
/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_;
|
D | logging_utils.cpp | 24 using std::array; 31 string LoggingUtils::GetMacString(const array<uint8_t, ETH_ALEN>& mac_address) { in GetMacString()
|