Home
last modified time | relevance | path

Searched refs:sp (Results 1 – 25 of 535) sorted by relevance

12345678910>>...22

/system/core/libutils/include/utils/
DStrongPointer.h31 class sp {
33 inline constexpr sp() : m_ptr(nullptr) { } in sp() function
51 static inline sp<T> make(Args&&... args);
57 static inline sp<T> fromExisting(T* other);
62 sp(std::nullptr_t) : sp() {} in sp() function
64 sp(T* other); // NOLINT(implicit)
66 sp(U* other); // NOLINT(implicit)
67 sp& operator=(T* other);
69 sp& operator=(U* other);
72 sp(const sp<T>& other);
[all …]
/system/core/libutils/binder/include/utils/
DStrongPointer.h31 class sp {
33 inline constexpr sp() : m_ptr(nullptr) { } in sp() function
51 static inline sp<T> make(Args&&... args);
57 static inline sp<T> fromExisting(T* other);
62 sp(std::nullptr_t) : sp() {} in sp() function
64 sp(T* other); // NOLINT(implicit)
66 sp(U* other); // NOLINT(implicit)
67 sp& operator=(T* other);
69 sp& operator=(U* other);
72 sp(const sp<T>& other);
[all …]
/system/unwinding/libunwindstack/tests/
DUnwindOfflineTest.cpp130 EXPECT_EQ(0xe9c866f8U, unwinder.frames()[0].sp); in TEST_F()
132 EXPECT_EQ(0xe9c86728U, unwinder.frames()[1].sp); in TEST_F()
134 EXPECT_EQ(0xe9c86730U, unwinder.frames()[2].sp); in TEST_F()
136 EXPECT_EQ(0xe9c86778U, unwinder.frames()[3].sp); in TEST_F()
174 EXPECT_EQ(0xd8fe6930U, unwinder.frames()[0].sp); in TEST_F()
176 EXPECT_EQ(0xd8fe6958U, unwinder.frames()[1].sp); in TEST_F()
198 EXPECT_EQ(0x7fe0d84040U, unwinder.frames()[0].sp); in TEST_F()
200 EXPECT_EQ(0x7fe0d84070U, unwinder.frames()[1].sp); in TEST_F()
202 EXPECT_EQ(0x7fe0d84080U, unwinder.frames()[2].sp); in TEST_F()
204 EXPECT_EQ(0x7fe0d84090U, unwinder.frames()[3].sp); in TEST_F()
[all …]
/system/libhidl/transport/include/hidl/
DHidlTransportSupport.h84 bool setMinSchedulerPolicy(const sp<::android::hidl::base::V1_0::IBase>& service,
92 SchedPrio getMinSchedulerPolicy(const sp<::android::hidl::base::V1_0::IBase>& service);
104 bool setRequestingSid(const sp<::android::hidl::base::V1_0::IBase>& service, bool requesting);
110 bool getRequestingSid(const sp<::android::hidl::base::V1_0::IBase>& service);
117 bool interfacesEqual(const sp<::android::hidl::base::V1_0::IBase>& left,
118 const sp<::android::hidl::base::V1_0::IBase>& right);
134 Return<sp<IChild>> castInterface(sp<IParent> parent, const char* childIndicator, bool emitError) { in castInterface()
143 ? details::StatusOf<bool, sp<IChild>>(canCastRet) in castInterface()
144 : Return<sp<IChild>>(sp<IChild>(nullptr)); in castInterface()
148 return sp<IChild>(nullptr); // cast failed. in castInterface()
[all …]
/system/update_engine/libbinderwrapper/include/binderwrapper/
Dstub_binder_wrapper.h74 const std::vector<sp<BBinder>>& local_binders() const { in local_binders()
85 const sp<IBinder>& binder);
89 sp<IBinder> GetRegisteredService(const std::string& service_name) const;
92 void NotifyAboutBinderDeath(const sp<IBinder>& binder);
95 sp<IBinder> GetService(const std::string& service_name) override;
97 const sp<IBinder>& binder) override;
98 sp<BBinder> CreateLocalBinder() override;
99 bool RegisterForDeathNotifications(const sp<IBinder>& binder,
101 bool UnregisterForDeathNotifications(const sp<IBinder>& binder) override;
106 using ServiceMap = std::map<std::string, sp<IBinder>>;
[all …]
/system/tools/aidl/tests/
Daidl_test_client_delegate.cpp35 CustomDelegator(sp<ITestService>& impl) : ITestServiceDelegator(impl) {} in CustomDelegator()
45 auto delegator = sp<ITestServiceDelegator>::make(service); in TEST_F()
54 auto delegator = sp<CustomDelegator>::make(service); in TEST_F()
63 auto delegator = sp<ITestServiceDelegator>::make(service); in TEST_F()
65 sp<INamedCallback> callback; in TEST_F()
76 auto delegator = sp<ITestServiceDelegator>::make(service); in TEST_F()
77 sp<ITestService> impl = delegator->getImpl(); in TEST_F()
87 sp<ITestServiceDelegator> delegator = sp<ITestServiceDelegator>::cast(delegate(service)); in TEST_F()
90 sp<ITestService> service2 = delegator->getImpl(); in TEST_F()
93 auto delegator2 = delegate(sp<ITestService>::cast(delegator)); in TEST_F()
[all …]
/system/tools/aidl/build/
Daidl_rust_source_provider.go51 func (sp *aidlRustSourceProvider) GenerateSource(ctx rust.ModuleContext, _ rust.PathDeps) android.P…
52 sourceStem := proptools.String(sp.BaseSourceProvider.Properties.Source_stem)
55 aidlGenModule := ctx.GetDirectDepWithTag(sp.properties.SourceGen, aidlRustSourceTag)
64 importFlags := make([]string, len(sp.properties.Imports))
65 for i, dep := range trimVersionSuffixInList(sp.properties.Imports) {
87 sp.BaseSourceProvider.OutputFiles = android.Paths{topLevelOutputFile}
91 func (sp *aidlRustSourceProvider) SourceProviderProps() []interface{} {
92 return append(sp.BaseSourceProvider.SourceProviderProps(),
93 &sp.properties)
96 func (sp *aidlRustSourceProvider) SourceProviderDeps(ctx rust.DepsContext, deps rust.Deps) rust.Dep…
[all …]
/system/update_engine/libbinderwrapper/
Dstub_binder_wrapper.cc33 const sp<IBinder>& binder) { in SetBinderForService()
37 sp<IBinder> StubBinderWrapper::GetRegisteredService( in GetRegisteredService()
40 return it != registered_services_.end() ? it->second : sp<IBinder>(); in GetRegisteredService()
43 void StubBinderWrapper::NotifyAboutBinderDeath(const sp<IBinder>& binder) { in NotifyAboutBinderDeath()
48 sp<IBinder> StubBinderWrapper::GetService(const std::string& service_name) { in GetService()
50 return it != services_to_return_.end() ? it->second : sp<IBinder>(); in GetService()
54 const sp<IBinder>& binder) { in RegisterService()
59 sp<BBinder> StubBinderWrapper::CreateLocalBinder() { in CreateLocalBinder()
60 sp<BBinder> binder(new BBinder()); in CreateLocalBinder()
65 bool StubBinderWrapper::RegisterForDeathNotifications(const sp<IBinder>& binder, in RegisterForDeathNotifications()
[all …]
Dreal_binder_wrapper.cc51 sp<IBinder> RealBinderWrapper::GetService(const std::string& service_name) { in GetService()
52 sp<IServiceManager> service_manager = defaultServiceManager(); in GetService()
55 return sp<IBinder>(); in GetService()
57 sp<IBinder> binder = in GetService()
65 const sp<IBinder>& binder) { in RegisterService()
66 sp<IServiceManager> service_manager = defaultServiceManager(); in RegisterService()
81 sp<BBinder> RealBinderWrapper::CreateLocalBinder() { in CreateLocalBinder()
82 return sp<BBinder>(new BBinder()); in CreateLocalBinder()
85 bool RealBinderWrapper::RegisterForDeathNotifications(const sp<IBinder>& binder, in RegisterForDeathNotifications()
87 sp<DeathRecipient> recipient(new DeathRecipient(callback)); in RegisterForDeathNotifications()
[all …]
Dreal_binder_wrapper.h35 sp<IBinder> GetService(const std::string& service_name) override;
37 const sp<IBinder>& binder) override;
38 sp<BBinder> CreateLocalBinder() override;
39 bool RegisterForDeathNotifications(const sp<IBinder>& binder,
41 bool UnregisterForDeathNotifications(const sp<IBinder>& binder) override;
50 std::map<sp<IBinder>, sp<DeathRecipient>> death_recipients_;
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/
DListOfInterfaces.h54 explicit BpEmptyInterface(const ::android::sp<::android::IBinder>& _aidl_impl);
65 …explicit IEmptyInterfaceDelegator(const ::android::sp<IEmptyInterface> &impl) : _aidl_delegate(imp… in IEmptyInterfaceDelegator()
67 ::android::sp<IEmptyInterface> getImpl() { return _aidl_delegate; } in getImpl()
69 ::android::sp<IEmptyInterface> _aidl_delegate;
77sp<::android::aidl::tests::ListOfInterfaces::IEmptyInterface>& iface, const ::android::sp<::androi…
85sp<::android::aidl::tests::ListOfInterfaces::IEmptyInterface>& /*iface*/, const ::android::sp<::an… in methodWithInterfaces()
91 explicit BpMyInterface(const ::android::sp<::android::IBinder>& _aidl_impl);
93sp<::android::aidl::tests::ListOfInterfaces::IEmptyInterface>& iface, const ::android::sp<::androi…
104 … explicit IMyInterfaceDelegator(const ::android::sp<IMyInterface> &impl) : _aidl_delegate(impl) {} in IMyInterfaceDelegator()
106 ::android::sp<IMyInterface> getImpl() { return _aidl_delegate; } in getImpl()
[all …]
DArrayOfInterfaces.h54 explicit BpEmptyInterface(const ::android::sp<::android::IBinder>& _aidl_impl);
65 …explicit IEmptyInterfaceDelegator(const ::android::sp<IEmptyInterface> &impl) : _aidl_delegate(imp… in IEmptyInterfaceDelegator()
67 ::android::sp<IEmptyInterface> getImpl() { return _aidl_delegate; } in getImpl()
69 ::android::sp<IEmptyInterface> _aidl_delegate;
77sp<::android::aidl::tests::ArrayOfInterfaces::IEmptyInterface>& iface, const ::android::sp<::andro…
85sp<::android::aidl::tests::ArrayOfInterfaces::IEmptyInterface>& /*iface*/, const ::android::sp<::a… in methodWithInterfaces()
91 explicit BpMyInterface(const ::android::sp<::android::IBinder>& _aidl_impl);
93sp<::android::aidl::tests::ArrayOfInterfaces::IEmptyInterface>& iface, const ::android::sp<::andro…
104 … explicit IMyInterfaceDelegator(const ::android::sp<IMyInterface> &impl) : _aidl_delegate(impl) {} in IMyInterfaceDelegator()
106 ::android::sp<IMyInterface> getImpl() { return _aidl_delegate; } in getImpl()
[all …]
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/
DArrayOfInterfaces.h54 explicit BpEmptyInterface(const ::android::sp<::android::IBinder>& _aidl_impl);
65 …explicit IEmptyInterfaceDelegator(const ::android::sp<IEmptyInterface> &impl) : _aidl_delegate(imp… in IEmptyInterfaceDelegator()
67 ::android::sp<IEmptyInterface> getImpl() { return _aidl_delegate; } in getImpl()
69 ::android::sp<IEmptyInterface> _aidl_delegate;
77sp<::android::aidl::tests::ArrayOfInterfaces::IEmptyInterface>& iface, const ::android::sp<::andro…
85sp<::android::aidl::tests::ArrayOfInterfaces::IEmptyInterface>& /*iface*/, const ::android::sp<::a… in methodWithInterfaces()
91 explicit BpMyInterface(const ::android::sp<::android::IBinder>& _aidl_impl);
93sp<::android::aidl::tests::ArrayOfInterfaces::IEmptyInterface>& iface, const ::android::sp<::andro…
104 … explicit IMyInterfaceDelegator(const ::android::sp<IMyInterface> &impl) : _aidl_delegate(impl) {} in IMyInterfaceDelegator()
106 ::android::sp<IMyInterface> getImpl() { return _aidl_delegate; } in getImpl()
[all …]
DListOfInterfaces.h54 explicit BpEmptyInterface(const ::android::sp<::android::IBinder>& _aidl_impl);
65 …explicit IEmptyInterfaceDelegator(const ::android::sp<IEmptyInterface> &impl) : _aidl_delegate(imp… in IEmptyInterfaceDelegator()
67 ::android::sp<IEmptyInterface> getImpl() { return _aidl_delegate; } in getImpl()
69 ::android::sp<IEmptyInterface> _aidl_delegate;
77sp<::android::aidl::tests::ListOfInterfaces::IEmptyInterface>& iface, const ::android::sp<::androi…
85sp<::android::aidl::tests::ListOfInterfaces::IEmptyInterface>& /*iface*/, const ::android::sp<::an… in methodWithInterfaces()
91 explicit BpMyInterface(const ::android::sp<::android::IBinder>& _aidl_impl);
93sp<::android::aidl::tests::ListOfInterfaces::IEmptyInterface>& iface, const ::android::sp<::androi…
104 … explicit IMyInterfaceDelegator(const ::android::sp<IMyInterface> &impl) : _aidl_delegate(impl) {} in IMyInterfaceDelegator()
106 ::android::sp<IMyInterface> getImpl() { return _aidl_delegate; } in getImpl()
[all …]
/system/core/libutils/binder/
DStrongPointer_test.cpp56 sp<TypeParam> sp1 = sp<TypeParam>::make(&isDeleted); in TYPED_TEST()
60 sp<TypeParam> sp2 = std::move(sp1); in TYPED_TEST()
70 sp<TypeParam> sp2 = std::move(sp1); in TYPED_TEST()
76 sp<TypeParam> foo; in TYPED_TEST()
83 sp<TypeParam> foo = sp<TypeParam>::make(&isDeleted); in TYPED_TEST()
92 sp<TypeParam> foo = sp<TypeParam>::make(&isDeleted); in TYPED_TEST()
94 auto foo2 = sp<TypeParam>::fromExisting(foo.get()); in TYPED_TEST()
106 EXPECT_DEATH(sp<TypeParam>::fromExisting(foo), ""); in TYPED_TEST()
114 sp<TypeParam> sp1 = sp<TypeParam>::make(&isDeleted); in TYPED_TEST()
/system/extras/simpleperf/
DCallChainJoiner_test.cpp42 std::vector<uint64_t> sp = {0x1}; in TEST() local
43 ASSERT_TRUE(JoinCallChain(cache, 0, ip, sp, ip, sp)); in TEST()
44 ASSERT_TRUE(JoinCallChain(cache, 1, ip, sp, ip, sp)); in TEST()
47 ASSERT_NE(cache.FindNode(0, ip[0], sp[0]), nullptr); in TEST()
48 ASSERT_NE(cache.FindNode(1, ip[0], sp[0]), nullptr); in TEST()
52 ASSERT_TRUE(JoinCallChain(cache, 0, ip2, sp, ip2, sp)); in TEST()
55 ASSERT_EQ(cache.FindNode(0, ip[0], sp[0]), nullptr); in TEST()
56 ASSERT_NE(cache.FindNode(0, ip2[0], sp[0]), nullptr); in TEST()
57 ASSERT_NE(cache.FindNode(1, ip[0], sp[0]), nullptr); in TEST()
64 ASSERT_EQ(cache.FindNode(1, ip[0], sp[0]), nullptr); in TEST()
[all …]
/system/core/libutils/
DLooper_fuzz.cpp27 using android::sp;
40 std::vector<std::function<void(FuzzedDataProvider*, sp<Looper>, Pipe)>> operations = {
41 [](FuzzedDataProvider* dataProvider, sp<Looper> looper, Pipe) -> void { in __anon5d2bf8920102()
44 [](FuzzedDataProvider* dataProvider, sp<Looper> looper, Pipe) -> void { in __anon5d2bf8920202()
48 [](FuzzedDataProvider* dataProvider, sp<Looper> looper, Pipe pipeObj) -> void { in __anon5d2bf8920302()
53 [](FuzzedDataProvider* dataProvider, sp<Looper> looper, Pipe pipeObj) -> void { in __anon5d2bf8920402()
58 [](FuzzedDataProvider* dataProvider, sp<Looper> looper, Pipe pipeObj) -> void { in __anon5d2bf8920502()
63 [](FuzzedDataProvider* dataProvider, sp<Looper> looper, Pipe pipeObj) -> void { in __anon5d2bf8920602()
68 [](FuzzedDataProvider*, sp<Looper> looper, Pipe) -> void { looper->wake(); }, in __anon5d2bf8920702()
69 [](FuzzedDataProvider*, sp<Looper>, Pipe pipeObj) -> void { pipeObj.writeSignal(); }}; in __anon5d2bf8920802()
[all …]
/system/netd/server/
DOemNetdListener.cpp26 ::android::sp<::android::IBinder> OemNetdListener::getListener() { in getListener()
28 static ::android::sp<OemNetdListener> listener = ::android::sp<OemNetdListener>::make(); in getListener()
29 static ::android::sp<::android::IBinder> sIBinder = ::android::IInterface::asBinder(listener); in getListener()
39 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) { in registerOemUnsolicitedEventListener()
46 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) { in registerOemUnsolicitedEventListenerInternal()
53 ::android::sp<IOemNetdUnsolicitedEventListener> listener) in registerOemUnsolicitedEventListenerInternal()
62 ::android::sp<IOemNetdUnsolicitedEventListener> mListener; in registerOemUnsolicitedEventListenerInternal()
64 ::android::sp<::android::IBinder::DeathRecipient> deathRecipient = in registerOemUnsolicitedEventListenerInternal()
73 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) { in unregisterOemUnsolicitedEventListenerInternal()
/system/hwservicemanager/
Dservice.cpp42 using android::sp;
69 static sp<HwBinderCallback> setupTo(const sp<Looper>& looper) { in setupTo()
70 sp<HwBinderCallback> cb = new HwBinderCallback; in setupTo()
98 …static sp<ClientCallbackCallback> setupTo(const sp<Looper>& looper, const sp<ServiceManager>& mana… in setupTo()
99 sp<ClientCallbackCallback> cb = new ClientCallbackCallback(manager); in setupTo()
139 ClientCallbackCallback(const sp<ServiceManager>& manager) : mManager(manager) {} in ClientCallbackCallback()
140 sp<ServiceManager> mManager;
164 sp<ServiceManager> manager = new ServiceManager(); in main()
173 sp<TokenManager> tokenManager; in main()
185 sp<IBinder> binder = toBinder<IServiceManager>(manager); in main()
[all …]
DHidlService.h38 using ::android::sp;
43 const sp<IBase> &service,
59 sp<IBase> getService() const;
60 void setService(sp<IBase> service, pid_t pid);
65 void addListener(const sp<IServiceNotification> &listener);
71 void addClientCallback(const sp<IClientCallback>& callback, size_t knownClientCount);
72 bool removeClientCallback(const sp<IClientCallback>& callback);
105 void sendClientCallbackNotification(const sp<IClientCallback>& callback, bool hasClients);
109 sp<IBase> mService;
111 std::vector<sp<IServiceNotification>> mListeners{};
[all …]
DServiceManager.h40 using ::android::sp;
45 Return<sp<IBase>> get(const hidl_string& fqName,
48 const sp<IBase>& service) override;
59 const sp<IServiceNotification>& callback) override;
68 const sp<IServiceNotification>& callback) override;
73 const sp<IBase>& server,
74 const sp<IClientCallback>& cb) override;
75 Return<bool> unregisterClientCallback(const sp<IBase>& server,
76 const sp<IClientCallback>& cb) override;
78 const sp<IBase>& service,
[all …]
/system/unwinding/libunwindstack/
DRegsArm.cpp42 uint64_t RegsArm::sp() { in sp() function in unwindstack::RegsArm
50 void RegsArm::set_sp(uint64_t sp) { in set_sp() argument
51 regs_[ARM_REG_SP] = sp; in set_sp()
109 uint64_t sp = regs_[ARM_REG_SP]; in StepIfSignalHandler() local
123 if (!process_memory->ReadFully(sp, &data, sizeof(data))) { in StepIfSignalHandler()
128 offset = sp + 0x14 + 0xc; in StepIfSignalHandler()
131 offset = sp + 0xc; in StepIfSignalHandler()
134 uint64_t sp = regs_[ARM_REG_SP]; in StepIfSignalHandler() local
148 if (!process_memory->ReadFully(sp, &data, sizeof(data))) { in StepIfSignalHandler()
151 if (data == sp + 8) { in StepIfSignalHandler()
[all …]
/system/security/identity/
DCredentialStore.h30 using ::android::sp;
45 CredentialStore(const string& dataPath, sp<IIdentityCredentialStore> hal);
53 sp<IPresentationSession> halSessionBinder,
54 sp<ICredential>* _aidl_return);
60 sp<IWritableCredential>* _aidl_return) override;
63 sp<ICredential>* _aidl_return) override;
65 Status createPresentationSession(int32_t cipherSuite, sp<ISession>* _aidl_return) override;
72 sp<IIdentityCredentialStore> hal_;
77 sp<IRemotelyProvisionedComponent> rpc_;
/system/tools/aidl/tests/lazy_test/
Dserver.cpp28 using android::sp;
33 sp<LazyTestService> service1 = sp<LazyTestService>::make(); in setupDoubleLazyServer()
34 sp<LazyTestService> service2 = sp<LazyTestService>::make(); in setupDoubleLazyServer()
59 sp<LazyTestService> service = sp<LazyTestService>::make(); in setupQuitterServer()
/system/libhidl/transport/token/1.0/utils/include/hidl/
DHybridInterface.h188 sp<HInterface> retrieveHalInterface(const HalToken& token);
189 bool createHalToken(const sp<HInterface>& interface, HalToken* token);
202 H2BConverter(const sp<HalInterface>& base) : mBase{base} {} in H2BConverter()
206 const sp<IBinder::DeathRecipient>& recipient,
218 sp<HalInterface> mBase;
246 sp<IBinder::DeathRecipient> dr = recipient.promote(); in serviceDied()
253 std::vector<sp<Obituary> > mObituaries;
262 sp<HalInterface>>) { in _findIndex()
282 explicit HpInterface(const sp<IBinder>& impl);
288 sp<BPINTERFACE> mBp;
[all …]

12345678910>>...22