/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryLevelDataTest.java | 45 final List<Long> timestamps = List.of( in getDailyTimestamps_allDataInOneHour_returnExpectedList() local 54 assertThat(BatteryLevelData.getDailyTimestamps(timestamps)).isEqualTo(expectedTimestamps); in getDailyTimestamps_allDataInOneHour_returnExpectedList() 60 final List<Long> timestamps = List.of( in getDailyTimestamps_OneHourDataPerDay_returnExpectedList() local 71 assertThat(BatteryLevelData.getDailyTimestamps(timestamps)).isEqualTo(expectedTimestamps); in getDailyTimestamps_OneHourDataPerDay_returnExpectedList() 77 final List<Long> timestamps = List.of( in getDailyTimestamps_OneDayData_returnExpectedList() local 89 assertThat(BatteryLevelData.getDailyTimestamps(timestamps)).isEqualTo(expectedTimestamps); in getDailyTimestamps_OneDayData_returnExpectedList() 95 final List<Long> timestamps = List.of( in getDailyTimestamps_MultipleDaysData_returnExpectedList() local 109 assertThat(BatteryLevelData.getDailyTimestamps(timestamps)).isEqualTo(expectedTimestamps); in getDailyTimestamps_MultipleDaysData_returnExpectedList() 115 final List<Long> timestamps = List.of( in getDailyTimestamps_FirstDayOneHourData_returnExpectedList() local 129 assertThat(BatteryLevelData.getDailyTimestamps(timestamps)).isEqualTo(expectedTimestamps); in getDailyTimestamps_FirstDayOneHourData_returnExpectedList() [all …]
|
D | DataProcessManagerTest.java | 303 final long[] timestamps = { in getBatteryLevelData_allDataInOneHour_returnExpectedResult() local 308 DataProcessManager.sFakeBatteryHistoryMap = createHistoryMap(timestamps, levels); in getBatteryLevelData_allDataInOneHour_returnExpectedResult() 309 DataProcessor.sTestCurrentTimeMillis = timestamps[timestamps.length - 1]; in getBatteryLevelData_allDataInOneHour_returnExpectedResult() 335 final long[] timestamps = {1640966400000L, 1640970000000L}; in getBatteryLevelData_returnExpectedResult() local 337 DataProcessManager.sFakeBatteryHistoryMap = createHistoryMap(timestamps, levels); in getBatteryLevelData_returnExpectedResult() 338 DataProcessor.sTestCurrentTimeMillis = timestamps[timestamps.length - 1]; in getBatteryLevelData_returnExpectedResult() 380 final long[] timestamps, final int[] levels) { in createHistoryMap() argument 382 for (int index = 0; index < timestamps.length; index++) { in createHistoryMap() 387 batteryHistoryMap.put(timestamps[index], entryMap); in createHistoryMap()
|
D | DataProcessorTest.java | 345 final long[] timestamps = { in getHistoryMapWithExpectedTimestamps_returnExpectedMap() local 354 createHistoryMap(timestamps, levels); in getHistoryMapWithExpectedTimestamps_returnExpectedMap() 355 DataProcessor.sTestCurrentTimeMillis = timestamps[timestamps.length - 1]; in getHistoryMapWithExpectedTimestamps_returnExpectedMap() 382 final long[] timestamps = { in getLevelDataThroughProcessedHistoryMap_OneDayData_returnExpectedResult() local 391 createHistoryMap(timestamps, levels); in getLevelDataThroughProcessedHistoryMap_OneDayData_returnExpectedResult() 392 DataProcessor.sTestCurrentTimeMillis = timestamps[timestamps.length - 1]; in getLevelDataThroughProcessedHistoryMap_OneDayData_returnExpectedResult() 397 final List<Long> expectedDailyTimestamps = List.of(timestamps[0], timestamps[4]); in getLevelDataThroughProcessedHistoryMap_OneDayData_returnExpectedResult() 400 List.of(timestamps[0], timestamps[2], timestamps[4]) in getLevelDataThroughProcessedHistoryMap_OneDayData_returnExpectedResult() 416 final long[] timestamps = { in getLevelDataThroughProcessedHistoryMap_MultipleDaysData_returnExpectedResult() local 424 createHistoryMap(timestamps, levels); in getLevelDataThroughProcessedHistoryMap_MultipleDaysData_returnExpectedResult() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryChartViewModel.java | 44 String generateText(List<Long> timestamps, int index); in generateText() argument 47 String generateFullText(List<Long> timestamps, int index); in generateFullText() argument 60 BatteryChartViewModel(@NonNull List<Integer> levels, @NonNull List<Long> timestamps, in BatteryChartViewModel() argument 64 levels.size() == timestamps.size() && levels.size() >= MIN_LEVELS_DATA_SIZE, in BatteryChartViewModel() 67 levels.size(), timestamps.size())); in BatteryChartViewModel() 69 mTimestamps = timestamps; in BatteryChartViewModel()
|
D | BatteryChartPreferenceController.java | 548 public String generateText(List<Long> timestamps, int index) { 550 timestamps.get(index), /* isAbbreviation= */ true); 554 public String generateFullText(List<Long> timestamps, int index) { 556 timestamps.get(index), /* isAbbreviation= */ false); 569 public String generateText(List<Long> timestamps, int index) { 570 if (Objects.equal(timestamps.get(index), mLatestTimestamp)) { 574 long timestamp = timestamps.get(index); 589 public String generateFullText(List<Long> timestamps, int index) { 590 return index == timestamps.size() - 1 591 ? generateText(timestamps, index) [all …]
|
D | BatteryLevelData.java | 51 @NonNull List<Long> timestamps) { in PeriodBatteryLevelData() argument 52 mTimestamps = timestamps; in PeriodBatteryLevelData() 53 mLevels = new ArrayList<>(timestamps.size()); in PeriodBatteryLevelData() 54 for (Long timestamp : timestamps) { in PeriodBatteryLevelData()
|
D | DataProcessor.java | 301 final List<Long> timestamps = hourlyBatteryLevelsPerDay.get(dailyIndex).getTimestamps(); in generateAppUsagePeriodMap() local 302 for (int hourlyIndex = 0; hourlyIndex < timestamps.size() - 1; hourlyIndex++) { in generateAppUsagePeriodMap() 303 final long startTimestamp = timestamps.get(hourlyIndex); in generateAppUsagePeriodMap() 304 final long endTimestamp = timestamps.get(hourlyIndex + 1); in generateAppUsagePeriodMap() 498 static long[] findNearestTimestamp(final List<Long> timestamps, final long target) { in findNearestTimestamp() argument 501 timestamps.forEach(timestamp -> { in findNearestTimestamp() 1743 final List<Long> timestamps = hourlyBatteryLevelsPerDay.get(dailyIndex).getTimestamps(); in isUsageMapValid() local 1745 for (int hourlyIndex = 0; hourlyIndex < timestamps.size() - 1; hourlyIndex++) { in isUsageMapValid() 1748 + "hourly size is: " + (timestamps.size() - 1)); in isUsageMapValid()
|
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/ |
D | DTCDetailActivity.java | 106 long[] timestamps = mCarDiagnosticManager.getFreezeFrameTimestamps(); in onCreate() 107 Log.e(TAG, "onCreate: Number of timestamps" + timestamps.length); in onCreate() 108 if (timestamps.length > 0) { in onCreate() 111 timestamps[timestamps.length - 1]); in onCreate() 118 mDTC.setTimestamp(timestamps[timestamps.length - 1]); in onCreate()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ |
D | ImageStreamImpl.java | 54 public Surface bind(BufferQueue<Long> timestamps) throws InterruptedException, in bind() argument 56 mLifetime.add(timestamps); in bind() 57 mImageDistributor.addRoute(timestamps, mImageStreamController); in bind()
|
D | AllocatingImageStream.java | 77 public Surface bind(BufferQueue<Long> timestamps) throws InterruptedException, in bind() argument 80 return super.bind(timestamps); in bind()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarDiagnosticManagerTest.java | 76 long[] timestamps = mCarDiagnosticManager.getFreezeFrameTimestamps(); in testFreezeFrames() local 77 if (null != timestamps) { in testFreezeFrames() 78 for (long timestamp : timestamps) { in testFreezeFrames()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarDiagnosticService.java | 111 long[] timestamps = mDiagnosticHal.getFreezeFrameTimestamps(); in setInitialFreezeFrames() local 112 if (timestamps != null) { in setInitialFreezeFrames() 113 for (long timestamp : timestamps) { in setInitialFreezeFrames() 443 public boolean clearFreezeFrames(long... timestamps) { in clearFreezeFrames() argument 447 if (timestamps != null && timestamps.length != 0) { in clearFreezeFrames() 452 mDiagnosticHal.clearFreezeFrames(timestamps); in clearFreezeFrames()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | DiagnosticHalService.java | 567 long[] timestamps = new long[value.getInt64ValuesSize()]; in getFreezeFrameTimestamps() local 568 for (int i = 0; i < timestamps.length; ++i) { in getFreezeFrameTimestamps() 569 timestamps[i] = value.getInt64Value(i); in getFreezeFrameTimestamps() 571 return timestamps; in getFreezeFrameTimestamps() 605 public void clearFreezeFrames(long... timestamps) { in clearFreezeFrames() argument 607 VehicleProperty.OBD2_FREEZE_FRAME_CLEAR, /*areaId=*/0, /*values=*/timestamps); in clearFreezeFrames()
|
D | InputHalService.java | 738 long[] timestamps = new long[detentCount]; 742 timestamps[0] = startUptime; 743 for (int i = 0; i < timestamps.length - 1; i++) { 744 timestamps[i + 1] = timestamps[i] + TimeUnit.NANOSECONDS.toMillis( 747 RotaryEvent event = new RotaryEvent(carInputManagerType, clockwise, timestamps);
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/bugreport/ |
D | LogUtils.java | 58 final List<Long> timestamps = dao.getDistinctTimestamps(timeOffset); in dumpBatteryUsageDatabaseHist() local 59 final int distinctCount = timestamps.size(); in dumpBatteryUsageDatabaseHist() 67 timestamps.forEach(timestamp -> { in dumpBatteryUsageDatabaseHist()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/core/ |
D | RequestBuilder.java | 169 ConcurrentBufferQueue<Long> timestamps = new ConcurrentBufferQueue<>(); in addStream() local 172 timestamps, mBuilder)); in addStream() 174 mResponseListeners.add(ResponseListeners.forTimestamps(timestamps)); in addStream()
|
D | CaptureStream.java | 60 public Surface bind(BufferQueue<Long> timestamps) in bind() argument
|
/packages/apps/Camera2/src/com/android/camera/one/v2/common/ |
D | SimpleCaptureStream.java | 36 public Surface bind(BufferQueue<Long> timestamps) throws InterruptedException { in bind() argument 39 timestamps.close(); in bind()
|
D | TimestampResponseListener.java | 37 public TimestampResponseListener(Updatable<Long> timestamps) { in TimestampResponseListener() argument 38 mTimestamps = timestamps; in TimestampResponseListener()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/ |
D | BatteryStateDaoTest.java | 153 final List<Long> timestamps = in getDistinctTimestamps_normalFlow_returnsExpectedResult() local 156 assertThat(timestamps).hasSize(3); in getDistinctTimestamps_normalFlow_returnsExpectedResult() 157 assertThat(timestamps).containsExactly(TIMESTAMP1, TIMESTAMP2, TIMESTAMP3); in getDistinctTimestamps_normalFlow_returnsExpectedResult()
|
/packages/modules/StatsD/statsd/tests/guardrail/ |
D | StatsdStats_test.cpp | 590 vector<int32_t> timestamps; in TEST() local 592 timestamps.push_back(i); in TEST() 598 stats.noteDataDropped(key, timestamps[i]); in TEST() 599 stats.noteBroadcastSent(key, timestamps[i]); in TEST() 600 stats.noteMetricsReportSent(key, 0, timestamps[i]); in TEST() 601 stats.noteActiveStatusChanged(key, true, timestamps[i]); in TEST() 602 stats.noteActiveStatusChanged(key, false, timestamps[i]); in TEST() 642 vector<int32_t> timestamps; in TEST() local 644 timestamps.push_back(i); in TEST() 645 stats.noteSystemServerRestart(timestamps[i]); in TEST()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultWallpaperPreferences.java | 690 List<Long> timestamps = new ArrayList<>(); in getDailyRotationsInLastWeek() local 702 timestamps.add(existingTimestamp); in getDailyRotationsInLastWeek() 706 jsonArray = new JSONArray(timestamps); in getDailyRotationsInLastWeek() 715 return timestamps; in getDailyRotationsInLastWeek() 742 List<Long> timestamps = new ArrayList<>(); in getDailyRotationsPreviousDay() local 754 timestamps.add(timestamp); in getDailyRotationsPreviousDay() 762 return timestamps; in getDailyRotationsPreviousDay()
|
/packages/services/Car/car-lib/src/android/car/diagnostic/ |
D | CarDiagnosticManager.java | 271 public boolean clearFreezeFrames(long... timestamps) { in clearFreezeFrames() argument 273 return mService.clearFreezeFrames(timestamps); in clearFreezeFrames()
|
D | ICarDiagnostic.aidl | 48 boolean clearFreezeFrames(in long[] timestamps) = 5; in clearFreezeFrames() argument
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | OneCameraZslImpl.java | 270 ArrayList<Long> timestamps = new ArrayList<Long>(mCapturedImageTimestamps); in onImageCaptured() local 271 Collections.sort(timestamps); in onImageCaptured() 272 for (int i = 0; i < timestamps.size() in onImageCaptured() 274 mCapturedImageTimestamps.remove(timestamps.get(i)); in onImageCaptured()
|