aboutsummaryrefslogtreecommitdiff
path: root/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl
diff options
context:
space:
mode:
authorElie Kheirallah <khei@google.com>2023-03-30 18:10:12 +0000
committerElie Kheirallah <khei@google.com>2023-04-11 21:07:06 +0000
commit2c596b002883265dae2b51caf87e83a087d400a0 (patch)
tree3e68573dcb8a34ec4e7a1041b3ecb78986c5466e /tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl
parentf79602f2717503cbdf2df4fa99609aeb826922aa (diff)
downloadaidl-2c596b002883265dae2b51caf87e83a087d400a0.tar.gz
aidl: add support for float/double constantsandroid-u-beta-1-gpl
support for 'const float foo = 1.1f' support for 'const double bar = 1.1' Bug: 251286924 Test: atest aidl_unittests aidl_integration_test Change-Id: Ia3bfc93e0f2fcf5d065ef278ce55ea8e9848e95f
Diffstat (limited to 'tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl')
-rw-r--r--tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/ITestService.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/ITestService.h b/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/ITestService.h
index ed0afc32..cbf30fcc 100644
--- a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/ITestService.h
+++ b/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/ITestService.h
@@ -346,6 +346,22 @@ public:
enum : int64_t { LONG_TEST_CONSTANT = 1099511627776L };
static const ::android::String16& STRING_TEST_CONSTANT();
static const ::android::String16& STRING_TEST_CONSTANT2();
+ static constexpr float FLOAT_TEST_CONSTANT = 1.000000f;
+ static constexpr float FLOAT_TEST_CONSTANT2 = -1.000000f;
+ static constexpr float FLOAT_TEST_CONSTANT3 = 1.000000f;
+ static constexpr float FLOAT_TEST_CONSTANT4 = 2.200000f;
+ static constexpr float FLOAT_TEST_CONSTANT5 = -2.200000f;
+ static constexpr float FLOAT_TEST_CONSTANT6 = -0.000000f;
+ static constexpr float FLOAT_TEST_CONSTANT7 = 0.000000f;
+ static constexpr double DOUBLE_TEST_CONSTANT = 1.000000;
+ static constexpr double DOUBLE_TEST_CONSTANT2 = -1.000000;
+ static constexpr double DOUBLE_TEST_CONSTANT3 = 1.000000;
+ static constexpr double DOUBLE_TEST_CONSTANT4 = 2.200000;
+ static constexpr double DOUBLE_TEST_CONSTANT5 = -2.200000;
+ static constexpr double DOUBLE_TEST_CONSTANT6 = -0.000000;
+ static constexpr double DOUBLE_TEST_CONSTANT7 = 0.000000;
+ static constexpr double DOUBLE_TEST_CONSTANT8 = 1.100000;
+ static constexpr double DOUBLE_TEST_CONSTANT9 = -1.100000;
static const ::std::string& STRING_TEST_CONSTANT_UTF8();
enum : int32_t { A1 = 1 };
enum : int32_t { A2 = 1 };