commit | acf3858bf3e99ba354fdf082f1547832485d5368 | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Fri Oct 04 11:53:42 2019 -0700 |
committer | Makoto Onuki <omakoto@google.com> | Mon Oct 07 10:09:45 2019 -0700 |
tree | c2958519708c7d4de9e7a7434e3840f13bd738a6 | |
parent | 496d47ab030e56022ede4012cba8771f54d079ad [diff] |
Optimize UserHandle.of() There will be more calls to *ForUser() APIs over time by mainline modules. Let's avoid creating new objects in common cases. Bug: 142134660 Fix: 140429319 Test: atest cts/tests/app/src/android/app/cts/UserHandleTest.java Change-Id: Ie71850bd08a8d9831232ddb40807ae49e3a56841