1. 09 Dec, 2013 5 commits
    • Kenny Root's avatar
      ae50c1be
    • Kenny Root's avatar
      Late binding: supportsParameter is not newInstance · d00b7c37
      Kenny Root authored
      newInstance should not call supportsParameter since they're not the same
      thing. It is type-specific how the parameter is used, so it's not
      necessarily the parameter used for the constructor.
      
      The constructor type supplied to newInstance is only used for CertStore,
      but CertStore does not support the supportsParameter call. This was
      causing CertStore-related tests to fail since newInstance called into
      supportsParameter.
      
      Additionally, to make sure we throw the correct exceptions, we need to
      keep a list of valid parameters for all the types we know about. Right
      now this just means moving the special case that existed before into a
      HashMap and adding null entries for the other types we know about.
      Adding the null types allows the disambiguation from types we don't know
      about so we can throw an exception when a constructor parameter is
      supplied to a type that should not take one.
      
      Change-Id: Ia1755481df1bfa9f76dc4cf7eee5c966a8019396
      d00b7c37
    • Kenny Root's avatar
      Merge "Late binding: address review comments" · fda91677
      Kenny Root authored
      fda91677
    • Kenny Root's avatar
      Late binding: address review comments · 6d8a4f15
      Kenny Root authored
      The parameter could still be null at this point, but it should not be
      accepted since null obviously wouldn't match one of the given key
      classes or formats.
      
      Change-Id: I0ab4d6dc0d805232bf1b487320802b7a910ccc16
      6d8a4f15
    • Narayan Kamath's avatar
      f87d7d22
  2. 06 Dec, 2013 4 commits
    • Narayan Kamath's avatar
      Add a JNI wrapper over libziparchive. · 0c1869ed
      Narayan Kamath authored
      All functions delegate directly to the native code. We
      do not perform any sort of central directory or local file
      related lookups in the java layer.
      
      For each entry, libziparchive gives us an offset to the start
      of data for the entry and the compressed size. We use a
      RandomAccessFile to seek to that offset and then construct an
      InputStream that's bounded between [offset, offset + compressed_size).
      
      We reuse existing code (JarVerifier / Manifest) for certificate
      validation & collection.
      
      bug: 10193060
      
      Change-Id: I21eb4e6dc6aa8749e3f63830f9799e1f621d26e6
      0c1869ed
    • Narayan Kamath's avatar
      Merge "Fix Signature#getInstance." · 41e602b7
      Narayan Kamath authored
      41e602b7
    • Narayan Kamath's avatar
      Fix Signature#getInstance. · 96b5cd9e
      Narayan Kamath authored
      The returned class didn't override the full set of
      SignatureSpi methods, meaning that some method calls
      wouldn't be sent down to the SPI delegate.
      
      Also add some missing @Override annotations, remove
      pointless comments and make a private field final.
      
      bug: https://code.google.com/p/android/issues/detail?id=63139
      Change-Id: I00762213a4afad0dc69e385105043b01aa77bb95
      96b5cd9e
    • Kenny Root's avatar
      44676c37
  3. 05 Dec, 2013 7 commits
  4. 02 Dec, 2013 2 commits
  5. 28 Nov, 2013 4 commits
  6. 27 Nov, 2013 9 commits
  7. 26 Nov, 2013 9 commits