Move SettingsLib icons to android.
Bug: 122263617 Test: make Change-Id: Ia2ab06561824656951fbd0019e9c921442c714e1
This commit is contained in:
@@ -171,7 +171,8 @@ public class BluetoothDevicePreferenceTest {
|
||||
.thenReturn(new BluetoothClass(BluetoothClass.Device.Major.IMAGING));
|
||||
|
||||
mPreference.onDeviceAttributesChanged();
|
||||
DrawableTestHelper.assertDrawableResId(mPreference.getIcon(), R.drawable.ic_settings_print);
|
||||
DrawableTestHelper.assertDrawableResId(mPreference.getIcon(),
|
||||
com.android.internal.R.drawable.ic_settings_print);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@@ -68,7 +68,7 @@ public class BluetoothSliceBuilderTest {
|
||||
|
||||
final SliceAction primaryAction = metadata.getPrimaryAction();
|
||||
final IconCompat expectedToggleIcon = IconCompat.createWithResource(mContext,
|
||||
R.drawable.ic_settings_bluetooth);
|
||||
com.android.internal.R.drawable.ic_settings_bluetooth);
|
||||
assertThat(primaryAction.getIcon().toString()).isEqualTo(expectedToggleIcon.toString());
|
||||
}
|
||||
|
||||
|
@@ -83,7 +83,8 @@ public class BluetoothDevicesSliceTest {
|
||||
mBluetoothDevicesSlice = spy(new BluetoothDevicesSlice(mContext));
|
||||
|
||||
// Mock the icon and detail intent of Bluetooth.
|
||||
mIcon = IconCompat.createWithResource(mContext, R.drawable.ic_settings_bluetooth);
|
||||
mIcon = IconCompat.createWithResource(mContext,
|
||||
com.android.internal.R.drawable.ic_settings_bluetooth);
|
||||
mDetailIntent = PendingIntent.getActivity(mContext, 0, new Intent("test action"), 0);
|
||||
doReturn(mIcon).when(mBluetoothDevicesSlice).getBluetoothDeviceIcon(any());
|
||||
doReturn(mDetailIntent).when(mBluetoothDevicesSlice).getBluetoothDetailIntent(any());
|
||||
@@ -208,4 +209,4 @@ public class BluetoothDevicesSliceTest {
|
||||
final CharSequence sliceTitle = metadata.getTitle();
|
||||
return TextUtils.equals(sliceTitle, title);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -47,7 +47,7 @@ public class LocationSliceTest {
|
||||
|
||||
final SliceAction primaryAction = metadata.getPrimaryAction();
|
||||
final IconCompat expectedToggleIcon = IconCompat.createWithResource(mContext,
|
||||
R.drawable.ic_signal_location);
|
||||
com.android.internal.R.drawable.ic_signal_location);
|
||||
assertThat(primaryAction.getIcon().toString()).isEqualTo(expectedToggleIcon.toString());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user