IActivityManager.h revision 4d85b8c0a38c14f854af8ff85391b7a8d1170d5b
1/* 2 * Copyright (C) 2016 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17#ifndef ANDROID_IACTIVITY_MANAGER_H 18#define ANDROID_IACTIVITY_MANAGER_H 19 20#include <binder/IInterface.h> 21#include <binder/IUidObserver.h> 22 23namespace android { 24 25// ------------------------------------------------------------------------------------ 26 27class IActivityManager : public IInterface 28{ 29public: 30 DECLARE_META_INTERFACE(ActivityManager) 31 32 virtual int openContentUri(const String16& stringUri) = 0; 33 virtual void registerUidObserver(const sp<IUidObserver>& observer, 34 const int32_t event, 35 const int32_t cutpoint, 36 const String16& callingPackage) = 0; 37 virtual void unregisterUidObserver(const sp<IUidObserver>& observer) = 0; 38 39 enum { 40 OPEN_CONTENT_URI_TRANSACTION = IBinder::FIRST_CALL_TRANSACTION, 41 REGISTER_UID_OBSERVER_TRANSACTION, 42 UNREGISTER_UID_OBSERVER_TRANSACTION 43 }; 44}; 45 46// ------------------------------------------------------------------------------------ 47 48}; // namespace android 49 50#endif // ANDROID_IACTIVITY_MANAGER_H 51