Commit Graph

1707 Commits

Author SHA1 Message Date
Fred Gylys-Colwell
42c7cc700c Turn off mips64 library
am: 19cd8db

* commit '19cd8db256a29c1bd6f16b420c0313679dca76ad':
  Turn off mips64 library
2016-03-23 17:51:42 +00:00
Fred Gylys-Colwell
19cd8db256 Turn off mips64 library
Merge from widevine repo of http://go/wvgerrit/17223

This CL turns off the mips64 bit build for widevine.  This is because
the level 3 mips32 library does not build and run correctly for a 64
bit target.

b/27786231

Change-Id: I3388d9ebc80ae3cf477a8a54adfd1f22dfac4dda
2016-03-23 07:54:31 -07:00
Rahul Frias
727960ded4 Merge "Address SessionSharingTest failures from WV request_license_test" into nyc-dev
am: f886f7f

* commit 'f886f7fc3dc541372d2c91bbd6726cee97e9bdbc':
  Address SessionSharingTest failures from WV request_license_test
2016-03-22 17:44:43 +00:00
Fred Gylys-Colwell
04049d8948 Merge "Change an ASSERT to an EXPECT" into nyc-dev
am: 45eeeed

* commit '45eeeed44490d0bc00b396d8276ed5231b4a662b':
  Change an ASSERT to an EXPECT
2016-03-22 17:32:28 +00:00
Rahul Frias
f886f7fc3d Merge "Address SessionSharingTest failures from WV request_license_test" into nyc-dev 2016-03-22 17:31:48 +00:00
Fred Gylys-Colwell
45eeeed444 Merge "Change an ASSERT to an EXPECT" into nyc-dev 2016-03-22 17:21:02 +00:00
Fred Gylys-Colwell
2efc6821d2 Change an ASSERT to an EXPECT
Merge from widevine repo of http://go/wvgerrit/17202

This allows more checks in the test to run.  Returning the correct
error code is less important than the next check, which verifies the
signature was not computed.

This helps diagnose b/21708882, but does not fix it.

b/27787064

Change-Id: I65306c54b77370951bc54e8ef9f6140f58bea32c
2016-03-22 10:12:18 -07:00
Rahul Frias
85d776c8b8 Address SessionSharingTest failures from WV request_license_test
[ Merge of http://go/wvgerrit/17204 ]

Sleep was being employed, to introduce a delay so that one license expired
but the other was still active. The duration was long enough that
occasionally the second license would also expire, causing the test to fail.
Reduce the sleep duration to correct this behaviour.

b/27673513

Change-Id: Ieef9100c98783c16fc5ab8fe345fa1dd26604f18
2016-03-21 15:29:08 -07:00
Fred Gylys-Colwell
38189dd3f7 Merge "Update to OEMCrypto Level 3 Libraries" into nyc-dev
am: ea77e37

* commit 'ea77e37eb78fdc36acfbc5ce560167978151fa8e':
  Update to OEMCrypto Level 3 Libraries
2016-03-21 17:43:56 +00:00
Fred Gylys-Colwell
ea77e37eb7 Merge "Update to OEMCrypto Level 3 Libraries" into nyc-dev 2016-03-21 17:34:21 +00:00
Jeff Tinker
f54adf6b67 Fix some vendor-specific error reporting
am: 65ed606

* commit '65ed60687283dd8165921e42c9e8e3bfcd91c489':
  Fix some vendor-specific error reporting
2016-03-18 21:44:36 +00:00
Jeff Tinker
65ed606872 Fix some vendor-specific error reporting
Some decryption errors were being reported as
vendor-unique diagnostic codes that were not generally
actionable by an app.  Recently a new
MediaCodec.CryptoException code was added so these types
of failures can be reported as ERROR_UNSUPPORTED_OPERATION,
in which case the app can use an alternate DRM
configuration in a way that does not require
vendor-specific handling. This change remaps this class
of decrypt errors to the new error code.

Merge of http://go/wvgerrit/17110

bug: 25929554
Change-Id: Iff44c2f04f9ee28d065fb17d59bca4032c5d55ca
2016-03-18 14:16:16 -07:00
Fred Gylys-Colwell
943044788b Update to OEMCrypto Level 3 Libraries
Merge from widevine of http://go/wvgerrit/17178

These are the OEMCrypto Level 3 libraries, built using a stable
version of GCC and build tools on nyc-dev.  Code changes are just
merged from master.  Aside from build tool updates, the CL contains a
fix for b/26567162.

Current version (as printed by oemcrypto/level3/print-version-strings):
level3/arm/libwvlevel3.a  Level3 Library 4445 Mar 17 2016 14:11:16
level3/x86/libwvlevel3.a  Level3 Library 4464 Mar 17 2016 13:14:40
level3/mips/libwvlevel3.a  Level3 Library 4465 Mar 17 2016 11:34:50

bug: 26917438
bug: 26567162
Change-Id: I07d526f28e61c5a9b66fa59b78041a93a99dc8e6
2016-03-18 11:16:51 -07:00
Fred Gylys-Colwell
9bbfaff2a7 OEMCrypto unit test with sample size = 160N+16
am: 6a10503

* commit '6a10503b61f0585e996d01a80b569d75082b1083':
  OEMCrypto unit test with sample size = 160N+16
2016-03-16 20:34:48 +00:00
Fred Gylys-Colwell
6a10503b61 OEMCrypto unit test with sample size = 160N+16
Merge from widevine of http://go/wvgerrit/17128

This CL adds a unit test for an edge case that would be handled
differently for HLS and CENC standards.  We enforce the CENC standard.

b/27524491

Change-Id: Ie3cdfaac0fe37dd0eb991179fd84f4e113e07dae
2016-03-16 11:48:43 -07:00
Brian Carlstrom
20dd705d96 vendor/widevine: Make Thread::run threadName argument required
am: 8186284683

* commit '8186284683b121141223db557f3875251a4ae7ff':
  vendor/widevine: Make Thread::run threadName argument required
2016-03-14 15:27:11 +00:00
Brian Carlstrom
8186284683 vendor/widevine: Make Thread::run threadName argument required
Bug: 27557176
Change-Id: I652bb1821190a20b059b70b9b8bacd079f731cbb
2016-03-12 16:08:29 -08:00
Rahul Frias
6b26c68426 Merge "Add CDM integration tests for HLS" into nyc-dev
am: 9df35002d6

* commit '9df35002d602925bea7034a7827682bef8f9803a':
  Add CDM integration tests for HLS
2016-03-11 18:15:55 +00:00
Rahul Frias
c874f8e709 Corrections to support HLS
am: cbde9109b6

* commit 'cbde9109b61beac47e93394f3e03b8fb52e8df97':
  Corrections to support HLS
2016-03-11 18:15:55 +00:00
Rahul Frias
9df35002d6 Merge "Add CDM integration tests for HLS" into nyc-dev 2016-03-11 18:08:55 +00:00
Rahul Frias
59580f40ab Add CDM integration tests for HLS
[ Merge of https://go/wvgerrit/17083 ]

b/27559429

Change-Id: I65a0a163e0e14bf711c257d7ab2c9486ec002c07
2016-03-09 01:13:47 -08:00
Rahul Frias
cbde9109b6 Corrections to support HLS
[ Merge of https://go/wvgerrit/17055 ]

There are a few bugs that need to be addressed to get HLS to work.

* Content ID in json init data is base64 encoded and needs to be decoded
  before being added to the WidevineCencHeader proto.
* Protection scheme was not set in the WidevineCencHeader proto.
* HLS initialization data should be sent as a CENC content identification
  in a license request.

b/20630275

Change-Id: Ie0ac33ac061931df6f26c0afbf3e62e5d01e5041
2016-03-09 01:10:01 -08:00
Fred Gylys-Colwell
8f609696f8 Update OEMCrypto v11 Delta Document
am: ca1bd5cefc

* commit 'ca1bd5cefc6736dc63ff4da728212dd734daff18':
  Update OEMCrypto v11 Delta Document
2016-03-07 21:36:32 +00:00
Fred Gylys-Colwell
ca1bd5cefc Update OEMCrypto v11 Delta Document
Merge of http://go/wvgerrit/17040

The delta document specified the wrong error code if
Minimum_Security_Patch_Level is not valid.  The correct error is
OEMCrypto_ERROR_UNKNOWN_FAILURE.

b/27524999

Change-Id: I0c5d9b6d40b384ae3550348569d78c60093a65d4
2016-03-07 12:04:25 -08:00
Rahul Frias
04312971a5 DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer am: 58bad94991 am: 1eeb1ee359 am: a060a58acb am: a8330e5706 -s ours
am: c60d238783  -s ours

* commit 'c60d2387839914a2d6dc0583416b66f458208ef0':
  DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer
2016-03-04 18:30:34 +00:00
Rahul Frias
c60d238783 DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer am: 58bad94991 am: 1eeb1ee359 am: a060a58acb
am: a8330e5706  -s ours

* commit 'a8330e5706d3c83fbfb43b6a6be751981f2cfc67':
  DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer
2016-03-04 18:26:35 +00:00
Rahul Frias
a8330e5706 DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer am: 58bad94991 am: 1eeb1ee359
am: a060a58acb

* commit 'a060a58acbbbae0b37a8ff067e90f8f30d17f818':
  DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer
2016-03-04 18:24:34 +00:00
Rahul Frias
a060a58acb DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer am: 58bad94991
am: 1eeb1ee359

* commit '1eeb1ee3590095a6cc39b774e33ac6dd26b18f9c':
  DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer
2016-03-04 18:22:33 +00:00
Rahul Frias
1eeb1ee359 DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer
am: 58bad94991

* commit '58bad949913fc9311e9318d5d7a5f8f06a592367':
  DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer
2016-03-04 18:20:31 +00:00
Rahul Frias
58bad94991 DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer
[ Merge from http://go/wvgerrit/16499 ]

Passing clear subsamples to OEMCrypto_CopyBuffer and encrypted subsamples
to OEMCrypto_DecryptCTR was causing performance issues as a lack of crypto
session information made it hard to associate clear and encrypted
subsamples with each other.

[ Based on a patch from Kelly Ren/Qualcomm ]

b/26538744

Change-Id: I4644f197b2ec481f6aa89d3fce29b22ebb7b0c06
(cherry picked from commit e3724815c6)
2016-03-04 00:28:13 +00:00
Rahul Frias
592dbb2988 Merge "Use session with longest remaining duration when session sharing is used." into nyc-dev
am: 8df3e060b1

* commit '8df3e060b18588efd73fde363bb65a38be41bf21':
  Use session with longest remaining duration when session sharing is used.
2016-02-25 22:40:00 +00:00
Rahul Frias
8df3e060b1 Merge "Use session with longest remaining duration when session sharing is used." into nyc-dev 2016-02-25 22:29:50 +00:00
Fred Gylys-Colwell
3a905eb8d5 Merge "Re-apply SimultaneousDecrypt tests" 2016-02-25 22:26:09 +00:00
Fred Gylys-Colwell
213fee8bb7 Re-apply SimultaneousDecrypt tests
A recent merge accidentally removed the unit tests
SimultaneousDecrypt* from oemcrypto_test.  Also the unit test
GetKeyDataNullPointer was disabled.  This CL puts those tests back in.

bug: 26892550

Change-Id: I9d8f0a38e65727231543248135366331a6f52b02
2016-02-25 22:17:29 +00:00
Edwin Wong
6b9b237dea Update Widevine classic integration guide.
am: 81588d4b1a

* commit '81588d4b1ad2add3909e038b25f29e30681f7086':
  Update Widevine classic integration guide.
2016-02-24 21:33:24 +00:00
Rahul Frias
aefd104981 Use session with longest remaining duration when session sharing is used.
[ Merge of https://go/wvgerrit/16940 ]

An alternate scenario to renewing keys is to load the same keys in
a separate session and make use of them by using the session sharing
feature.

Session sharing involves iterating through a map of sessions and
returning the first session that contains the Key ID. In certain cases
(license about to expire) we might prefer an alternate session
be chosen.

Licenses may expire in two ways. Policy engine, driven by a 1 second
timer may detect expiry and send an asynchronous event. OEMCrypto may
also detect expiry based on information in the key control block
and return an error during decryption. It is possible that these
may differ by upto a second. This can lead to issues where decryption
fails but EVENT_KEY_EXPIRED is not generated till later.

It is possible to address this by using information from both timers
to notify the app about expiry. To implement this correctly will
add complexity and require synchronization between threads. To avoid
this an alternate solution is, if session sharing is used, to pick
the session that has a license with the longest remaining validity.

b/27041140

Change-Id: I398cc4c10ee3a2f192d4a0befe7c8a469dd5bf86
2016-02-24 10:22:18 -08:00
Edwin Wong
81588d4b1a Update Widevine classic integration guide.
Update "Deliverables: section 7.5 to include instructions for N.
Update version to 2.4.

bug:27301749
Change-Id: I84ddaee65325f1efe9da8d9963075b864cf236a2
2016-02-23 18:11:01 -08:00
Edwin Wong
3fc57d379e Update Widevine classic integration guide. am: 9790ffb8a8 am: 311d3f75c0 am: fa5eea4b39 am: 42ffb9159b
am: 8f6f46aee9

* commit '8f6f46aee9191c41d3844d85a5bf52dcdf8ee188':
  Update Widevine classic integration guide.
2016-02-23 02:05:11 +00:00
Edwin Wong
8f6f46aee9 Update Widevine classic integration guide. am: 9790ffb8a8 am: 311d3f75c0 am: fa5eea4b39
am: 42ffb9159b

* commit '42ffb9159bc071426f73c4cecf2c206be654acd5':
  Update Widevine classic integration guide.
2016-02-23 01:50:45 +00:00
Edwin Wong
42ffb9159b Update Widevine classic integration guide. am: 9790ffb8a8 am: 311d3f75c0
am: fa5eea4b39

* commit 'fa5eea4b3924aacea611b528656442c2769af0e5':
  Update Widevine classic integration guide.
2016-02-23 01:44:14 +00:00
Edwin Wong
fa5eea4b39 Update Widevine classic integration guide. am: 9790ffb8a8
am: 311d3f75c0

* commit '311d3f75c0019bd46dc92aff94322ff6d84ce26b':
  Update Widevine classic integration guide.
2016-02-23 01:37:34 +00:00
Edwin Wong
311d3f75c0 Update Widevine classic integration guide.
am: 9790ffb8a8

* commit '9790ffb8a8fe18d2d58076a3ed0ed1d825406eaf':
  Update Widevine classic integration guide.
2016-02-23 01:30:46 +00:00
Edwin Wong
9790ffb8a8 Update Widevine classic integration guide.
Update "Deliverables: section 7.5 to include instructions for M.
Update version to 2.3.

bug:27199720
Change-Id: I55b6177f3e3e97763c6c1721836ad19ff457351f
2016-02-22 15:22:11 -08:00
Aaron Vaage
47c24ec13f Removing old profiler files
am: 3de6b6284d

* commit '3de6b6284d81d71435bf5ab2b8e257d117ec84d6':
  Removing old profiler files
2016-02-22 22:58:52 +00:00
Aaron Vaage
3de6b6284d Removing old profiler files
When merging the change from Widevine's repo over to NYC,
some deletes were missed. This change removed the unused
classes profiler_session and stats.

The make file still had a reference to Stats, which was
likely due to a merge conflict.

Change-Id: Ic39baafab4bfd84e2b462f6749761c8a228244c7
2016-02-22 21:17:38 +00:00
Kyle Alexander
02ce783087 Merge "Disable DroidGuard during unit tests" into nyc-dev
am: e69a4fc6dd

* commit 'e69a4fc6dd1b3af6707ee6bd216874c97a0c08b2':
  Disable DroidGuard during unit tests
2016-02-13 06:25:13 +00:00
Kyle Alexander
e69a4fc6dd Merge "Disable DroidGuard during unit tests" into nyc-dev 2016-02-13 06:16:56 +00:00
Aaron Vaage
748cbff9f2 OEMCrypto Profiler - Merge of Widevine Updates
am: 0d77fecfb5

* commit '0d77fecfb50d003f349fc38367fbf6539da87741':
  OEMCrypto Profiler - Merge of Widevine Updates
2016-02-13 01:20:02 +00:00
Kyle Alexander
b756eb5db2 Disable DroidGuard during unit tests
This aligns our test script with the functionality found in our TF
test configuration for preventing concurrency issues with DroidGuard.

Matching Widevine cl: go/wvgerrit/16791

Change-Id: Icc891de0a5f3795d8582b21e1bcf734049ddbf42
2016-02-12 16:45:20 -08:00
Aaron Vaage
0d77fecfb5 OEMCrypto Profiler - Merge of Widevine Updates
This change is a merge of the following changes:
1. Remove MultipleSessions (go/wvgerrit/16763)
2. Increase Memory Budget (go/wvgerrit/16764)
3. Fixing Possible Integer Overflow (go/wvgerrit/16765)
4. Creating Call Table (go/wvgerrit/16766)
5. Creating Call History (go/wvgerrit/16767)
6. Connecting Profiled Scope (go/wvgerrit/16768)
7. Adding Call Table Version Number (go/wvgerrit/16780)
8. Add Version Number to Call History (go/wvgerrit/16781)

bug: 27157796

Change-Id: Ia3f088a1714f3f5b426fee6141daa4ea8d832cf4
2016-02-13 00:27:09 +00:00