Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6954e87 authored by jasonwshsu's avatar jasonwshsu Committed by Jason Hsu
Browse files

Fix some VisibleForTesting usage problem in Metadata

* It will cause lint error "Should only be accessed from tests or within private scope"

Bug: 377101095
Test: m Bluetooth
Change-Id: I83f27140f99d92ed9462bab746352fd8360b7700
parent 3a841ac6
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -28,13 +28,11 @@ import androidx.room.Embedded;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import com.android.internal.annotations.VisibleForTesting;

import java.util.ArrayList;
import java.util.List;

@Entity(tableName = "metadata")
@VisibleForTesting

public class Metadata {
    @PrimaryKey @NonNull private String address;

@@ -117,7 +115,6 @@ public class Metadata {
        }
    }

    @VisibleForTesting
    public String getAddress() {
        return address;
    }
@@ -205,7 +202,6 @@ public class Metadata {
        }
    }

    @VisibleForTesting
    public int getProfileConnectionPolicy(int profile) {
        switch (profile) {
            case BluetoothProfile.A2DP:
@@ -345,7 +341,6 @@ public class Metadata {
        }
    }

    @VisibleForTesting
    public byte[] getCustomizedMeta(int key) {
        byte[] value = null;
        switch (key) {