/system/tools/aidl/tests/java/src/android/aidl/tests/ |
D | UnionTests.java | 24 import android.aidl.tests.Union; 43 assertThat(new Union(), is(Union.ns(new int[] {}))); // int[] ns = {} in defaultConstructorInitsWithFirstField() 50 Union u = new Union(); in updatesUnionWithSetter() 52 assertThat(u.getTag(), is(Union.ns)); in updatesUnionWithSetter() 58 Union u = new Union(); in gettingWrongFieldThrowsException() 66 Union u = Union.ss(ss); in readWriteViaParcel() 71 Union v = Union.CREATOR.createFromParcel(parcel); in readWriteViaParcel() 73 assertThat(v.getTag(), is(Union.ss)); in readWriteViaParcel() 102 private void shouldBeTheSame(Union a, Union b) { in shouldBeTheSame() 110 private void shouldBeDifferent(Union a, Union b) { in shouldBeDifferent() [all …]
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-ndk-source/gen/include/aidl/android/aidl/loggable/ |
D | Union.h | 27 class Union { 38 … constexpr bool _not_self = !std::is_same_v<std::remove_cv_t<std::remove_reference_t<_Tp>>, Union>; 40 Union() : _value(std::in_place_index<num>, int32_t(43)) { } in Union() function 41 Union(const Union&) = default; 42 Union(Union&&) = default; 43 Union& operator=(const Union&) = default; 44 Union& operator=(Union&&) = default; 48 constexpr Union(_Tp&& _arg) in Union() function 52 constexpr explicit Union(std::in_place_index_t<_Np>, _Tp&&... _args) in Union() function 56 static Union make(_Tp&&... _args) { in make() [all …]
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-cpp-source/gen/include/android/aidl/loggable/ |
D | Union.h | 24 class Union : public ::android::Parcelable { 26 inline bool operator!=(const Union& rhs) const { 29 inline bool operator<(const Union& rhs) const { 32 inline bool operator<=(const Union& rhs) const { 35 inline bool operator==(const Union& rhs) const { 38 inline bool operator>(const Union& rhs) const { 41 inline bool operator>=(const Union& rhs) const { 51 … constexpr bool _not_self = !std::is_same_v<std::remove_cv_t<std::remove_reference_t<_Tp>>, Union>; 53 Union() : _value(std::in_place_index<num>, int32_t(43)) { } in Union() function 54 Union(const Union&) = default; [all …]
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-ndk_platform-source/gen/include/aidl/android/aidl/loggable/ |
D | Union.h | 27 class Union { 38 … constexpr bool _not_self = !std::is_same_v<std::remove_cv_t<std::remove_reference_t<_Tp>>, Union>; 40 Union() : _value(std::in_place_index<num>, int32_t(43)) { } in Union() function 41 Union(const Union&) = default; 42 Union(Union&&) = default; 43 Union& operator=(const Union&) = default; 44 Union& operator=(Union&&) = default; 48 constexpr Union(_Tp&& _arg) in Union() function 52 constexpr explicit Union(std::in_place_index_t<_Np>, _Tp&&... _args) in Union() function 56 static Union make(_Tp&&... _args) { in make() [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk_platform-source/gen/include/aidl/android/aidl/tests/ |
D | Union.h | 28 class Union { 44 … constexpr bool _not_self = !std::is_same_v<std::remove_cv_t<std::remove_reference_t<_Tp>>, Union>; 46 Union() : _value(std::in_place_index<ns>, std::vector<int32_t>({})) { } in Union() function 47 Union(const Union&) = default; 48 Union(Union&&) = default; 49 Union& operator=(const Union&) = default; 50 Union& operator=(Union&&) = default; 54 constexpr Union(_Tp&& _arg) in Union() function 58 constexpr explicit Union(std::in_place_index_t<_Np>, _Tp&&... _args) in Union() function 62 static Union make(_Tp&&... _args) { in make() [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/ |
D | Union.h | 27 class Union : public ::android::Parcelable { 29 inline bool operator!=(const Union& rhs) const { 32 inline bool operator<(const Union& rhs) const { 35 inline bool operator<=(const Union& rhs) const { 38 inline bool operator==(const Union& rhs) const { 41 inline bool operator>(const Union& rhs) const { 44 inline bool operator>=(const Union& rhs) const { 59 … constexpr bool _not_self = !std::is_same_v<std::remove_cv_t<std::remove_reference_t<_Tp>>, Union>; 61 Union() : _value(std::in_place_index<ns>, ::std::vector<int32_t>({})) { } in Union() function 62 Union(const Union&) = default; [all …]
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-java-source/gen/android/aidl/loggable/ |
D | Union.java | 6 public final class Union implements android.os.Parcelable { class 14 public Union() { in Union() method in Union 20 private Union(android.os.Parcel _aidl_parcel) { in Union() method in Union 24 private Union(int _tag, Object _value) { in Union() method in Union 35 public static Union num(int _value) { in num() 36 return new Union(num, _value); in num() 50 public static Union str(java.lang.String _value) { in str() 51 return new Union(str, _value); in str() 63 …blic static final android.os.Parcelable.Creator<Union> CREATOR = new android.os.Parcelable.Creator… 65 public Union createFromParcel(android.os.Parcel _aidl_source) { [all …]
|
D | Union.java.d | 1 …system/tools/aidl/aidl_test_loggable_interface-java-source/gen/android/aidl/loggable/Union.java : \ 2 system/tools/aidl/tests/android/aidl/loggable/Union.aidl
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-java-source/gen/android/aidl/tests/ |
D | Union.java | 6 public final class Union implements android.os.Parcelable { class 19 public Union() { in Union() method in Union 25 private Union(android.os.Parcel _aidl_parcel) { in Union() method in Union 29 private Union(int _tag, Object _value) { in Union() method in Union 40 public static Union ns(int[] _value) { in ns() 41 return new Union(ns, _value); in ns() 55 public static Union n(int _value) { in n() 56 return new Union(n, _value); in n() 70 public static Union m(int _value) { in m() 71 return new Union(m, _value); in m() [all …]
|
D | Union.java.d | 1 …termediates/system/tools/aidl/aidl-test-interface-java-source/gen/android/aidl/tests/Union.java : \ 2 system/tools/aidl/tests/android/aidl/tests/Union.aidl \
|
/system/tools/aidl/tests/ |
D | aidl_test_client_parcelables.cpp | 39 using android::aidl::tests::Union; 157 Union original = Union::make<Union::ns>({1, 2, 3}); in TEST_F() 158 Union repeated, reversed; in TEST_F() 164 std::reverse(reversed.get<Union::ns>().begin(), reversed.get<Union::ns>().end()); in TEST_F() 170 EXPECT_EQ(Union::make<Union::ns>(), Union()); in TEST_F() 173 Union one_two_three = Union::make<Union::ns>({1, 2, 3}); in TEST_F() 176 EXPECT_EQ(Union::ns, one_two_three.getTag()); in TEST_F() 179 EXPECT_EQ(one_two_three, Union(std::vector{1, 2, 3})); in TEST_F() 184 EXPECT_EQ(Union::make<Union::ns>(3, 0), Union(std::in_place_index<Union::ns>, 3, 0)); in TEST_F() 186 Union one_two = one_two_three; in TEST_F() [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ |
D | Union.rs | 2 pub enum Union { enum 12 pub(crate) mod mangled { pub use super::Union as _7_android_4_aidl_5_tests_5_Union; } 13 impl Default for Union { implementation 18 impl binder::parcel::Serialize for Union { implementation 23 impl binder::parcel::SerializeArray for Union {} implementation 24 impl binder::parcel::SerializeOption for Union { implementation 64 impl binder::parcel::Deserialize for Union { implementation 71 impl binder::parcel::DeserializeArray for Union {} implementation 72 impl binder::parcel::DeserializeOption for Union { implementation
|
D | Union.rs.d | 1 …intermediates/system/tools/aidl/aidl-test-interface-rust-source/gen/android/aidl/tests/Union.rs : \ 2 system/tools/aidl/tests/android/aidl/tests/Union.aidl \
|
/system/chre/host/common/ |
D | host_protocol_host.cc | 102 finalize(builder, fbs::ChreMessage::HubInfoRequest, request.Union()); in encodeHubInfoRequest() 116 finalize(builder, fbs::ChreMessage::NanoappListRequest, request.Union()); in encodeNanoappListRequest() 124 finalize(builder, fbs::ChreMessage::UnloadNanoappRequest, request.Union()); in encodeUnloadNanoappRequest() 130 finalize(builder, fbs::ChreMessage::TimeSyncMessage, request.Union()); in encodeTimeSyncMessage() 135 finalize(builder, fbs::ChreMessage::DebugDumpRequest, request.Union()); in encodeDebugDumpRequest() 185 finalize(builder, fbs::ChreMessage::LoadNanoappRequest, request.Union()); in encodeLoadNanoappRequestForBinary() 198 finalize(builder, fbs::ChreMessage::LoadNanoappRequest, request.Union()); in encodeLoadNanoappRequestForFile() 207 notification.Union()); in encodeSettingChangeNotification() 213 finalize(builder, fbs::ChreMessage::SelfTestRequest, request.Union()); in encodeSelfTestRequest()
|
/system/tools/aidl/tests/android/aidl/tests/ |
D | ICppJavaTests.aidl | 23 import android.aidl.tests.Union; 39 Union ReverseUnion(in Union input, out Union repeated); in ReverseUnion()
|
/system/chre/platform/shared/ |
D | host_protocol_chre.cc | 149 finalize(builder, fbs::ChreMessage::HubInfoResponse, response.Union(), in encodeHubInfoResponse() 172 finalize(builder, fbs::ChreMessage::NanoappListResponse, response.Union(), in finishNanoappListResponse() 183 finalize(builder, fbs::ChreMessage::LoadNanoappResponse, response.Union(), in encodeLoadNanoappResponse() 192 finalize(builder, fbs::ChreMessage::UnloadNanoappResponse, response.Union(), in encodeUnloadNanoappResponse() 202 finalize(builder, fbs::ChreMessage::LogMessage, message.Union()); in encodeLogMessages() 213 finalize(builder, fbs::ChreMessage::LogMessageV2, message.Union()); in encodeLogMessagesV2() 223 finalize(builder, fbs::ChreMessage::DebugDumpData, message.Union(), in encodeDebugDumpData() 232 finalize(builder, fbs::ChreMessage::DebugDumpResponse, response.Union(), in encodeDebugDumpResponse() 238 finalize(builder, fbs::ChreMessage::TimeSyncRequest, request.Union()); in encodeTimeSyncRequest() 245 request.Union()); in encodeLowPowerMicAccessRequest() [all …]
|
/system/tools/aidl/tests/android/aidl/loggable/ |
D | Data.aidl | 4 import android.aidl.loggable.Union; 9 Union nestedUnion;
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-ndk-source/gen/android/aidl/loggable/ |
D | Union.cpp.d | 1 …s/system/tools/aidl/aidl_test_loggable_interface-ndk-source/gen/android/aidl/loggable/Union.cpp : \ 2 system/tools/aidl/tests/android/aidl/loggable/Union.aidl
|
D | Union.cpp | 9 const char* Union::descriptor = "android.aidl.loggable.Union"; 11 binder_status_t Union::readFromParcel(const AParcel* _parcel) { in readFromParcel() 39 binder_status_t Union::writeToParcel(AParcel* _parcel) const { in writeToParcel()
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-ndk_platform-source/gen/android/aidl/loggable/ |
D | Union.cpp.d | 1 …tools/aidl/aidl_test_loggable_interface-ndk_platform-source/gen/android/aidl/loggable/Union.cpp : \ 2 system/tools/aidl/tests/android/aidl/loggable/Union.aidl
|
D | Union.cpp | 9 const char* Union::descriptor = "android.aidl.loggable.Union"; 11 binder_status_t Union::readFromParcel(const AParcel* _parcel) { in readFromParcel() 39 binder_status_t Union::writeToParcel(AParcel* _parcel) const { in writeToParcel()
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-cpp-source/gen/android/aidl/loggable/ |
D | Union.cpp.d | 1 …s/system/tools/aidl/aidl_test_loggable_interface-cpp-source/gen/android/aidl/loggable/Union.cpp : \ 2 system/tools/aidl/tests/android/aidl/loggable/Union.aidl
|
/system/tools/aidl/tests/android/aidl/tests/immutable/ |
D | Foo.aidl | 20 import android.aidl.tests.immutable.Union; 29 Union u;
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/ |
D | Union.cpp.d | 1 …intermediates/system/tools/aidl/aidl-test-interface-cpp-source/gen/android/aidl/tests/Union.cpp : \ 2 system/tools/aidl/tests/android/aidl/tests/Union.aidl \
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk_platform-source/gen/android/aidl/tests/ |
D | Union.cpp.d | 1 …ates/system/tools/aidl/aidl-test-interface-ndk_platform-source/gen/android/aidl/tests/Union.cpp : \ 2 system/tools/aidl/tests/android/aidl/tests/Union.aidl \
|