Deprecate tuner filter 32 bit ID getter API.

The filter Id will be 64 on both 32-bit and 64-bit systems.

Bug: 197114423
Fix: 197114423
Test: atest android.media.tv.tuner.cts
Change-Id: I285e6008e0447138a48c971ce9ee7a1172f83116
This commit is contained in:
Hongguang
2021-08-23 19:53:40 -07:00
parent 3b81b74bd7
commit ed12cd22ae
2 changed files with 3 additions and 3 deletions

View File

@@ -6197,7 +6197,7 @@ package android.media.tv.tuner.filter {
method public void close();
method public int configure(@NonNull android.media.tv.tuner.filter.FilterConfiguration);
method public int flush();
method public int getId();
method @Deprecated public int getId();
method public long getIdLong();
method public int read(@NonNull byte[], long, long);
method public int setDataSource(@Nullable android.media.tv.tuner.filter.Filter);

View File

@@ -333,6 +333,7 @@ public class Filter implements AutoCloseable {
/**
* Gets the filter Id in 32-bit. For any Tuner SoC that supports 64-bit filter architecture,
* use {@link #getIdLong()}.
* @deprecated Use {@link #getIdLong()} for both 32-bit and 64-bit filter architectures.
*/
public int getId() {
synchronized (mLock) {
@@ -342,8 +343,7 @@ public class Filter implements AutoCloseable {
}
/**
* Gets the 64-bit filter Id. For any Tuner SoC that supports 32-bit filter architecture,
* use {@link #getId()}.
* Gets the filter Id.
*/
public long getIdLong() {
synchronized (mLock) {