summaryrefslogtreecommitdiff
path: root/core/java/android/app/LocaleManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Only set locale in config for updating localeRiddle Hsu2022-10-201-1/+1
| | | | | | | | | | | | | | | | | | | To update locale, it doesn't need a full configuration because system only applied the diff of config from non-undefined fields. IActivityManager#getConfiguration actually gets the configuration according to the pid, which is process configuration. And process configuration can be overridden by the activity running in its process. So the returned value shouldn't be used to update the system persistent configuration. Therefore it is enough to use a new Configuration instance with setting the necessary fields. This is also more efficient that saves a binder call to system. Bug: 253386061 Test: atest LocaleManagerTests Change-Id: Icdce437fcf1a3bef0562cfc4dd5ad3ba52ea08ef
* Enhance Javadoc for LocaleManager#setApplicationLocales.Pratyush More2022-03-301-4/+24
| | | | | | | | | This is being done in response to developer feedback. See the attached bug for more info. Bug: 226407732 Test: Javadoc change Change-Id: I4e15e75db695eec650836da17074b1a2aae0fd5d
* Add getSystemLocale public API in response to developer feedback.Pratyush More2022-03-151-12/+16
| | | | | | | | For more context/information, see the attached bug. Bug: 223593326 Test: atest CtsLocaleManagerTestCases Change-Id: I1c55fe4f2767e5a0acfe8b455947e8975d11f381
* Merge "Modify LocaleManager#setApplicationLocales Javadoc to explicitly ↵Pratyush More2022-01-191-0/+6
|\ | | | | | | mention persistence, and B&R."
| * Modify LocaleManager#setApplicationLocales Javadoc to explicitly mentionPratyush More2022-01-181-0/+6
| | | | | | | | | | | | | | | | persistence, and B&R. Bug: 214016307 Test: Javadoc change only Change-Id: I0caa14bca01e052ecfb93a4f3205f2c284f6d58a
* | Allow the installer of an app to get the app's locales.“Ankita2022-01-181-6/+8
|/ | | | | | | | | | Change the api from system to public api so that 3p installers can also use it. Bug: 210981031 Bug: 193787310 Test: atest FrameworksServicesTests:LocaleManagerServiceTest Test: atest CtsLocaleManagerTestCases Change-Id: I98137941749725fbf2fe57d4a33d6abd8f99fffa
* Add APIs for supporting app-specific localePratyush More2021-11-031-0/+152
configurations. Bug: 194094301 Bug: 193787310 Test: atest CtsLocaleManagerTestCases Change-Id: Ia17cd99a27d593da3b4de1979457ae8ed870a4c6