summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2016-01-22 09:44:57 -0800
committerFelipe Leme <felipeal@google.com>2016-01-22 10:50:11 -0800
commit1b103238b90ca0aa7a2dcaaf0912361d583367a9 (patch)
treecc552a3339faed9131e3379d1bc50d1518f0edab /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentaae84105d1b8cfe6144afbb82bc70481cb39f8c8 (diff)
Created new public API so applications can customize its metered network
usage while running in background. The new API is 'int getRestrictBackgroundStatus()' and returns the following values: - RESTRICT_BACKGROUND_STATUS_DISABLED: no restrictions - RESTRICT_BACKGROUND_STATUS_WHITELISTED: restriction but app is whitelisted - RESTRICT_BACKGROUND_STATUS_ENABLED: full restriction The proper way to interprete these values for using metered networks while running on background is: - When disabled, there is no restriction and the application could use the metered networks freely. - When whitelisted, the application can use the metered network, but should try to minimize the usage. - When enabled, the application should not try to use metered networks at all, since the usage will be denied. BUG: 26451391 Change-Id: If07d42bb88e4c02802df0234861f38aef2cfead7
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions