Keystore 2.0: Small performance gain

When 'alias' does not start with 'keystore2_grant_id_prefix',
we'll stop looking immediately, instead of continuing to look
throughout 'alias' for further substring matches.

Test: TreeHugger
Bug: 173546268
Bug: 171305607
Bug: 175068876
Change-Id: I40057abce165b18e6bc0cb38daebef81401b5a72
1 file changed