diff options
author | Pinyao Ting <pinyaoting@google.com> | 2020-06-10 15:37:41 -0700 |
---|---|---|
committer | Pinyao Ting <pinyaoting@google.com> | 2020-06-10 16:01:57 -0700 |
commit | 427f4f67a716d95ba337dccc5f6bc52596bc82cf (patch) | |
tree | a5857bced9782265c2697be417b6217554204a92 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | b13bd0e90eb3cbead2cbab20cbff9465be393d42 (diff) |
Throw XmlParserException when client tag cannot be found when parsing
slice permissions.
There are three call-sites of SliceClientPermissions#createFrom:
1) SlicePermissionManager#writeBackup and
SlicePermissionManager#readRestore ensures the client tag exists before
calling SliceClientPermissions#createFrom.
2) SlicePermissionManager#getClient is expecting Exception from
SliceClientPermissions#createFrom when it fails to parse the xml, and
creates clean permission object accordingly. This CL ensures an
exception was thrown when the xml parsing cannot be completed.
Bug: 121144871
Test: run test suite in forrest
frameworks/base/services/tests/uiservicestests/src/com/android/server/slice
Change-Id: Id7a239f16b95d16ba17bf651d474dec86492ef47
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions