Debian Codegraph @

core/java/android/app/ILocaleManager.aidl

raw
1
2 /*
3 * Copyright (C) 2021 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18 package android.app;
19
20 import android.os.LocaleList;
21
22 /**
23 * Internal interface used to control app-specific locales.
24 *
25 * <p>Use the {@link android.app.LocaleManager} class rather than going through
26 * this Binder interface directly. See {@link android.app.LocaleManager} for
27 * more complete documentation.
28 *
29 * @hide
30 */
31 interface ILocaleManager {
32
33 /**
34 * Sets a specified app’s app-specific UI locales.
35 */
36 void setApplicationLocales(String packageName, int userId, in LocaleList locales);
37
38 /**
39 * Returns the specified app's app-specific locales.
40 */
41 LocaleList getApplicationLocales(String packageName, int userId);
42
43 /**
44 * Returns the current system locales.
45 */
46 LocaleList getSystemLocales();
47
48 }