1. 18 Oct, 2016 7 commits
  2. 13 Oct, 2016 5 commits
    • Sungsoo's avatar
      ExifInterface: Provide backward compatibility · 2dbe1668
      Sungsoo authored
      ExifInterface.saveAttribute() didn't throw UnsupportedOperationException
      before. Use IOException instead of UnsupportedOperationException for
      backward compatibility.
      
      Bug: 30936376, Bug: 32068647, Bug: 31319086
      Change-Id: Ifb478db3af820eb846c5373d3a284367da3495a0
      2dbe1668
    • Sungsoo's avatar
      DO NOT MERGE) ExifInterface: Provide backward compatibility · 7ce92430
      Sungsoo authored
      ExifInterface.saveAttribute() didn't throw UnsupportedOperationException
      before. Use IOException instead of UnsupportedOperationException for
      backward compatibility.
      
      Bug: 30936376, Bug: 32068647, Bug: 31319086
      Change-Id: Iacc7b4d91d49edd7bece8f2e738a633a91025eca
      7ce92430
    • Sungsoo's avatar
      DO NOT MERGE) ExifInterface: Provide backward compatibility · 87a9ac70
      Sungsoo authored
      ExifInterface.saveAttribute() didn't throw UnsupportedOperationException
      before. Use IOException instead of UnsupportedOperationException for
      backward compatibility.
      
      Bug: 30936376, Bug: 32068647, Bug: 31319086
      Change-Id: Iacc7b4d91d49edd7bece8f2e738a633a91025eca
      87a9ac70
    • Sungsoo's avatar
      DO NOT MERGE) ExifInterface: Provide backward compatibility · 22bd3644
      Sungsoo authored
      ExifInterface.saveAttribute() didn't throw UnsupportedOperationException
      before. Use IOException instead of UnsupportedOperationException for
      backward compatibility.
      
      Bug: 30936376, Bug: 32068647, Bug: 31319086
      Change-Id: Iacc7b4d91d49edd7bece8f2e738a633a91025eca
      22bd3644
    • Sungsoo's avatar
      DO NOT MERGE) ExifInterface: Provide backward compatibility · c11f599a
      Sungsoo authored
      ExifInterface.saveAttribute() didn't throw UnsupportedOperationException
      before. Use IOException instead of UnsupportedOperationException for
      backward compatibility.
      
      Bug: 30936376, Bug: 32068647, Bug: 31319086
      Change-Id: Iacc7b4d91d49edd7bece8f2e738a633a91025eca
      c11f599a
  3. 30 Sep, 2016 1 commit
    • Philip P. Moltmann's avatar
      Do not access MTP devices when disabled. · 5201f1e6
      Philip P. Moltmann authored
      The USB data transfer is disabled we should not allow access MTP devices
      (e.g.
      usb sticks). We have two ways of accessing them: Either by mounting them
      or by creating a MTPDevice in an app.
      
      Of course an app could implement implement their own MTPDevice
      implementation. In this case we cannot enforce the policy without
      completely suppressing all MTP USB devices which would be too
      restrictive.
      
      Note: When the policy is set we do _not_ disconnect already connected
      MTP devices
      
      Fixes: 31472955
      Change-Id: I6080c48c49657102774b2b3b4d89ff030245a266
      5201f1e6
  4. 29 Sep, 2016 2 commits
  5. 27 Sep, 2016 1 commit
  6. 22 Sep, 2016 1 commit
    • Jaewan Kim's avatar
      DO NOT MERGE Check caller for sending media key to telephony service · d1641e8c
      Jaewan Kim authored
      Prevent sending media key events from the non-system app to the
      telephony service through the AudioManager.dispatchMediaKeyEvent()
      or sending media key broadcast directly.
      
      Bug: 29833954
      Tested: Installed malicious apps and confirmed that they don't work.
      Tested: Run CtsTelecomTestCases and CtsMediaTestCases
      Change-Id: I2a9e78196ba7455324e485f098f095d03b47ee15
      d1641e8c
  7. 16 Sep, 2016 1 commit
    • Eino-Ville Talvala's avatar
      Docs: Note that a Surface acts like a weak reference · c4faf0cb
      Eino-Ville Talvala authored
      This causes frequent programming errors, when developers assume
      that holding onto a Surface will keep its associated SurfaceTexture,
      ImageReader, etc, also alive.
      
      Bug: 31551063
      Test: m offline-sdk-docs, manual viewing of result
      Change-Id: I5fb5bb3e3c80c7d5d735417b1697e0fe9a62fc46
      c4faf0cb
  8. 15 Sep, 2016 2 commits
  9. 14 Sep, 2016 2 commits
  10. 09 Sep, 2016 2 commits
    • Eino-Ville Talvala's avatar
      DO NOT MERGE ANYWHERE: ImageReader: Add discardFreeBuffers method · e175aa82
      Eino-Ville Talvala authored
      This method (currently @hide) discards all cached buffers for
      the ImageReader, which can be useful to free up memory at the
      cost of reallocation time if more buffers are needed later.
      
      It has no effect on acquired Images, filled Images waiting to be
      acquired, or buffers being actively used by the source rendering to the
      Surface.
      
      Bug: 28695173
      Change-Id: I427a8ba4ad73a267083f843dbf228bfc53a730d9
      e175aa82
    • Jean-Michel Trivi's avatar
      Fix Zen mode for different notification usage types · e743bda5
      Jean-Michel Trivi authored
      ZenModeHelper was only considering a subset of all notification usage
       types. The code was also iterating over the usage values, expecting
       them to be contiguous, which will break with the addition of new
       usage values.
      The update consists in:
       - defining in AudioAttributes an array of expected usage types
       - defining the suppression behavior for each usage type
       - have ZenModeHelper query the behavior for each usage in
          order to apply the corresponding muting behavior.
      
      Bug 29009099
      
      Change-Id: If884dda6297f125c60c5775c757df4f782e22e53
      e743bda5
  11. 08 Sep, 2016 7 commits
  12. 25 Aug, 2016 1 commit
    • Mark Goldstein's avatar
      docs: Fix typo · 1c22ae29
      Mark Goldstein authored
      Bug: 25777114
      Change-Id: I5c34ceba8f3b76bd47e1c020956cef285bad59d7
      1c22ae29
  13. 23 Aug, 2016 1 commit
    • Sungsoo's avatar
      ExifInterface: Make saveAttributes throw an exception before change · a8f9a075
      Sungsoo authored
      ExifInterface object can be created with a unsupported file format.
      If saveAttribute is called with an unsupported file format, ExifInterface
      makes the file corrupted. This CL prevents those cases by throwing
      an exception before making any change on the file.
      
      Bug: 30936376
      Change-Id: I115a42601c774062485974042464abb0d65c35e9
      a8f9a075
  14. 29 Jul, 2016 4 commits
  15. 26 Jul, 2016 1 commit
    • Jean-Michel Trivi's avatar
      Change AudioRecordingConfiguration constructor parameter order · 74eb6f62
      Jean-Michel Trivi authored
      Switch the device and client AudioFormat parameters in the
        AudioRecordingConfiguration constructor, so it's the same
        order as the rest of the code involved in sending a callback
        when the recording configuration changes.
      
      Bug 30282058
      
      Change-Id: Iea417f02dcb644e3d4dacbc0e44ea4b2eac28840
      74eb6f62
  16. 25 Jul, 2016 1 commit
  17. 22 Jul, 2016 1 commit
    • Eino-Ville Talvala's avatar
      ImageReader: Add discardFreeBuffers method · 2e2aaf6e
      Eino-Ville Talvala authored
      This method (currently @hide) discards all cached buffers for
      the ImageReader, which can be useful to free up memory at the
      cost of reallocationt time if more buffers are needed later.
      
      It has no effect on acquired Images, filled Images waiting to be
      acquired, or buffers being actively used by the source rendering to the
      Surface.
      
      Bug: 28695173
      Change-Id: I427a8ba4ad73a267083f843dbf228bfc53a730d9
      2e2aaf6e