summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2016-07-19 09:33:31 -0700
committerFelipe Leme <felipeal@google.com>2016-07-19 09:59:41 -0700
commit179923a6117ebea8be46520ef5d63eacbc3465fd (patch)
tree1ccfe93775e4246724469e79f9b9cf0b39ea2079 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentfb0ec9de846debcddfeadce4412b7e452eb2d1a7 (diff)
Improved storage size detection.
The total storage size was calculating by reading and multiplying the contents of /sys/block/mmcblk0/size and /sys/block/mmcblk0/queue/hw_sector_size. On some devices, such calculation doesn't work because: 1.The primary block is not /sys/block/mmcblk0 . 2.The sector size is not the right value to use. These 2 issues are temporarily addressed by providing alternative primary blocks and hardcoding the size (512 bytes). In the long term, the size should be calculated by vold, so each device could provide its own calculation if necessary. BUG: 30216622 Change-Id: I8f9a9f4f753d3c92bab9257062b61ed2b9d665c5 Fixes: 24128505
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions