summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2019-03-04 16:04:42 +0000
committerTony Mak <tonymak@google.com>2019-03-06 13:27:53 +0000
commit9a3c1f1dfe539aca83bd05f4269553b588dba664 (patch)
tree9014a1a8cf3a64cd930eef85aa1c0dd6c2686137 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent084e47170359daf49374b0163f04fe2c6f0c1e93 (diff)
Configurable NAS by using DeviceConfig
The latest plan is only system apps with a certain privilege permission could become NAS. And DeviceConfig could specify any of these valid candidate to be the default NAS. So the logic would be like this: 1. If user has set the NAS manually, NMS will persist the user_set bit and never mess with it. 2. If it is not the case, NMS will try the NAS defined in DeviceConfig, and then the one defined in config.xml Also added some new shell commands for easy debugging. Test: atest NotificationAssistantTest.java Test: atest NotificationManagerServiceTest.java Test: Use "device_config put" command to set a valid one. Observe that NAS is updated and persisted across reboot. Test: Repeat the command with an invalid one, observe that NAS is not updated. Test: Go to settings, set a NAS, and repeat the device_config command, observe that NAS is not changed. Test: Go to settings, set NAS to be none. Reboot the device, and "none" is persisted. FIXES: 123566150 Change-Id: Ibf8e498944afd5d1fa8659a856a8abdcce41f092
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions