diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-05-20 02:12:33 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-05-20 02:12:33 +0000 |
commit | e1d802ae43c72d495595c46d4d05d6d80a6b7a94 (patch) | |
tree | d42374af4f0c3d60db98447cd3e7a7feb4cd01ce /automotive/vehicle | |
parent | b2a4e3c9d553da5000de1c930eb4b0f4eb437784 (diff) | |
parent | 38cbff902747b2e6134ae116a34d2e50b66ae7a5 (diff) | |
download | platform_hardware_interfaces-e1d802ae43c72d495595c46d4d05d6d80a6b7a94.tar.gz platform_hardware_interfaces-e1d802ae43c72d495595c46d4d05d6d80a6b7a94.tar.bz2 platform_hardware_interfaces-e1d802ae43c72d495595c46d4d05d6d80a6b7a94.zip |
Merge "Added userLocales to InitialUserInfoResponse." into rvc-dev am: 38cbff9027
Change-Id: I7810b73ae561314328883b98374073806048b6e8
Diffstat (limited to 'automotive/vehicle')
-rw-r--r-- | automotive/vehicle/2.0/types.hal | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/automotive/vehicle/2.0/types.hal b/automotive/vehicle/2.0/types.hal index 2e6fa25c5e..341aae79cd 100644 --- a/automotive/vehicle/2.0/types.hal +++ b/automotive/vehicle/2.0/types.hal @@ -2527,14 +2527,21 @@ enum VehicleProperty : int32_t { * int32[5]: 0 // user #0 (usersInfo.existingUsers[0].userId) * int32[6]: 1 // flags of user #0 (usersInfo.existingUsers[0].flags) * - * And if the HAL want to respond with the creation of an admin user called "Admin", the + * And if the HAL want to respond with the creation of an admin user called "Owner", the * response would be: * - * int32[0]: 42 // must match the request id from the request - * int32[1]: 2 // action = InitialUserInfoResponseAction::CREATE - * int32[2]: -1 // userToSwitchOrCreate.userId (not used as user will be created) - * int32[3]: 8 // userToSwitchOrCreate.flags = ADMIN - * string: "Admin" // userNameToCreate + * int32[0]: 42 // must match the request id from the request + * int32[1]: 2 // action = InitialUserInfoResponseAction::CREATE + * int32[2]: -1 // userToSwitchOrCreate.userId (not used as user will be created) + * int32[3]: 8 // userToSwitchOrCreate.flags = ADMIN + * string: "||Owner" // userLocales + separator + userNameToCreate + * + * Notice the string value represents multiple values, separated by ||. The first value is the + * (optional) system locales for the user to be created (in this case, it's empty, meaning it + * will use Android's default value), while the second value is the (also optional) name of the + * to user to be created (when the type of response is InitialUserInfoResponseAction:CREATE). + * For example, to create the same "Owner" user with "en-US" and "pt-BR" locales, the string + * value of the response would be "en-US,pt-BR||Owner". * * NOTE: if the HAL doesn't support user management, then it should not define this property, * which in turn would disable the other user-related properties (for example, the Android @@ -4367,6 +4374,12 @@ struct InitialUserInfoResponse { * Name of the user that should be created. */ string userNameToCreate; + + /** + * System locales of the initial user (value will be passed as-is to + * android.provider.Settings.System.SYSTEM_LOCALES) + */ + string userLocales; }; /** |