platform_hardware_interfaces/renderscript/1.0/default
Michael Butler fd14e27b89 Fix RS HIDL server, pass data by bytes instead of by elements.
Our current stack:
  API->API_TO_HAL_translator->HAL
          ->HAL_TO_Implementation_translator->Implementation

  For most APIs:
  - API passes objectCount.
  - HAL expects objectCount.
  - Implementation expects objectCount.

  For APIs like ScriptGroupCreate:
  - API passes byteCount. And unfortunately, these APIs are part of
    NDK, we could not make them also passing objectCount like others.
  - HAL expects objectCount.
  - Implementation expects byteCount.

  So that both API_TO_HAL_translator and
  HAL_TO_Implementation_translator should correctly convert input
  objectCount/byteCount to byteCount/objectCount.

  This CL only fixes the HAL_TO_Implementation_translator part,
  whereas aosp/356395 fixes the API_TO_HAL_translator part. Both
  parts were mistakenly using byteCount as objectCount, causing
  potential out-of-bound access.

Bug: 36404879
Test: mm on angler
Change-Id: I28541a8926aeafece40e2a3f664bda67e26a34a2
2017-03-29 17:09:57 -07:00
..
Android.bp Add hidl_default and make modules use hidl_default. 2017-03-08 16:22:00 -08:00
Context.cpp Fix RS HIDL server, pass data by bytes instead of by elements. 2017-03-29 17:09:57 -07:00
Context.h Fix mips-related build breakage. 2017-02-21 11:56:20 -08:00
Device.cpp RenderScript HIDL HAL definition and server-side implementation. 2017-02-21 11:55:32 -08:00
Device.h RenderScript HIDL HAL definition and server-side implementation. 2017-02-21 11:55:32 -08:00