Alex Dale
6cac7125e5
Added a few edge case unittests for InvalidateEntry(). am: 1e5e221909 am: 4793f1f1b3 am: 6088db2efa am: 58bcf2e370 am: 73edc6be79
...
Change-Id: I48797bef32442a6fa79e4e82299c213ad3790bc3
2020-05-01 02:30:42 +00:00
Alex Dale
317257b7c7
Reworked DeleteEntry() into InvalidateEntry(). am: da48461ba2 am: 49458c55d1 am: 5f944c1602 am: 9c3d5ff0d6 am: f9ab63f0f3
...
Change-Id: Ib2a6dea57169d647dd50deee4e33e132fbe67391
2020-05-01 02:30:40 +00:00
Alex Dale
55a21a2951
Update AddEntry() for usage table changes. am: 66e3d69300 am: 4c97abd57a am: c15d453a9d am: 7c56669a4f am: 373103998b
...
Change-Id: I2665bf7b027aeaf5c9f937032f7425f3c1b052bd
2020-05-01 02:28:48 +00:00
Alex Dale
5cbaeb7f78
Added a few edge case unittests for InvalidateEntry(). am: 1e5e221909 am: 51f5315a62 am: 069de13b94 am: a2dace6651 am: 7f0d79407c
...
Change-Id: I4a137871799d5e47c9645ed0e378de7a558f452f
2020-05-01 02:28:45 +00:00
Alex Dale
794fa224fa
Reworked DeleteEntry() into InvalidateEntry(). am: da48461ba2 am: 44cc2500b3 am: 5558f13d57 am: 770e8a929f am: aef81bd383
...
Change-Id: I64abac7852cac94d073bc852c415e1aa13dbdd39
2020-05-01 02:28:43 +00:00
Alex Dale
73edc6be79
Added a few edge case unittests for InvalidateEntry(). am: 1e5e221909 am: 4793f1f1b3 am: 6088db2efa am: 58bcf2e370
...
Change-Id: Ib602ab8ac7cac6975750d6d59441a625487f7ad0
2020-05-01 02:14:05 +00:00
Alex Dale
f9ab63f0f3
Reworked DeleteEntry() into InvalidateEntry(). am: da48461ba2 am: 49458c55d1 am: 5f944c1602 am: 9c3d5ff0d6
...
Change-Id: Ic82c067187cd8d61f573c61aa6496eaacc3053f3
2020-05-01 02:14:04 +00:00
Alex Dale
373103998b
Update AddEntry() for usage table changes. am: 66e3d69300 am: 4c97abd57a am: c15d453a9d am: 7c56669a4f
...
Change-Id: Ic2cb6b4ead661ec1be3aabcf82c28cad2f7d37a5
2020-05-01 02:13:30 +00:00
Alex Dale
7f0d79407c
Added a few edge case unittests for InvalidateEntry(). am: 1e5e221909 am: 51f5315a62 am: 069de13b94 am: a2dace6651
...
Change-Id: I1d8f84baa78a9a21b86de3e88bc48b42e4c94f46
2020-05-01 02:13:21 +00:00
Alex Dale
aef81bd383
Reworked DeleteEntry() into InvalidateEntry(). am: da48461ba2 am: 44cc2500b3 am: 5558f13d57 am: 770e8a929f
...
Change-Id: I5749c58374f93ad5d6b28b0b97321924bb5cb2ac
2020-05-01 02:13:19 +00:00
Alex Dale
58bcf2e370
Added a few edge case unittests for InvalidateEntry(). am: 1e5e221909 am: 4793f1f1b3 am: 6088db2efa
...
Change-Id: I06bdbef715022fed7c6e6cb0931465639cd034e4
2020-05-01 01:57:56 +00:00
Alex Dale
9c3d5ff0d6
Reworked DeleteEntry() into InvalidateEntry(). am: da48461ba2 am: 49458c55d1 am: 5f944c1602
...
Change-Id: I5c0b42ed3428058c9b6bce1f999d760e686a7fc3
2020-05-01 01:57:55 +00:00
Alex Dale
7c56669a4f
Update AddEntry() for usage table changes. am: 66e3d69300 am: 4c97abd57a am: c15d453a9d
...
Change-Id: Ia8e996d1193cfabf99d854fee6e3f0eefcced1e5
2020-05-01 01:57:09 +00:00
Alex Dale
a2dace6651
Added a few edge case unittests for InvalidateEntry(). am: 1e5e221909 am: 51f5315a62 am: 069de13b94
...
Change-Id: I603ab32a265f409fb666024778e083066d82479d
2020-05-01 01:57:08 +00:00
Alex Dale
770e8a929f
Reworked DeleteEntry() into InvalidateEntry(). am: da48461ba2 am: 44cc2500b3 am: 5558f13d57
...
Change-Id: Ib25887b0a3111971813b518b4cbb9d0563a9a59f
2020-05-01 01:57:06 +00:00
Alex Dale
6088db2efa
Added a few edge case unittests for InvalidateEntry(). am: 1e5e221909 am: 4793f1f1b3
...
Change-Id: I3725b256afaf7d402ff0a903cdb54c42379f38cb
2020-05-01 01:38:42 +00:00
Alex Dale
5f944c1602
Reworked DeleteEntry() into InvalidateEntry(). am: da48461ba2 am: 49458c55d1
...
Change-Id: I7807c0cb554c18fbccea33b9946feca9dae60b26
2020-05-01 01:38:42 +00:00
Alex Dale
c15d453a9d
Update AddEntry() for usage table changes. am: 66e3d69300 am: 4c97abd57a
...
Change-Id: I01ab56cc902d455d2827af70e54ee57870a52be0
2020-05-01 01:38:03 +00:00
Alex Dale
069de13b94
Added a few edge case unittests for InvalidateEntry(). am: 1e5e221909 am: 51f5315a62
...
Change-Id: I2389b404ec92b17fac807fd15c2838678d2c3a82
2020-05-01 01:38:01 +00:00
Alex Dale
5558f13d57
Reworked DeleteEntry() into InvalidateEntry(). am: da48461ba2 am: 44cc2500b3
...
Change-Id: I858b69423e9eec2b1b96a35bc53cda1698503a3f
2020-05-01 01:38:00 +00:00
Alex Dale
4793f1f1b3
Added a few edge case unittests for InvalidateEntry(). am: 1e5e221909
...
Change-Id: I5f34d2c928d5e7c6bced7dd8d1f623ef1d651820
2020-05-01 01:22:35 +00:00
Alex Dale
49458c55d1
Reworked DeleteEntry() into InvalidateEntry(). am: da48461ba2
...
Change-Id: I3c73c57cfc6da856130ad7ba723dd60522285941
2020-05-01 01:22:33 +00:00
Alex Dale
4c97abd57a
Update AddEntry() for usage table changes. am: 66e3d69300
...
Change-Id: I83808cf7ebd0ed0f616766564864943fd152f7c3
2020-05-01 01:22:33 +00:00
Alex Dale
51f5315a62
Added a few edge case unittests for InvalidateEntry(). am: 1e5e221909
...
Change-Id: I3afd210c896fd0ffa794f1565bf7baee53e4b77e
2020-05-01 01:22:30 +00:00
Alex Dale
44cc2500b3
Reworked DeleteEntry() into InvalidateEntry(). am: da48461ba2
...
Change-Id: Ic6a6d107a138f9a2ad9b2a935751249587bf540e
2020-05-01 01:22:29 +00:00
Alex Dale
07d8bf77a1
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: d7f5a74ea3 am: f5d4746529 am: 12f443a173 am: 59d7cb045a am: 44d16c8deb
...
Change-Id: I23fe9332d9453f0d643cee1f8dd54e50b4e657cc
2020-05-01 01:07:52 +00:00
Alex Dale
01fc9c0085
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: 3c2ae73dba am: f3d01f6f96 am: a75453029c am: b29b9fbe6d
...
Change-Id: I9086a1479310042f274464cbeb22e3bd7526befb
2020-05-01 01:07:17 +00:00
Alex Dale
a17c91413a
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: d7f5a74ea3 am: f85508f4b3 am: 81f27573e1 am: 7ebcda2cb0
...
Change-Id: Id271c63a8f481686e31feb3a8f10798d70705fad
2020-05-01 01:07:01 +00:00
Alex Dale
1e5e221909
Added a few edge case unittests for InvalidateEntry().
...
[ Merge of http://go/wvgerrit/95365 ]
The changes made to how DeleteEntry (now InvalidateEntry) works
introduced a few additional edge cases which were not covered from the
previous set of unit tests.
Bug: 150887808
Bug: 149100568
Test: Linux unit tests and Android unit tests
Change-Id: I263b72fb708c6546294af23ae5ddbd2e82da34df
2020-04-30 18:00:25 -07:00
Alex Dale
da48461ba2
Reworked DeleteEntry() into InvalidateEntry().
...
[ Merge of http://go/wvgerrit/95406 ]
There was an issue with DeleteEntry() where it would result in an
invalid table state if shrinking the usage table when the number of
sessions is at its max.
This required changing how the usage table invalidates entries. Now,
after invalidating an entry (marking an entry as kStorageTypeUnknown)
the table is defragmented if specified to.
Defragmentation involves:
1) Move valid entries near the end of the table to the position of
invalid entries near the front of the table.
2) Shrinking the table to cut off trailing invalid entries.
This change updates the existing tests to pass, but still needs new
tests for some of the edge cases.
Bug: 150887808
Bug: 149100568
Test: Linux unit tests and Android unit tests
Change-Id: I70c7b296e5e4b367746fcdaabbf0f12dcfb39230
2020-04-30 18:00:25 -07:00
Alex Dale
66e3d69300
Update AddEntry() for usage table changes.
...
[ Merge of http://go/wvgerrit/96071 ]
Changes to how the usage table method InvalidateEntry() behaves
required additional changes to CDM code that uses this method.
This involved some refactoring to AddEntry(), moving the LRU
related code to its own function.
A few unittests had to be changed / removed as the moving
multiple entries changes expectations of several existing tests.
Several additional helper methods have been created to improve
readability. These include getters for information about the
usage table, a method for releasing stale entries, and a method of
recording LRU metrics.
Bug: 150890014
Bug: 150887808
Bug: 154269671
Test: Linux unit tests and Android unit tests
Change-Id: I11a98f9a2dea9b2ae57b37d7d4483a37be721763
2020-04-30 18:00:25 -07:00
Alex Dale
44d16c8deb
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: d7f5a74ea3 am: f5d4746529 am: 12f443a173 am: 59d7cb045a
...
Change-Id: Ife3299b4dd3938c95bf8858040978e9e1b4d2a5d
2020-05-01 00:54:14 +00:00
Alex Dale
b29b9fbe6d
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: 3c2ae73dba am: f3d01f6f96 am: a75453029c
...
Change-Id: Id7fcfe1989e19866664c5d6b8bd26734cabd725d
2020-05-01 00:53:56 +00:00
Alex Dale
7ebcda2cb0
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: d7f5a74ea3 am: f85508f4b3 am: 81f27573e1
...
Change-Id: Ia8d51da6c8b9e737c87b7ef3ee5a37cd6554c45a
2020-05-01 00:51:32 +00:00
Alex Dale
59d7cb045a
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: d7f5a74ea3 am: f5d4746529 am: 12f443a173
...
Change-Id: I705083ae9fc2ead6a8e6edd3cc4838d00d51a2bc
2020-05-01 00:51:26 +00:00
Alex Dale
a75453029c
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: 3c2ae73dba am: f3d01f6f96
...
Change-Id: Ife646617a97a9c84f28c1ed46ca2da23aa3b7814
2020-05-01 00:36:46 +00:00
Alex Dale
81f27573e1
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: d7f5a74ea3 am: f85508f4b3
...
Change-Id: Ia303de612ed165e912a2ec49943215cdb5614f89
2020-05-01 00:36:00 +00:00
Alex Dale
12f443a173
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: d7f5a74ea3 am: f5d4746529
...
Change-Id: Ieed0176425675853df00e2125904fa36a16be8ac
2020-05-01 00:35:53 +00:00
Alex Dale
f3d01f6f96
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: 3c2ae73dba
...
Change-Id: I51a25bfed2aae1632eae22d249ba368bf79c5ed8
2020-05-01 00:24:35 +00:00
Alex Dale
f85508f4b3
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: d7f5a74ea3
...
Change-Id: I3bca213757648556ed9ceb7b8ca0349ee170a119
2020-05-01 00:24:23 +00:00
Alex Dale
f5d4746529
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4 am: d7f5a74ea3
...
Change-Id: Idb87851939277a1950b0ad5605c48a772ae56a6d
2020-05-01 00:24:13 +00:00
Alex Dale
d7f5a74ea3
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4
...
Change-Id: Ia522d7b007a4088ff7f1812115196a06408ea186
2020-05-01 00:09:49 +00:00
Alex Dale
3c2ae73dba
Merge "Suppress error for removing lingering offline licenses." into rvc-dev am: 792e17a8c4
...
Change-Id: Ie2e4862f5415f46cd5c3a78a5c8651017f8507c2
2020-05-01 00:09:40 +00:00
Alex Dale
792e17a8c4
Merge "Suppress error for removing lingering offline licenses." into rvc-dev
2020-04-30 23:53:44 +00:00
Rahul Frias
de0912a567
Merge "Do not log nonces" into rvc-dev am: d627fdfdd4 am: da19e563f5 am: aa6c60fbbf am: faedb21020 am: 268155f42b am: cf7c3313f7
...
Change-Id: I15212ecf8823f2b8e363859514907aabb2c24a51
2020-04-30 22:04:40 +00:00
Rahul Frias
89cf14eff4
Merge "Do not log nonces" into rvc-dev am: d627fdfdd4 am: da19e563f5 am: c600c70f8c am: 4915580223 am: f05095a00d
...
Change-Id: I89fffd826aa9256db845f0f8710b6c126e2585ce
2020-04-30 22:03:37 +00:00
Rahul Frias
f7eba64dfc
Merge "Do not log nonces" into rvc-dev am: d627fdfdd4 am: d39e5f3ad3 am: 96a3893440 am: ee902bc63f am: 4040951907
...
Change-Id: Ie90039cb20cd6d6cdff05431d53cdf0278a77302
2020-04-30 22:02:13 +00:00
Rahul Frias
cf7c3313f7
Merge "Do not log nonces" into rvc-dev am: d627fdfdd4 am: da19e563f5 am: aa6c60fbbf am: faedb21020 am: 268155f42b
...
Change-Id: I595b0f1646ab82631d1fde77a45c894181551624
2020-04-30 21:48:46 +00:00
Rahul Frias
f05095a00d
Merge "Do not log nonces" into rvc-dev am: d627fdfdd4 am: da19e563f5 am: c600c70f8c am: 4915580223
...
Change-Id: I91e7a228fb3d77fe6e4748a731d04a2ebe87d0e7
2020-04-30 21:48:21 +00:00
Rahul Frias
4040951907
Merge "Do not log nonces" into rvc-dev am: d627fdfdd4 am: d39e5f3ad3 am: 96a3893440 am: ee902bc63f
...
Change-Id: I4f77136607465c1af9ff70d489bf76e4d89dea4e
2020-04-30 21:47:44 +00:00