Files
android/libwvdrmengine/cdm/core/include
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
..
2020-02-19 11:44:35 -08:00
2019-06-03 13:53:31 -07:00
2020-04-03 22:33:40 +00:00
2020-02-03 14:45:32 -08:00
2020-02-19 11:44:35 -08:00
2020-02-03 14:45:32 -08:00
2020-02-03 14:45:32 -08:00
2020-02-18 22:33:47 -08:00
2020-02-18 22:33:47 -08:00
2020-02-15 01:34:02 -08:00
2020-02-18 22:33:47 -08:00