/system/tools/aidl/tests/ |
D | aidl_test_client_primitives.cpp | 40 using android::aidl::tests::ITestService; 47 void DoTest(Status (ITestService::*func)(T, U*), V input) { in DoTest() 55 void DoTest(Status (ITestService::*func)(const std::vector<T>&, std::vector<T>*, std::vector<T>*), in DoTest() 71 DoTest(&ITestService::RepeatBoolean, true); in TEST_F() 75 DoTest(&ITestService::RepeatByte, int8_t{-128}); in TEST_F() 79 DoTest(&ITestService::RepeatChar, char16_t{'A'}); in TEST_F() 83 DoTest(&ITestService::RepeatInt, int32_t{1 << 30}); in TEST_F() 87 DoTest(&ITestService::RepeatLong, int64_t{1LL << 60}); in TEST_F() 91 DoTest(&ITestService::RepeatFloat, float{1.0f / 3.0f}); in TEST_F() 95 DoTest(&ITestService::RepeatDouble, double{1.0 / 3.0}); in TEST_F() [all …]
|
D | aidl_test_client_defaultimpl.cpp | 21 using android::aidl::tests::ITestService; 42 std::unique_ptr<ITestService> defImpl = std::make_unique<Def>(); in TEST_F() 43 auto ret = ITestService::setDefaultImpl(std::move(defImpl)); in TEST_F()
|
D | aidl_test_client.h | 28 using android::aidl::tests::ITestService; 37 ASSERT_EQ(OK, getService(ITestService::descriptor, &service)); in SetUp() 54 sp<ITestService> service;
|
D | aidl_test_client_nullables.cpp | 37 using android::aidl::tests::ITestService; 47 void DoTest(Status (ITestService::*func)(const std::optional<T>&, std::optional<T>*), in DoTest() 63 DoTest(&ITestService::RepeatNullableIntArray, std::make_optional(std::vector<int32_t>{1, 2, 3})); in TEST_F() 67 DoTest(&ITestService::RepeatNullableByteEnumArray, in TEST_F() 72 DoTest(&ITestService::RepeatNullableIntEnumArray, in TEST_F() 77 DoTest(&ITestService::RepeatNullableLongEnumArray, in TEST_F() 82 DoTest(&ITestService::RepeatNullableString, std::optional<String16>("Blooob")); in TEST_F() 94 DoTest(&ITestService::RepeatNullableStringList, std::make_optional(input)); in TEST_F()
|
D | aidl_test_client_utf8_strings.cpp | 34 using android::aidl::tests::ITestService; 45 ITestService::STRING_TEST_CONSTANT_UTF8(), in TEST_F() 88 Status (ITestService::*func)(const std::optional<std::vector<std::optional<std::string>>>&, in DoTest() 98 if (func == &ITestService::ReverseUtf8CppStringList && backend == BackendType::JAVA) { in DoTest() 143 DoTest(&ITestService::ReverseUtf8CppStringList); in TEST_F() 147 DoTest(&ITestService::ReverseNullableUtf8CppString); in TEST_F()
|
D | aidl_test_client_ndk_loggable_interface.cpp | 33 using aidl::android::aidl::tests::ITestService; 50 std::shared_ptr<ITestService> service = getService<ITestService>(); in TEST_F()
|
/system/tools/aidl/tests/rust/ |
D | test_client.rs | 21 use aidl_test_interface::aidl::android::aidl::tests::ITestService::{ 39 fn get_test_service() -> binder::Strong<dyn ITestService::ITestService> { in get_test_service() 40 binder::get_interface(<BpTestService as ITestService::ITestService>::get_descriptor()) in get_test_service() 46 assert_eq!(ITestService::A1, 1); in test_constants() 47 assert_eq!(ITestService::A2, 1); in test_constants() 48 assert_eq!(ITestService::A3, 1); in test_constants() 49 assert_eq!(ITestService::A4, 1); in test_constants() 50 assert_eq!(ITestService::A5, 1); in test_constants() 51 assert_eq!(ITestService::A6, 1); in test_constants() 52 assert_eq!(ITestService::A7, 1); in test_constants() [all …]
|
D | test_service.rs | 19 use aidl_test_interface::aidl::android::aidl::tests::ITestService::{ 119 impl ITestService::ITestService for TestService { 340 let service_name = <BpTestService as ITestService::ITestService>::get_descriptor(); in main()
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk_platform-source/gen/android/aidl/tests/ |
D | ITestService.cpp | 1010 static AIBinder_Class* _g_aidl_clazz = ::ndk::ICInterface::defineClass(ITestService::descriptor, _a… 1039 if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && ITestService::getDefaultImpl()) { in UnimplementedMethod() 1040 _aidl_status = ITestService::getDefaultImpl()->UnimplementedMethod(in_arg, _aidl_return); in UnimplementedMethod() 1077 if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && ITestService::getDefaultImpl()) { in Deprecated() 1078 _aidl_status = ITestService::getDefaultImpl()->Deprecated(); in Deprecated() 1112 if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && ITestService::getDefaultImpl()) { in TestOneway() 1113 _aidl_status = ITestService::getDefaultImpl()->TestOneway(); in TestOneway() 1146 if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && ITestService::getDefaultImpl()) { in RepeatBoolean() 1147 _aidl_status = ITestService::getDefaultImpl()->RepeatBoolean(in_token, _aidl_return); in RepeatBoolean() 1187 if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && ITestService::getDefaultImpl()) { in RepeatByte() [all …]
|
D | ITestService.cpp.d | 1 …stem/tools/aidl/aidl-test-interface-ndk_platform-source/gen/android/aidl/tests/ITestService.cpp : \ 2 system/tools/aidl/tests/android/aidl/tests/ITestService.aidl \
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/ |
D | ITestService.cpp | 12 const ::android::String16& ITestService::STRING_TEST_CONSTANT() { in STRING_TEST_CONSTANT() 17 const ::android::String16& ITestService::STRING_TEST_CONSTANT2() { in STRING_TEST_CONSTANT2() 22 const ::std::string& ITestService::STRING_TEST_CONSTANT_UTF8() { in STRING_TEST_CONSTANT_UTF8() 44 : BpInterface<ITestService>(_aidl_impl){ in BpTestService() 63 …if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && ITestService::getDefaultImpl())… in UnimplementedMethod() 64 return ITestService::getDefaultImpl()->UnimplementedMethod(arg, _aidl_return); in UnimplementedMethod() 97 …if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && ITestService::getDefaultImpl())… in Deprecated() 98 return ITestService::getDefaultImpl()->Deprecated(); in Deprecated() 127 …if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && ITestService::getDefaultImpl())… in TestOneway() 128 return ITestService::getDefaultImpl()->TestOneway(); in TestOneway() [all …]
|
D | ITestService.cpp.d | 1 …diates/system/tools/aidl/aidl-test-interface-cpp-source/gen/android/aidl/tests/ITestService.cpp : \ 2 system/tools/aidl/tests/android/aidl/tests/ITestService.aidl \
|
/system/tools/aidl/tests/java/src/android/aidl/tests/ |
D | NullableTests.java | 40 private ITestService mService; 45 IBinder binder = ServiceManager.waitForService(ITestService.class.getName()); in setUp() 47 mService = ITestService.Stub.asInterface(binder); in setUp()
|
D | TestServiceClient.java | 30 import android.aidl.tests.ITestService; 66 private ITestService service; 71 IBinder binder = ServiceManager.waitForService(ITestService.class.getName()); in setUp() 73 service = ITestService.Stub.asInterface(binder); in setUp() 113 int query[] = {ITestService.TEST_CONSTANT, in testConstRepeat() 114 ITestService.TEST_CONSTANT2, in testConstRepeat() 115 ITestService.TEST_CONSTANT3, in testConstRepeat() 116 ITestService.TEST_CONSTANT4, in testConstRepeat() 117 ITestService.TEST_CONSTANT5, in testConstRepeat() 118 ITestService.TEST_CONSTANT6, in testConstRepeat() [all …]
|
D | ExtensionTests.java | 60 private ITestService mService; 65 IBinder binder = ServiceManager.waitForService(ITestService.class.getName()); in setUp() 67 mService = ITestService.Stub.asInterface(binder); in setUp()
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ |
D | ITestService.rs.d | 1 …diates/system/tools/aidl/aidl-test-interface-rust-source/gen/android/aidl/tests/ITestService.rs : \ 2 system/tools/aidl/tests/android/aidl/tests/ITestService.aidl \
|
D | ITestService.rs | 6 ITestService["android.aidl.tests.ITestService"] { 12 pub trait ITestService: binder::Interface + Send { trait 360 pub(crate) mod mangled { pub use super::ITestService as _7_android_4_aidl_5_tests_12_ITestService; } 361 impl ITestService for BpTestService { 369 if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { in UnimplementedMethod() 385 if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { in Deprecated() 400 if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { in TestOneway() 414 if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { in RepeatBoolean() 431 if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { in RepeatByte() 448 if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { in RepeatChar() [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-java-source/gen/android/aidl/tests/ |
D | ITestService.java.d | 1 …ates/system/tools/aidl/aidl-test-interface-java-source/gen/android/aidl/tests/ITestService.java : \ 2 system/tools/aidl/tests/android/aidl/tests/ITestService.aidl \
|
D | ITestService.java | 5 public interface ITestService extends android.os.IInterface interface 8 public static class Default implements android.aidl.tests.ITestService 239 …lic static abstract class Stub extends android.os.Binder implements android.aidl.tests.ITestService 250 public static android.aidl.tests.ITestService asInterface(android.os.IBinder obj) in asInterface() 256 if (((iin!=null)&&(iin instanceof android.aidl.tests.ITestService))) { in asInterface() 257 return ((android.aidl.tests.ITestService)iin); in asInterface() 259 return new android.aidl.tests.ITestService.Stub.Proxy(obj); in asInterface() 943 private static class Proxy implements android.aidl.tests.ITestService 2267 public static android.aidl.tests.ITestService sDefaultImpl; 2320 public static boolean setDefaultImpl(android.aidl.tests.ITestService impl) { in setDefaultImpl() [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk_platform-source/gen/include/aidl/android/aidl/tests/ |
D | BnTestService.h | 11 class BnTestService : public ::ndk::BnCInterface<ITestService> {
|
D | ITestService.h | 28 class ITestService : public ::ndk::ICInterface { 31 ITestService(); 32 virtual ~ITestService(); 160 static std::shared_ptr<ITestService> fromBinder(const ::ndk::SpAIBinder& binder); 161 …static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<ITestService>& instanc… 162 …static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<ITestService>* instan… 163 static bool setDefaultImpl(const std::shared_ptr<ITestService>& impl); 164 static const std::shared_ptr<ITestService>& getDefaultImpl(); 217 static std::shared_ptr<ITestService> default_impl; 219 class ITestServiceDefault : public ITestService {
|
D | BpTestService.h | 11 class BpTestService : public ::ndk::BpCInterface<ITestService> {
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/ |
D | BnTestService.h | 12 class BnTestService : public ::android::BnInterface<ITestService> {
|
/system/tools/aidl/tests/java/src/android/aidl/service/ |
D | TestServiceServer.java | 27 import android.aidl.tests.ITestService; 53 public class TestServiceServer extends ITestService.Stub { 56 ServiceManager.addService(ITestService.class.getName(), myServer); in main()
|
/system/tools/aidl/tests/android/aidl/tests/ |
D | ITestService.aidl | 30 interface ITestService { interface
|