[Audiosharing] Rename CallsAndAlarms components
Bug: 305620450 Test: atest Change-Id: I470bc3300fe385c6a2e03c4623204d58c697c89e
This commit is contained in:
@@ -51,7 +51,7 @@ import java.util.ArrayList;
|
||||
ShadowAlertDialogCompat.class,
|
||||
ShadowBluetoothAdapter.class,
|
||||
})
|
||||
public class CallsAndAlarmsDialogFragmentTest {
|
||||
public class AudioSharingCallAudioDialogFragmentTest {
|
||||
@Rule public final MockitoRule mocks = MockitoJUnit.rule();
|
||||
@Rule public final SetFlagsRule mSetFlagsRule = new SetFlagsRule();
|
||||
|
||||
@@ -64,7 +64,7 @@ public class CallsAndAlarmsDialogFragmentTest {
|
||||
new AudioSharingDeviceItem(TEST_DEVICE_NAME2, /* groupId= */ 1, /* isActive= */ true);
|
||||
|
||||
private Fragment mParent;
|
||||
private CallsAndAlarmsDialogFragment mFragment;
|
||||
private AudioSharingCallAudioDialogFragment mFragment;
|
||||
private ShadowBluetoothAdapter mShadowBluetoothAdapter;
|
||||
|
||||
@Before
|
||||
@@ -76,7 +76,7 @@ public class CallsAndAlarmsDialogFragmentTest {
|
||||
BluetoothStatusCodes.FEATURE_SUPPORTED);
|
||||
mShadowBluetoothAdapter.setIsLeAudioBroadcastAssistantSupported(
|
||||
BluetoothStatusCodes.FEATURE_SUPPORTED);
|
||||
mFragment = new CallsAndAlarmsDialogFragment();
|
||||
mFragment = new AudioSharingCallAudioDialogFragment();
|
||||
mParent = new Fragment();
|
||||
FragmentController.setupFragment(
|
||||
mParent, FragmentActivity.class, /* containerViewId= */ 0, /* bundle= */ null);
|
||||
@@ -88,7 +88,7 @@ import java.util.List;
|
||||
ShadowBluetoothUtils.class,
|
||||
ShadowThreadUtils.class,
|
||||
})
|
||||
public class CallsAndAlarmsPreferenceControllerTest {
|
||||
public class AudioSharingCallAudioPreferenceControllerTest {
|
||||
private static final String PREF_KEY = "calls_and_alarms";
|
||||
private static final String TEST_DEVICE_NAME1 = "test1";
|
||||
private static final String TEST_DEVICE_NAME2 = "test2";
|
||||
@@ -118,7 +118,7 @@ public class CallsAndAlarmsPreferenceControllerTest {
|
||||
@Mock private CachedBluetoothDevice mCachedDevice3;
|
||||
@Mock private BluetoothLeBroadcastReceiveState mState;
|
||||
@Mock private ContentResolver mContentResolver;
|
||||
private CallsAndAlarmsPreferenceController mController;
|
||||
private AudioSharingCallAudioPreferenceController mController;
|
||||
@Spy private ContentObserver mContentObserver;
|
||||
private ShadowBluetoothAdapter mShadowBluetoothAdapter;
|
||||
private LocalBluetoothManager mBtManager;
|
||||
@@ -151,7 +151,7 @@ public class CallsAndAlarmsPreferenceControllerTest {
|
||||
bisSyncState.add(1L);
|
||||
when(mState.getBisSyncState()).thenReturn(bisSyncState);
|
||||
when(mContext.getContentResolver()).thenReturn(mContentResolver);
|
||||
mController = new CallsAndAlarmsPreferenceController(mContext);
|
||||
mController = new AudioSharingCallAudioPreferenceController(mContext);
|
||||
mController.init(null);
|
||||
mContentObserver = mController.getSettingsObserver();
|
||||
mPreference = new Preference(mContext);
|
||||
Reference in New Issue
Block a user