Age | Commit message (Collapse) | Author |
|
Remove synchronized from ensureOldTransientRowsDeleted method
and make smaller critical section synchronized to reduce chances
of ANR.
Test: atest com.android.providers.tv.TransientRowHelperTests
Bug: 259445912
Change-Id: Icd5029efa04e1239704cc2a81c43a1485f256f04
|
|
to avoid clearing the real provider data when running tests
Bug: 77228191
Test: make TvProvider; push & install; runtest --path packages/providers/TvProvider/tests/
Change-Id: I06c546a03c44f019c51c576ee7184483650e74a8
|
|
System.currentTimeMillis() is not reliable in boot phase since NTP
is not guranteed to be run before apps start.
Test: runtest --path packages/providers/TvProvider/tests/
Bug: 37321377
Change-Id: I33b0d71a9bba9ad83dff53aefe9dfb776508863a
|
|
Removes watch next programs when its package is removed or it's transient.
Test: runtest --path packages/providers/TvProvider/tests/
Bug: 34809881
Change-Id: If9bd8f319fa7c4ac60721573792fdbee07f4a15e
|
|
Currently, Programs class is being used for storing both linear
tv program and preview program. This change adds PreviewPrograms
class for clear separation.
Test: build and cts-tradefed run cts -m CtsTvTestCases
Bug: 34853064
Change-Id: I1ef2cb4abf410b6b70ea6e46d52f7c3f14781955
|
|
Implementation background: DB operation should be done in onCreate
to prevent possible ANR per its documentation. Also, onCreate is
usually called when the TvProvider is firstly used, so the actual
benefit is low even we can do so.
Test: passes newly added test cases
Bug: 34160270
Change-Id: I41f0488662b74e645dc17e1a852266eb6e691c9b
|