1/*
2 * Copyright (C) 2014 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
17package com.android.launcher3.compat;
18
19import java.util.ArrayList;
20import java.util.List;
21
22public class UserManagerCompatV16 extends UserManagerCompat {
23
24    UserManagerCompatV16() {
25    }
26
27    public List<UserHandleCompat> getUserProfiles() {
28        List<UserHandleCompat> profiles = new ArrayList<UserHandleCompat>(1);
29        profiles.add(UserHandleCompat.myUserHandle());
30        return profiles;
31    }
32
33    public UserHandleCompat getUserForSerialNumber(long serialNumber) {
34        return UserHandleCompat.myUserHandle();
35    }
36
37    public long getSerialNumberForUser(UserHandleCompat user) {
38        return 0;
39    }
40
41    public CharSequence getBadgedLabelForUser(CharSequence label, UserHandleCompat user) {
42        return label;
43    }
44
45    @Override
46    public long getUserCreationTime(UserHandleCompat user) {
47        return 0;
48    }
49
50    @Override
51    public void enableAndResetCache() {
52    }
53
54    @Override
55    public boolean isQuietModeEnabled(UserHandleCompat user) {
56        return false;
57    }
58
59    @Override
60    public boolean isUserUnlocked(UserHandleCompat user) {
61        return true;
62    }
63
64    @Override
65    public boolean isDemoUser() {
66        return false;
67    }
68}
69