/system/core/libpixelflinger/codeflinger/tinyutils/ |
D | smartpointer.h | 31 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/libutils/include/utils/ |
D | StrongPointer.h | 28 inline bool operator _op_ (const sp<T>& o) const { \ 35 inline bool operator _op_ (const sp<U>& o) const { \ 53 class sp { 55 inline sp() : m_ptr(0) { } in sp() function 57 sp(T* other); // NOLINT(implicit) 58 sp(const sp<T>& other); 59 sp(sp<T>&& other); 60 template<typename U> sp(U* other); // NOLINT(implicit) 61 template<typename U> sp(const sp<U>& other); // NOLINT(implicit) 62 template<typename U> sp(sp<U>&& other); // NOLINT(implicit) [all …]
|
D | Looper.h | 318 int addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data); 348 void sendMessage(const sp<MessageHandler>& handler, const Message& message); 358 void sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, 369 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, 378 void removeMessages(const sp<MessageHandler>& handler); 386 void removeMessages(const sp<MessageHandler>& handler, int what); 403 static sp<Looper> prepare(int opts); 411 static void setForThread(const sp<Looper>& looper); 417 static sp<Looper> getForThread(); 425 sp<LooperCallback> callback; [all …]
|
/system/core/libunwindstack/tests/ |
D | UnwindOfflineTest.cpp | 217 EXPECT_EQ(0xe9c866f8U, unwinder.frames()[0].sp); in TEST_F() 219 EXPECT_EQ(0xe9c86728U, unwinder.frames()[1].sp); in TEST_F() 221 EXPECT_EQ(0xe9c86730U, unwinder.frames()[2].sp); in TEST_F() 223 EXPECT_EQ(0xe9c86778U, unwinder.frames()[3].sp); in TEST_F() 241 EXPECT_EQ(0xd8fe6930U, unwinder.frames()[0].sp); in TEST_F() 243 EXPECT_EQ(0xd8fe6958U, unwinder.frames()[1].sp); in TEST_F() 265 EXPECT_EQ(0x7fe0d84040U, unwinder.frames()[0].sp); in TEST_F() 267 EXPECT_EQ(0x7fe0d84070U, unwinder.frames()[1].sp); in TEST_F() 269 EXPECT_EQ(0x7fe0d84080U, unwinder.frames()[2].sp); in TEST_F() 271 EXPECT_EQ(0x7fe0d84090U, unwinder.frames()[3].sp); in TEST_F() [all …]
|
/system/security/keystore/ |
D | operation.h | 37 using ::android::sp; 50 sp<IBinder> addOperation(uint64_t handle, uint64_t keyid, KeyPurpose purpose, 51 const sp<Keymaster>& dev, const sp<IBinder>& appToken, 54 NullOr<const Operation&> getOperation(const sp<IBinder>& token); 55 NullOr<Operation> removeOperation(const sp<IBinder>& token, bool wasSuccessful); 59 void setOperationAuthToken(const sp<IBinder>& token, HardwareAuthToken authToken); 60 void setOperationVerificationToken(const sp<IBinder>& token, VerificationToken authToken); 61 sp<IBinder> getOldestPruneableOperation(); 62 std::vector<sp<IBinder>> getOperationsForToken(const sp<IBinder>& appToken); 65 void updateLru(const sp<IBinder>& token); [all …]
|
D | operation.cpp | 27 sp<IBinder> OperationMap::addOperation(uint64_t handle, uint64_t keyid, KeyPurpose purpose, in addOperation() 28 const sp<Keymaster>& dev, const sp<IBinder>& appToken, in addOperation() 31 sp<IBinder> token = new ::android::BBinder(); in addOperation() 40 NullOr<const Operation&> OperationMap::getOperation(const sp<IBinder>& token) { in getOperation() 48 void OperationMap::updateLru(const sp<IBinder>& token) { in updateLru() 56 NullOr<Operation> OperationMap::removeOperation(const sp<IBinder>& token, bool wasSuccessful) { in removeOperation() 70 void OperationMap::removeOperationTracking(const sp<IBinder>& token, const sp<IBinder>& appToken) { in removeOperationTracking() 93 sp<IBinder> OperationMap::getOldestPruneableOperation() { in getOldestPruneableOperation() 94 if (!hasPruneableOperation()) return sp<IBinder>(nullptr); in getOldestPruneableOperation() 98 void OperationMap::setOperationAuthToken(const sp<IBinder>& token, HardwareAuthToken authToken) { in setOperationAuthToken() [all …]
|
/system/core/libbinderwrapper/include/binderwrapper/ |
D | stub_binder_wrapper.h | 75 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/libpixelflinger/tests/arch-mips64/assembler/ |
D | asm_mips_test_jacket.S | 44 daddiu $sp, $sp, -96 45 sd $s0, 64($sp) 46 sd $s1, 72($sp) 47 sd $s2, 80($sp) 48 sd $ra, 88($sp) 86 ld $s0, 64($sp) 87 ld $s1, 72($sp) 88 ld $s2, 80($sp) 89 ld $ra, 88($sp) 91 daddiu $sp, $sp, 96
|
/system/core/libbinderwrapper/ |
D | stub_binder_wrapper.cc | 32 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 …]
|
D | real_binder_wrapper.cc | 52 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 …]
|
D | real_binder_wrapper.h | 36 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/ |
D | ProcessState.h | 38 static sp<ProcessState> self(); 39 static sp<ProcessState> selfOrNull(); 41 static sp<ProcessState> initWithMmapSize(size_t mmapSize); // size in bytes 43 void setContextObject(const sp<IBinder>& object); 44 sp<IBinder> getContextObject(const sp<IBinder>& caller); 46 void setContextObject(const sp<IBinder>& object, 48 sp<IBinder> getContextObject(const String16& name, 49 const sp<IBinder>& caller); 54 const sp<IBinder>& caller, 62 sp<IBinder> getStrongProxyForHandle(int32_t handle); [all …]
|
/system/libhidl/transport/include/hidl/ |
D | HidlTransportSupport.h | 84 bool setMinSchedulerPolicy(const sp<::android::hidl::base::V1_0::IBase>& service, 91 bool interfacesEqual(sp<ILeft> left, sp<IRight> right) { in interfacesEqual() 113 Return<sp<IChild>> castInterface(sp<IParent> parent, const char* childIndicator, bool emitError) { in castInterface() 122 ? details::StatusOf<bool, sp<IChild>>(canCastRet) in castInterface() 123 : Return<sp<IChild>>(sp<IChild>(nullptr)); in castInterface() 127 return sp<IChild>(nullptr); // cast failed. in castInterface() 132 return sp<IChild>(new BpChild(toBinder<IParent>(parent))); in castInterface() 135 return sp<IChild>(static_cast<IChild *>(parent.get())); in castInterface() 141 sp<IType> getServiceInternal(const std::string& instance, bool retry, bool getStub) { in getServiceInternal() 144 sp<IBase> base = getRawServiceInternal(IType::descriptor, instance, retry, getStub); in getServiceInternal() [all …]
|
/system/extras/simpleperf/ |
D | CallChainJoiner_test.cpp | 42 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/libhidl/libhidlcache/ |
D | HidlMemoryCache.h | 31 bool operator()(const sp<IMemoryToken>& lhs, const sp<IMemoryToken>& rhs) const { in operator() 32 sp<IBinder> lb = toBinder<IMemoryToken>(lhs); in operator() 33 sp<IBinder> rb = toBinder<IMemoryToken>(rhs); in operator() 43 : public virtual HidlCache<sp<::android::hidl::memory::token::V1_0::IMemoryToken>, 50 virtual sp<IMemory> map(const MemoryBlock& block); 52 static sp<HidlMemoryCache> getInstance(); 56 virtual sp<IMemory> fillLocked(const sp<IMemoryToken>& key) override;
|
D | HidlCache.h | 36 HidlCacheLock(sp<HidlCache> cache, const Key& key) : mCache(cache), mKey(key) { in HidlCacheLock() 42 sp<HidlCache> mCache; 48 virtual sp<Value> unlock(const Key& key); 52 virtual sp<Value> fetch(const Key& key); 53 virtual sp<HidlCacheLock> lockGuard(const Key& key) { return new HidlCacheLock(this, key); } in lockGuard() 60 virtual sp<Value> fillLocked(const Key& key) = 0; 64 virtual sp<Value> getCachedLocked(const Key& key); 70 std::map<Key, sp<Value>, Compare> mLocked; 78 sp<Value> im = mCached[key].promote(); in lock() 87 sp<Value> value = fetch(key); in lock() [all …]
|
D | HidlMemoryCache.cpp | 33 IMemoryDecorator(sp<IMemory> heap) : mHeap(heap) {} in IMemoryDecorator() 49 sp<IMemory> mHeap; 54 IMemoryCacheable(sp<IMemory> heap, sp<IMemoryToken> key) : IMemoryDecorator(heap), mKey(key) {} in IMemoryCacheable() 58 sp<IMemoryToken> mKey; 63 IMemoryBlock(sp<IMemory> heap, uint64_t size, uint64_t offset) in IMemoryBlock() 97 sp<HidlMemoryCache> HidlMemoryCache::getInstance() { in getInstance() 98 static sp<HidlMemoryCache> instance = new HidlMemoryCache(); in getInstance() 102 sp<IMemory> HidlMemoryCache::fillLocked(const sp<IMemoryToken>& key) { in fillLocked() 103 sp<IMemory> memory = nullptr; in fillLocked() 114 sp<IMemory> HidlMemoryCache::map(const MemoryBlock& memblk) { in map() [all …]
|
D | libhidlcache_test.cpp | 48 sp<IAllocator> ashmemAllocator; in HidlCacheWhiteBoxTest() 54 sp<HidlMemory> mem; in HidlCacheWhiteBoxTest() 60 sp<IMemoryToken> token = new HidlMemoryToken(mem); in HidlCacheWhiteBoxTest() 63 sp<IMemoryToken> mtoken = blk.token; in HidlCacheWhiteBoxTest() 64 mtoken->get([&](const hidl_memory& mem) { sp<IMemory> memory = mapMemory(mem); }); in HidlCacheWhiteBoxTest() 66 sp<HidlMemoryCache> cache = HidlMemoryCache::getInstance(); in HidlCacheWhiteBoxTest() 74 sp<IMemory> mem1 = cache->fetch(token); in HidlCacheWhiteBoxTest() 77 sp<IMemory> mem2 = cache->fetch(token); in HidlCacheWhiteBoxTest() 83 sp<IMemory> mem1 = mapMemory(blk); in HidlCacheWhiteBoxTest() 90 sp<IMemory> mem2 = mapMemory(blk); in HidlCacheWhiteBoxTest() [all …]
|
/system/bt/service/ipc/binder/ |
D | bluetooth_binder_server.h | 73 const ::android::sp<IBluetoothCallback>& callback) override; 75 const ::android::sp<IBluetoothCallback>& callback) override; 78 ::android::sp<IBluetoothLowEnergy>* _aidl_return) override; 80 ::android::sp<IBluetoothLeAdvertiser>* _aidl_return) override; 82 ::android::sp<IBluetoothLeScanner>* _aidl_return) override; 84 ::android::sp<IBluetoothGattClient>* _aidl_return) override; 86 ::android::sp<IBluetoothGattServer>* _aidl_return) override; 102 android::sp<IBluetoothLowEnergy> low_energy_interface_; 106 android::sp<IBluetoothLeAdvertiser> le_advertiser_interface_; 110 android::sp<IBluetoothLeScanner> le_scanner_interface_; [all …]
|
D | remote_callback_list.h | 62 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 …]
|
D | remote_callback_map.h | 63 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/core/libunwindstack/ |
D | RegsArm.cpp | 41 uint64_t RegsArm::sp() { in sp() function in unwindstack::RegsArm 49 void RegsArm::set_sp(uint64_t sp) { in set_sp() argument 50 regs_[ARM_REG_SP] = sp; in set_sp() 140 uint64_t sp = regs_[ARM_REG_SP]; in StepIfSignalHandler() local 154 if (!process_memory->ReadFully(sp, &data, sizeof(data))) { in StepIfSignalHandler() 159 offset = sp + 0x14 + 0xc; in StepIfSignalHandler() 162 offset = sp + 0xc; in StepIfSignalHandler() 165 uint64_t sp = regs_[ARM_REG_SP]; in StepIfSignalHandler() local 179 if (!process_memory->ReadFully(sp, &data, sizeof(data))) { in StepIfSignalHandler() 182 if (data == sp + 8) { in StepIfSignalHandler() [all …]
|
/system/tpm/tpm_manager/server/ |
D | binder_service.h | 64 const android::sp<android::tpm_manager::ITpmManagerClient>& client) 68 const android::sp<android::tpm_manager::ITpmManagerClient>& client) 72 const android::sp<android::tpm_manager::ITpmManagerClient>& client) 76 const android::sp<android::tpm_manager::ITpmManagerClient>& client) 80 const android::sp<android::tpm_manager::ITpmManagerClient>& client) 84 const android::sp<android::tpm_manager::ITpmManagerClient>& client) 88 const android::sp<android::tpm_manager::ITpmManagerClient>& client) 104 const android::sp<android::tpm_manager::ITpmManagerClient>& client) 108 const android::sp<android::tpm_manager::ITpmManagerClient>& client) 112 const android::sp<android::tpm_manager::ITpmManagerClient>& client) [all …]
|
/system/libhidl/libhidlmemory/ |
D | mapping.cpp | 29 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/libhidl/transport/token/1.0/utils/include/hidl/ |
D | HybridInterface.h | 105 sp<HInterface> retrieveHalInterface(const HalToken& token); 106 bool createHalToken(const sp<HInterface>& interface, HalToken* token); 121 H2BConverter(const sp<HalInterface>& base) : mBase(base) {} in H2BConverter() 124 virtual sp<HalInterface> getHalInterface() { return mBase; } in getHalInterface() 127 const sp<IBinder::DeathRecipient>& recipient, 137 sp<HalInterface> mBase; 163 sp<IBinder::DeathRecipient> dr = recipient.promote(); in serviceDied() 170 std::vector<sp<Obituary> > mObituaries; 184 explicit HpInterface(const sp<IBinder>& impl); 185 virtual sp<HalInterface> getHalInterface() { return mHal; } in getHalInterface() [all …]
|