Home
last modified time | relevance | path

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

12345678910>>...17

/system/core/libpixelflinger/codeflinger/tinyutils/
Dsmartpointer.h31 inline bool operator _op_ (const sp<T>& o) const { \
38 inline bool operator _op_ (const sp<U>& o) const { \
49 class sp
52 inline sp() : m_ptr(0) { } in sp() function
54 sp(T* other); // NOLINT, implicit
55 sp(const sp<T>& other);
56 template<typename U> sp(U* other); // NOLINT, implicit
57 template<typename U> sp(const sp<U>& other); // NOLINT, implicit
59 ~sp();
63 sp& operator = (T* other);
[all …]
/system/core/libunwindstack/tests/
DUnwindOfflineTest.cpp225 EXPECT_EQ(0xe9c866f8U, unwinder.frames()[0].sp); in TEST_F()
227 EXPECT_EQ(0xe9c86728U, unwinder.frames()[1].sp); in TEST_F()
229 EXPECT_EQ(0xe9c86730U, unwinder.frames()[2].sp); in TEST_F()
231 EXPECT_EQ(0xe9c86778U, unwinder.frames()[3].sp); in TEST_F()
266 EXPECT_EQ(0xd8fe6930U, unwinder.frames()[0].sp); in TEST_F()
268 EXPECT_EQ(0xd8fe6958U, unwinder.frames()[1].sp); in TEST_F()
290 EXPECT_EQ(0x7fe0d84040U, unwinder.frames()[0].sp); in TEST_F()
292 EXPECT_EQ(0x7fe0d84070U, unwinder.frames()[1].sp); in TEST_F()
294 EXPECT_EQ(0x7fe0d84080U, unwinder.frames()[2].sp); in TEST_F()
296 EXPECT_EQ(0x7fe0d84090U, unwinder.frames()[3].sp); in TEST_F()
[all …]
/system/core/libutils/include/utils/
DStrongPointer.h31 class sp {
33 inline sp() : m_ptr(nullptr) { } in sp() function
39 static inline sp<T> make(Args&&... args);
41 sp(T* other); // NOLINT(implicit)
42 sp(const sp<T>& other);
43 sp(sp<T>&& other) noexcept;
44 template<typename U> sp(U* other); // NOLINT(implicit)
45 template<typename U> sp(const sp<U>& other); // NOLINT(implicit)
46 template<typename U> sp(sp<U>&& other); // NOLINT(implicit)
48 ~sp();
[all …]
/system/security/keystore/
Doperation.h42 using ::android::sp;
55 sp<IBinder> addOperation(uint64_t handle, uint64_t keyid, KeyPurpose purpose,
56 const sp<Keymaster>& dev, const sp<IBinder>& appToken,
59 std::shared_ptr<Operation> getOperation(const sp<IBinder>& token);
60 std::shared_ptr<Operation> removeOperation(const sp<IBinder>& token, bool wasSuccessful);
62 sp<IBinder> getOldestPruneableOperation();
63 std::vector<sp<IBinder>> getOperationsForToken(const sp<IBinder>& appToken);
66 void updateLru(const sp<IBinder>& token);
67 void removeOperationTracking(const sp<IBinder>& token, const sp<IBinder>& appToken);
69 std::map<sp<IBinder>, std::shared_ptr<Operation>> mMap;
[all …]
Doperation.cpp29 sp<IBinder> OperationMap::addOperation(uint64_t handle, uint64_t keyid, KeyPurpose purpose, in addOperation()
30 const sp<Keymaster>& dev, const sp<IBinder>& appToken, in addOperation()
33 sp<IBinder> token = new ::android::BBinder(); in addOperation()
42 std::shared_ptr<Operation> OperationMap::getOperation(const sp<IBinder>& token) { in getOperation()
52 void OperationMap::updateLru(const sp<IBinder>& token) { in updateLru()
60 std::shared_ptr<Operation> OperationMap::removeOperation(const sp<IBinder>& token, in removeOperation()
75 void OperationMap::removeOperationTracking(const sp<IBinder>& token, const sp<IBinder>& appToken) { in removeOperationTracking()
90 sp<IBinder> OperationMap::getOldestPruneableOperation() { in getOldestPruneableOperation()
96 std::vector<sp<IBinder>> OperationMap::getOperationsForToken(const sp<IBinder>& appToken) { in getOperationsForToken()
/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/core/libbinderwrapper/include/binderwrapper/
Dstub_binder_wrapper.h75 const std::vector<sp<BBinder>>& local_binders() const { in local_binders()
86 const sp<IBinder>& binder);
90 sp<IBinder> GetRegisteredService(const std::string& service_name) const;
93 void NotifyAboutBinderDeath(const sp<IBinder>& binder);
96 sp<IBinder> GetService(const std::string& service_name) override;
98 const sp<IBinder>& binder) override;
99 sp<BBinder> CreateLocalBinder() override;
100 bool RegisterForDeathNotifications(const sp<IBinder>& binder,
102 bool UnregisterForDeathNotifications(const sp<IBinder>& binder) override;
107 using ServiceMap = std::map<std::string, sp<IBinder>>;
[all …]
/system/core/libbinderwrapper/
Dstub_binder_wrapper.cc32 const sp<IBinder>& binder) { in SetBinderForService()
36 sp<IBinder> StubBinderWrapper::GetRegisteredService( in GetRegisteredService()
39 return it != registered_services_.end() ? it->second : sp<IBinder>(); in GetRegisteredService()
42 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()
66 const sp<IBinder>& binder, in RegisterForDeathNotifications()
[all …]
Dreal_binder_wrapper.cc52 sp<IBinder> RealBinderWrapper::GetService(const std::string& service_name) { in GetService()
53 sp<IServiceManager> service_manager = defaultServiceManager(); in GetService()
56 return sp<IBinder>(); in GetService()
58 sp<IBinder> binder = in GetService()
66 const sp<IBinder>& binder) { in RegisterService()
67 sp<IServiceManager> service_manager = defaultServiceManager(); in RegisterService()
82 sp<BBinder> RealBinderWrapper::CreateLocalBinder() { in CreateLocalBinder()
83 return sp<BBinder>(new BBinder()); in CreateLocalBinder()
87 const sp<IBinder>& binder, in RegisterForDeathNotifications()
89 sp<DeathRecipient> recipient(new DeathRecipient(callback)); in RegisterForDeathNotifications()
[all …]
Dreal_binder_wrapper.h36 sp<IBinder> GetService(const std::string& service_name) override;
38 const sp<IBinder>& binder) override;
39 sp<BBinder> CreateLocalBinder() override;
40 bool RegisterForDeathNotifications(const sp<IBinder>& binder,
42 bool UnregisterForDeathNotifications(const sp<IBinder>& binder) override;
51 std::map<sp<IBinder>, sp<DeathRecipient>> death_recipients_;
/system/libhwbinder/include/hwbinder/
DProcessState.h38 static sp<ProcessState> self();
39 static sp<ProcessState> selfOrNull();
42 static sp<ProcessState> initWithMmapSize(size_t mmapSize); // size in bytes
44 void setContextObject(const sp<IBinder>& object);
45 sp<IBinder> getContextObject(const sp<IBinder>& caller);
47 void setContextObject(const sp<IBinder>& object,
49 sp<IBinder> getContextObject(const String16& name,
50 const sp<IBinder>& caller);
55 const sp<IBinder>& caller,
63 sp<IBinder> getStrongProxyForHandle(int32_t handle);
[all …]
/system/hwservicemanager/
Dservice.cpp40 using android::sp;
67 static sp<HwBinderCallback> setupTo(const sp<Looper>& looper) { in setupTo()
68 sp<HwBinderCallback> cb = new HwBinderCallback; in setupTo()
96 …static sp<ClientCallbackCallback> setupTo(const sp<Looper>& looper, const sp<ServiceManager>& mana… in setupTo()
97 sp<ClientCallbackCallback> cb = new ClientCallbackCallback(manager); in setupTo()
137 ClientCallbackCallback(const sp<ServiceManager>& manager) : mManager(manager) {} in ClientCallbackCallback()
138 sp<ServiceManager> mManager;
146 sp<ServiceManager> manager = new ServiceManager(); in main()
153 sp<TokenManager> tokenManager = new TokenManager(); in main()
159 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/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/bt/service/ipc/binder/
Dbluetooth_binder_server.h96 const ::android::sp<IBluetoothCallback>& callback) override;
98 const ::android::sp<IBluetoothCallback>& callback) override;
101 ::android::sp<IBluetoothA2dpSink>* _aidl_return) override;
103 ::android::sp<IBluetoothA2dpSource>* _aidl_return) override;
105 ::android::sp<IBluetoothLowEnergy>* _aidl_return) override;
107 ::android::sp<IBluetoothLeAdvertiser>* _aidl_return) override;
109 ::android::sp<IBluetoothLeScanner>* _aidl_return) override;
111 ::android::sp<IBluetoothGattClient>* _aidl_return) override;
113 ::android::sp<IBluetoothGattServer>* _aidl_return) override;
115 ::android::sp<IBluetoothAvrcpControl>* _aidl_return) override;
[all …]
Dremote_callback_list.h62 bool Register(const android::sp<T>& callback);
63 bool Unregister(const android::sp<T>& callback);
72 CallbackDeathRecipient(const android::sp<T>& callback,
75 android::sp<T> get_callback() const { return callback_; } in get_callback()
81 android::sp<T> callback_;
88 android::sp<CallbackDeathRecipient>>;
103 using android::sp;
114 bool RemoteCallbackList<T>::Register(const sp<T>& callback) { in Register()
117 sp<IBinder> binder = IInterface::asBinder(callback.get()); in Register()
123 sp<CallbackDeathRecipient> dr(new CallbackDeathRecipient(callback, this)); in Register()
[all …]
Dremote_callback_map.h63 bool Register(const K& key, const android::sp<V>& callback,
72 android::sp<V> Get(const K& key);
76 android::sp<V> Remove(const K& key);
84 CallbackDeathRecipient(const K& key, const android::sp<V>& callback,
87 android::sp<V> get_callback() const { return callback_; } in get_callback()
94 android::sp<V> callback_;
101 std::unordered_map<K, android::sp<CallbackDeathRecipient>>;
116 using android::sp;
127 bool RemoteCallbackMap<K, V>::Register(const K& key, const sp<V>& callback, in Register()
136 sp<CallbackDeathRecipient> dr( in Register()
[all …]
/system/netd/server/
DOemNetdListener.h34 using OemUnsolListenerMap = std::map<const ::android::sp<IOemNetdUnsolicitedEventListener>,
35 const ::android::sp<::android::IBinder::DeathRecipient>>;
39 static ::android::sp<::android::IBinder> getListener();
43 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) override;
49 ::android::sp<::android::IBinder> mIBinder GUARDED_BY(mMutex);
52 ::android::sp<::android::IBinder> getIBinder() EXCLUDES(mMutex);
55 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener)
58 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener)
DOemNetdListener.cpp26 ::android::sp<::android::IBinder> OemNetdListener::getListener() { in getListener()
31 ::android::sp<::android::IBinder> OemNetdListener::getIBinder() { in getIBinder()
45 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) { in registerOemUnsolicitedEventListener()
52 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) { in registerOemUnsolicitedEventListenerInternal()
59 ::android::sp<IOemNetdUnsolicitedEventListener> listener) in registerOemUnsolicitedEventListenerInternal()
68 ::android::sp<IOemNetdUnsolicitedEventListener> mListener; in registerOemUnsolicitedEventListenerInternal()
70 ::android::sp<::android::IBinder::DeathRecipient> deathRecipient = in registerOemUnsolicitedEventListenerInternal()
79 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) { in unregisterOemUnsolicitedEventListenerInternal()
DEventReporter.h35 std::map<const android::sp<android::net::INetdUnsolicitedEventListener>,
36 const android::sp<android::IBinder::DeathRecipient>>;
40 android::sp<android::net::metrics::INetdEventListener> getNetdEventListener();
46 const android::sp<android::net::INetdUnsolicitedEventListener>& listener)
49 const android::sp<android::net::INetdUnsolicitedEventListener>& listener)
55 android::sp<android::net::metrics::INetdEventListener> mNetdEventListener
/system/core/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()
110 uint64_t sp = regs_[ARM_REG_SP]; in StepIfSignalHandler() local
124 if (!process_memory->ReadFully(sp, &data, sizeof(data))) { in StepIfSignalHandler()
129 offset = sp + 0x14 + 0xc; in StepIfSignalHandler()
132 offset = sp + 0xc; in StepIfSignalHandler()
135 uint64_t sp = regs_[ARM_REG_SP]; in StepIfSignalHandler() local
149 if (!process_memory->ReadFully(sp, &data, sizeof(data))) { in StepIfSignalHandler()
152 if (data == sp + 8) { in StepIfSignalHandler()
[all …]
/system/core/libutils/
DStrongPointer_test.cpp39 sp<SPFoo> sp1 = sp<SPFoo>::make(&isDeleted); in TEST()
43 sp<SPFoo> sp2 = std::move(sp1); in TEST()
53 sp<SPFoo> sp2 = std::move(sp1); in TEST()
59 sp<SPFoo> foo; in TEST()
66 sp<SPFoo> foo = sp<SPFoo>::make(&isDeleted); in TEST()
/system/libhidl/libhidlmemory/
Dmapping.cpp29 using android::sp;
36 static std::map<std::string, sp<IMapper>> gMappersByName;
39 static inline sp<IMapper> getMapperService(const std::string& name) { in getMapperService()
46 sp<IMapper> mapper = IMapper::getService(name, true /* getStub */); in getMapperService()
53 sp<IMemory> mapMemory(const hidl_memory& memory) { in mapMemory()
55 sp<IMapper> mapper = getMapperService(memory.name()); in mapMemory()
76 Return<sp<IMemory>> ret = mapper->mapMemory(memory); in mapMemory()
/system/core/fastboot/device/
Dfastboot_device.h52 android::sp<android::hardware::boot::V1_0::IBootControl> boot_control_hal() { in boot_control_hal()
55 android::sp<android::hardware::boot::V1_1::IBootControl> boot1_1() { return boot1_1_; } in boot1_1()
56 android::sp<android::hardware::fastboot::V1_0::IFastboot> fastboot_hal() { in fastboot_hal()
59 android::sp<android::hardware::health::V2_0::IHealth> health_hal() { return health_hal_; } in health_hal()
67 android::sp<android::hardware::boot::V1_0::IBootControl> boot_control_hal_;
68 android::sp<android::hardware::boot::V1_1::IBootControl> boot1_1_;
69 android::sp<android::hardware::health::V2_0::IHealth> health_hal_;
70 android::sp<android::hardware::fastboot::V1_0::IFastboot> fastboot_hal_;

12345678910>>...17