Home | History | Annotate | Download | only in gatekeeperd
      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 <inttypes.h>
     21 #include <utils/Errors.h>
     22 #include <binder/IInterface.h>
     23 #include <binder/Parcel.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         };
     37 
     38         virtual int32_t getCredentialOwnerProfile(int32_t user_id) = 0;
     39 
     40         DECLARE_META_INTERFACE(UserManager);
     41 };
     42 
     43 }; // namespace android
     44 
     45 #endif // IUSERMANAGER_H_
     46 
     47