summaryrefslogtreecommitdiff
path: root/src/com/android/providers/tv/TransientRowHelper.java
AgeCommit message (Collapse)Author
2023-07-18TvProvider: Reduce synchronized blockSham Rathod
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
2018-03-29Use test DB helper for testsShubang
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
2017-04-19Use Settings.Global.BOOT_COUNT instead of System.currentTimeMillis()Dongwon Kang
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
2017-03-28Remove watch next programsConrad Chen
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
2017-02-16Add PreviewPrograms table in TvProviderDongwon Kang
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
2017-01-25Delete transient rows on bootDongwon Kang
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