Home
last modified time | relevance | path

Searched refs:IBinder (Results 1 – 25 of 81) sorted by relevance

1234

/system/security/keystore/
Doperation.h36 using ::android::IBinder;
49 explicit OperationMap(IBinder::DeathRecipient* deathRecipient);
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);
[all …]
Doperation.cpp24 OperationMap::OperationMap(IBinder::DeathRecipient* deathRecipient) in OperationMap()
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()
[all …]
Dconfirmation_manager.h45 explicit ConfirmationManager(android::IBinder::DeathRecipient* deathRecipient);
52 Status presentConfirmationPrompt(const android::sp<android::IBinder>& listener,
63 Status cancelConfirmationPrompt(const android::sp<android::IBinder>& listener,
73 void binderDied(const android::wp<android::IBinder>& who);
95 android::sp<android::IBinder> mCurrentListener;
97 android::IBinder::DeathRecipient* mDeathRecipient;
Doperation_struct.h30 using ::android::IBinder;
37 KeyCharacteristics&& characteristics_, sp<IBinder> appToken_, in Operation()
51 sp<IBinder> appToken;
Dconfirmation_manager.cpp33 using android::IBinder;
50 ConfirmationManager::ConfirmationManager(IBinder::DeathRecipient* deathRecipient) in ConfirmationManager()
54 Status ConfirmationManager::presentConfirmationPrompt(const sp<IBinder>& listener, in presentConfirmationPrompt()
107 Status ConfirmationManager::cancelConfirmationPrompt(const sp<IBinder>& listener, in cancelConfirmationPrompt()
148 sp<IBinder> listener = mCurrentListener; in finalizeTransaction()
193 void ConfirmationManager::binderDied(const wp<IBinder>& who) { in binderDied()
/system/libhwbinder/include/hwbinder/
DProcessState.h43 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);
63 wp<IBinder> getWeakProxyForHandle(int32_t handle);
64 void expungeHandle(int32_t handle, IBinder* binder);
85 IBinder* binder;
[all …]
DIInterface.h31 static sp<IBinder> asBinder(const IInterface*);
32 static sp<IBinder> asBinder(const sp<IInterface>&);
35 virtual IBinder* onAsBinder() = 0;
44 BpInterface(const sp<IBinder>& remote);
45 virtual IBinder* onAsBinder();
55 inline BpInterface<INTERFACE>::BpInterface(const sp<IBinder>& remote) in BpInterface()
61 inline IBinder* BpInterface<INTERFACE>::onAsBinder() in onAsBinder()
DIBinder.h42 class IBinder : public virtual RefBase
52 IBinder();
63 virtual void binderDied(const wp<IBinder>& who) = 0;
119 virtual ~IBinder();
DParcel.h38 class IBinder; variable
68 bool checkInterface(IBinder*) const;
98 status_t writeStrongBinder(const sp<IBinder>& val);
99 status_t writeWeakBinder(const wp<IBinder>& val);
154 sp<IBinder> readStrongBinder() const;
155 status_t readStrongBinder(sp<IBinder>* val) const;
156 status_t readNullableStrongBinder(sp<IBinder>* val) const;
157 wp<IBinder> readWeakBinder() const;
328 const sp<IBinder>& binder, flat_binder_object* out);
330 const wp<IBinder>& binder, flat_binder_object* out);
[all …]
DBinder.h28 class BHwBinder : public IBinder
85 BpHwRefBase(const sp<IBinder>& o);
91 inline IBinder* remote() const { return mRemote; } in remote()
97 IBinder* const mRemote;
/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()
66 const sp<IBinder>& binder, in RegisterForDeathNotifications()
73 const sp<IBinder>& binder) { in UnregisterForDeathNotifications()
Dreal_binder_wrapper.h27 class IBinder; variable
36 sp<IBinder> GetService(const std::string& service_name) override;
38 const sp<IBinder>& binder) 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_;
Dreal_binder_wrapper.cc30 class RealBinderWrapper::DeathRecipient : public IBinder::DeathRecipient {
37 void binderDied(const wp<IBinder>& who) override { in binderDied()
52 sp<IBinder> RealBinderWrapper::GetService(const std::string& service_name) { in GetService()
56 return sp<IBinder>(); in GetService()
58 sp<IBinder> binder = in GetService()
66 const sp<IBinder>& binder) { in RegisterService()
87 const sp<IBinder>& binder, in RegisterForDeathNotifications()
100 const sp<IBinder>& binder) { in UnregisterForDeathNotifications()
/system/core/libbinderwrapper/include/binderwrapper/
Dstub_binder_wrapper.h86 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;
100 bool RegisterForDeathNotifications(const sp<IBinder>& binder,
102 bool UnregisterForDeathNotifications(const sp<IBinder>& binder) override;
107 using ServiceMap = std::map<std::string, sp<IBinder>>;
122 std::map<sp<IBinder>, ::base::Closure> death_callbacks_;
Dbinder_wrapper.h30 class IBinder; variable
60 virtual sp<IBinder> GetService(const std::string& service_name) = 0;
64 const sp<IBinder>& binder) = 0;
72 const sp<IBinder>& binder,
76 virtual bool UnregisterForDeathNotifications(const sp<IBinder>& binder) = 0;
/system/core/gatekeeperd/
DIGateKeeperService.h31 ENROLL = IBinder::FIRST_CALL_TRANSACTION + 0,
32 VERIFY = IBinder::FIRST_CALL_TRANSACTION + 1,
33 VERIFY_CHALLENGE = IBinder::FIRST_CALL_TRANSACTION + 2,
34 GET_SECURE_USER_ID = IBinder::FIRST_CALL_TRANSACTION + 3,
35 CLEAR_SECURE_USER_ID = IBinder::FIRST_CALL_TRANSACTION + 4,
36 REPORT_DEVICE_SETUP_COMPLETE = IBinder::FIRST_CALL_TRANSACTION + 5,
/system/libhwbinder/
DBinder.cpp33 IBinder::IBinder() in IBinder() function in android::hardware::IBinder
38 IBinder::~IBinder() in ~IBinder()
44 BHwBinder* IBinder::localBinder() in localBinder()
49 BpHwBinder* IBinder::remoteBinder() in remoteBinder()
54 bool IBinder::checkSubclass(const void* /*subclassID*/) const in checkSubclass()
185 BpHwRefBase::BpHwRefBase(const sp<IBinder>& o) in BpHwRefBase()
DProcessState.cpp95 void ProcessState::setContextObject(const sp<IBinder>& object) in setContextObject()
100 sp<IBinder> ProcessState::getContextObject(const sp<IBinder>& /*caller*/) in getContextObject() argument
105 void ProcessState::setContextObject(const sp<IBinder>& object, const String16& name) in setContextObject()
111 sp<IBinder> ProcessState::getContextObject(const String16& name, const sp<IBinder>& caller) in getContextObject()
114 sp<IBinder> object( in getContextObject()
228 sp<IBinder> ProcessState::getStrongProxyForHandle(int32_t handle) in getStrongProxyForHandle()
230 sp<IBinder> result; in getStrongProxyForHandle()
240 IBinder* b = e->binder; in getStrongProxyForHandle()
258 wp<IBinder> ProcessState::getWeakProxyForHandle(int32_t handle) in getWeakProxyForHandle()
260 wp<IBinder> result; in getWeakProxyForHandle()
[all …]
DIInterface.cpp34 sp<IBinder> IInterface::asBinder(const IInterface* iface) in asBinder()
41 sp<IBinder> IInterface::asBinder(const sp<IInterface>& iface) in asBinder()
/system/libhidl/transport/token/1.0/utils/include/hidl/
DHybridInterface.h127 const sp<IBinder::DeathRecipient>& recipient,
131 const wp<IBinder::DeathRecipient>& recipient,
134 wp<IBinder::DeathRecipient>* outRecipient = nullptr);
139 wp<IBinder::DeathRecipient> recipient;
142 wp<IBinder> who;
144 const wp<IBinder::DeathRecipient>& r, in Obituary()
146 const wp<IBinder>& w) : in Obituary()
163 sp<IBinder::DeathRecipient> dr = recipient.promote(); in serviceDied()
184 explicit HpInterface(const sp<IBinder>& impl);
189 IBinder* mImpl;
[all …]
/system/bt/service/ipc/binder/
Dremote_callback_list.h70 class CallbackDeathRecipient : public android::IBinder::DeathRecipient {
78 void binderDied(const android::wp<android::IBinder>& who) override;
87 using CallbackMap = std::unordered_map<android::IBinder*,
101 using android::IBinder;
117 sp<IBinder> binder = IInterface::asBinder(callback.get()); in Register()
141 sp<IBinder> binder = IInterface::asBinder(callback.get()); in Unregister()
189 const wp<IBinder>& who) { in binderDied()
192 sp<IBinder> binder = IInterface::asBinder(callback_.get()); in binderDied()
/system/tools/aidl/tests/android/aidl/tests/
DITestService.aidl78 List<IBinder> ReverseNamedCallbackList(in List<IBinder> input, in ReverseNamedCallbackList()
79 out List<IBinder> repeated); in ReverseNamedCallbackList()
94 void TakesAnIBinder(in IBinder input); in TakesAnIBinder()
95 void TakesAnIBinderList(in List<IBinder> input); in TakesAnIBinderList()
96 void TakesANullableIBinder(in @nullable IBinder input); in TakesANullableIBinder()
97 void TakesANullableIBinderList(in @nullable List<IBinder> input); in TakesANullableIBinderList()
/system/security/keystore/binder/android/security/
DIKeystoreService.aidl67 OperationResult begin(IBinder appToken, String alias, int purpose, boolean pruneable, in begin()
69 OperationResult update(IBinder token, in KeymasterArguments params, in byte[] input); in update()
70 OperationResult finish(IBinder token, in KeymasterArguments params, in byte[] signature, in finish()
72 int abort(IBinder handle); in abort()
73 boolean isOperationAuthorized(IBinder token); in isOperationAuthorized()
84 int presentConfirmationPrompt(IBinder listener, String promptText, in byte[] extraData, in presentConfirmationPrompt()
86 int cancelConfirmationPrompt(IBinder listener); in cancelConfirmationPrompt()
/system/bt/binder/android/bluetooth/
DIBluetoothProfileServiceConnection.aidl20 import android.os.IBinder;
28 void onServiceConnected(in ComponentName comp, in IBinder service); in onServiceConnected()
/system/tools/aidl/tests/
Daidl_test_client_nullables.cpp138 sp<IBinder> binder = new BBinder(); in CheckAppropriateIBinderHandling()
139 sp<IBinder> null_binder = nullptr; in CheckAppropriateIBinderHandling()
140 unique_ptr<vector<sp<IBinder>>> list_with_nulls( in CheckAppropriateIBinderHandling()
141 new vector<sp<IBinder>>{binder, null_binder}); in CheckAppropriateIBinderHandling()
142 unique_ptr<vector<sp<IBinder>>> list_without_nulls( in CheckAppropriateIBinderHandling()
143 new vector<sp<IBinder>>{binder, binder}); in CheckAppropriateIBinderHandling()

1234