Lines Matching refs:android
33 // service. This is a native equivalent of the the android.os.RemoteCallbackList
34 // Java class. The type "T" must inherit from android::IInterface.
62 bool Register(const android::sp<T>& callback);
63 bool Unregister(const android::sp<T>& callback);
70 class CallbackDeathRecipient : public android::IBinder::DeathRecipient {
72 CallbackDeathRecipient(const android::sp<T>& callback,
75 android::sp<T> get_callback() const { return callback_; }
77 // android::IBinder::DeathRecipient override:
78 void binderDied(const android::wp<android::IBinder>& who) override;
81 android::sp<T> callback_;
87 using CallbackMap = std::unordered_map<android::IBinder*,
88 android::sp<CallbackDeathRecipient>>;
101 using android::IBinder;
102 using android::IInterface;
103 using android::sp;
104 using android::wp;
125 if (binder->linkToDeath(dr) != android::NO_ERROR) {
165 android::NO_ERROR) {