Fix atest build error in settings.fuelgauge.

Bug: 342963499
Fix: 342963499
Test: atest SettingsRoboTests:com.android.settings.fuelgauge
Change-Id: If34e7dd6af990dd4e678002e46c0e3794b9c0a61
This commit is contained in:
mxyyiyi
2024-05-27 15:01:15 +08:00
parent 5b0211ea75
commit 3b962e3b9d
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ import org.robolectric.RobolectricTestRunner;
public final class AppUsageEventEntityTest {
@Test
public void testBuilder_returnsExpectedResult() {
final long uid = 101L;
final int uid = 101;
final long userId = 1001L;
final long timestamp = 10001L;
final int appUsageEventType = 1;

View File

@@ -169,7 +169,7 @@ public class BatteryTestUtils {
Context context, long userId, long timestamp, String packageName, boolean multiple) {
final AppUsageEventEntity entity =
new AppUsageEventEntity(
/* uid= */ 101L,
/* uid= */ 101,
userId,
timestamp,
/* appUsageEventType= */ 2,