OSDN Git Service

Added getProfileIds method returning array of userIds
authorFyodor Kupolov <fkupolov@google.com>
Thu, 7 Apr 2016 23:46:18 +0000 (16:46 -0700)
committerFyodor Kupolov <fkupolov@google.com>
Thu, 7 Apr 2016 23:46:18 +0000 (16:46 -0700)
commit4a4af5aec8e6367a022ca7da68564dce98a15841
tree2e7fe00a558b17bb9b0a3f1306d59db267a638d5
parent36cce830b9319985b138432b89ea1022acf68785
Added getProfileIds method returning array of userIds

Previously many usages of UserManager.getProfiles and getEnabledProfiles
were only using ids of returned users. Given that the list of users needs
to be parceled and unparceled for Binder calls, returning array of ids
minimizes memory usage and serialization time.

A new method getProfileIds was introduced which returns an array of userIds.
Existing method calls were updated where appropriate.

Bug: 27705805
Change-Id: Ib042f38d53d95d3b07cda7f824e5cb8c06cd10f5
src/com/android/settings/CredentialStorage.java
src/com/android/settings/Utils.java