// // Copyright 2005 The Android Open Source Project // #ifndef ANDROID_SERVICE_MANAGER_H #define ANDROID_SERVICE_MANAGER_H #include #include #include namespace android { // ---------------------------------------------------------------------- class BServiceManager : public BnServiceManager { public: BServiceManager(); virtual sp getService( const String16& name) const; virtual sp checkService( const String16& name) const; virtual status_t addService( const String16& name, const sp& service); virtual Vector listServices(); private: mutable Mutex mLock; mutable Condition mChanged; sp mPermissionController; KeyedVector > mServices; }; // ---------------------------------------------------------------------- }; // namespace android #endif // ANDROID_SERVICE_MANAGER_H