1 /* 2 * Copyright (C) 2015 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 IUSERMANAGER_H_ 18 #define IUSERMANAGER_H_ 19 20 #include <binder/IInterface.h> 21 #include <binder/Parcel.h> 22 #include <inttypes.h> 23 #include <utils/Errors.h> 24 #include <utils/Vector.h> 25 26 namespace android { 27 28 /* 29 * Communication channel to UserManager 30 */ 31 class IUserManager : public IInterface { 32 public: 33 // must be kept in sync with IUserManager.aidl 34 enum { 35 GET_CREDENTIAL_OWNER_PROFILE = IBinder::FIRST_CALL_TRANSACTION + 0, 36 GET_PROFILE_PARENT_ID, 37 }; 38 39 virtual int32_t getCredentialOwnerProfile(int32_t user_id) = 0; 40 virtual int32_t getProfileParentId(int32_t user_handle) = 0; 41 42 DECLARE_META_INTERFACE(UserManager); 43 }; 44 45 }; // namespace android 46 47 #endif // IUSERMANAGER_H_ 48