/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryLevelDataTest.java | 45 final List<Long> timestamps = in getDailyTimestamps_allDataInOneHour_returnExpectedList() local 56 assertThat(BatteryLevelData.getDailyTimestamps(timestamps)).isEqualTo(expectedTimestamps); in getDailyTimestamps_allDataInOneHour_returnExpectedList() 62 final List<Long> timestamps = in getDailyTimestamps_OneHourDataPerDay_returnExpectedList() local 75 assertThat(BatteryLevelData.getDailyTimestamps(timestamps)).isEqualTo(expectedTimestamps); in getDailyTimestamps_OneHourDataPerDay_returnExpectedList() 81 final List<Long> timestamps = in getDailyTimestamps_OneDayData_returnExpectedList() local 95 assertThat(BatteryLevelData.getDailyTimestamps(timestamps)).isEqualTo(expectedTimestamps); in getDailyTimestamps_OneDayData_returnExpectedList() 101 final List<Long> timestamps = in getDailyTimestamps_MultipleDaysData_returnExpectedList() local 117 assertThat(BatteryLevelData.getDailyTimestamps(timestamps)).isEqualTo(expectedTimestamps); in getDailyTimestamps_MultipleDaysData_returnExpectedList() 123 final List<Long> timestamps = in getDailyTimestamps_FirstDayOneHourData_returnExpectedList() local 139 assertThat(BatteryLevelData.getDailyTimestamps(timestamps)).isEqualTo(expectedTimestamps); in getDailyTimestamps_FirstDayOneHourData_returnExpectedList() [all …]
|
D | DataProcessManagerTest.java | 370 final long[] timestamps = { in getBatteryLevelData_allDataInOneHour_returnExpectedResult() local 376 DataProcessManager.sFakeBatteryHistoryMap = createHistoryMap(timestamps, levels); in getBatteryLevelData_allDataInOneHour_returnExpectedResult() 377 DataProcessor.sTestCurrentTimeMillis = timestamps[timestamps.length - 1]; in getBatteryLevelData_allDataInOneHour_returnExpectedResult() 403 final long[] timestamps = {1640966400000L, 1640970000000L}; in getBatteryLevelData_returnExpectedResult() local 405 DataProcessManager.sFakeBatteryHistoryMap = createHistoryMap(timestamps, levels); in getBatteryLevelData_returnExpectedResult() 406 DataProcessor.sTestCurrentTimeMillis = timestamps[timestamps.length - 1]; in getBatteryLevelData_returnExpectedResult() 450 final long[] timestamps, final int[] levels) { in createHistoryMap() argument 452 for (int index = 0; index < timestamps.length; index++) { in createHistoryMap() 457 batteryHistoryMap.put(timestamps[index], entryMap); in createHistoryMap()
|
D | DataProcessorTest.java | 425 final long[] timestamps = { in getHistoryMapWithExpectedTimestamps_returnExpectedMap() local 434 createHistoryMap(timestamps, levels); in getHistoryMapWithExpectedTimestamps_returnExpectedMap() 435 DataProcessor.sTestCurrentTimeMillis = timestamps[timestamps.length - 1]; in getHistoryMapWithExpectedTimestamps_returnExpectedMap() 466 final long[] timestamps = { in getLevelDataThroughProcessedHistoryMap_OneDayData_returnExpectedResult() local 475 createHistoryMap(timestamps, levels); in getLevelDataThroughProcessedHistoryMap_OneDayData_returnExpectedResult() 476 DataProcessor.sTestCurrentTimeMillis = timestamps[timestamps.length - 1]; in getLevelDataThroughProcessedHistoryMap_OneDayData_returnExpectedResult() 481 final List<Long> expectedDailyTimestamps = List.of(timestamps[0], timestamps[4]); in getLevelDataThroughProcessedHistoryMap_OneDayData_returnExpectedResult() 484 List.of(List.of(timestamps[0], timestamps[2], timestamps[4])); in getLevelDataThroughProcessedHistoryMap_OneDayData_returnExpectedResult() 498 final long[] timestamps = { in getLevelDataThroughProcessedHistoryMap_MultipleDaysData_returnExpectedResult() local 506 createHistoryMap(timestamps, levels); in getLevelDataThroughProcessedHistoryMap_MultipleDaysData_returnExpectedResult() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryChartPreferenceController.java | 611 public String generateContentDescription(List<Long> timestamps, int index) { 612 return generateFullText(timestamps, index); 638 public String generateText(List<Long> timestamps, int index) { 640 mContext, timestamps.get(index), /* isAbbreviation= */ true); 644 public String generateFullText(List<Long> timestamps, int index) { 646 mContext, timestamps.get(index), /* isAbbreviation= */ false); 657 public String generateText(List<Long> timestamps, int index) { 658 if (Objects.equal(timestamps.get(index), mLatestTimestamp)) { 662 long timestamp = timestamps.get(index); 677 public String generateFullText(List<Long> timestamps, int index) { [all …]
|
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 50 String generateContentDescription(List<Long> timestamps, int index); in generateContentDescription() argument 70 @NonNull List<Long> timestamps, in BatteryChartViewModel() argument 74 levels.size() == timestamps.size() && levels.size() >= MIN_LEVELS_DATA_SIZE, in BatteryChartViewModel() 79 timestamps.size())); in BatteryChartViewModel() 81 mTimestamps = timestamps; in BatteryChartViewModel()
|
D | BatteryLevelData.java | 56 @NonNull List<Long> timestamps, in PeriodBatteryLevelData() argument 58 mTimestamps = timestamps; in PeriodBatteryLevelData() 59 mLevels = new ArrayList<>(timestamps.size()); in PeriodBatteryLevelData() 61 for (Long timestamp : timestamps) { in PeriodBatteryLevelData()
|
D | DataProcessor.java | 291 final List<Long> timestamps = hourlyBatteryLevelsPerDay.get(dailyIndex).getTimestamps(); in generateAppUsagePeriodMap() local 292 for (int hourlyIndex = 0; hourlyIndex < timestamps.size() - 1; hourlyIndex++) { in generateAppUsagePeriodMap() 293 final long startTimestamp = timestamps.get(hourlyIndex); in generateAppUsagePeriodMap() 294 final long endTimestamp = timestamps.get(hourlyIndex + 1); in generateAppUsagePeriodMap() 500 static long[] findNearestTimestamp(final List<Long> timestamps, final long target) { in findNearestTimestamp() argument 503 timestamps.forEach( in findNearestTimestamp() 1848 final List<Long> timestamps = hourlyBatteryLevelsPerDay.get(dailyIndex).getTimestamps(); in isUsageMapValid() local 1850 for (int hourlyIndex = 0; hourlyIndex < timestamps.size() - 1; hourlyIndex++) { in isUsageMapValid() 1860 + (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/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarDiagnosticManagerTest.java | 68 long[] timestamps = mCarDiagnosticManager.getFreezeFrameTimestamps(); in testFreezeFrames() local 69 if (null != timestamps) { in testFreezeFrames() 70 for (long timestamp : timestamps) { in testFreezeFrames()
|
/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/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/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/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 | 739 long[] timestamps = new long[detentCount]; 743 timestamps[0] = startUptime; 744 for (int i = 0; i < timestamps.length - 1; i++) { 745 timestamps[i + 1] = timestamps[i] + TimeUnit.NANOSECONDS.toMillis( 748 RotaryEvent event = new RotaryEvent(carInputManagerType, clockwise, timestamps);
|
/packages/services/Car/service/src/com/android/car/ |
D | CarDiagnosticService.java | 112 long[] timestamps = mDiagnosticHal.getFreezeFrameTimestamps(); in setInitialFreezeFrames() local 113 if (timestamps != null) { in setInitialFreezeFrames() 114 for (long timestamp : timestamps) { in setInitialFreezeFrames() 444 public boolean clearFreezeFrames(long... timestamps) { in clearFreezeFrames() argument 448 if (timestamps != null && timestamps.length != 0) { in clearFreezeFrames() 453 mDiagnosticHal.clearFreezeFrames(timestamps); in clearFreezeFrames()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/ |
D | BatteryStateDaoTest.java | 154 final List<Long> timestamps = mBatteryStateDao.getDistinctTimestamps(/* timestamp= */ 0); 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/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/bugreport/ |
D | LogUtils.java | 77 final List<Long> timestamps = dao.getDistinctTimestamps(timeOffset); in dumpBatteryUsageDatabaseHist() local 78 final int distinctCount = timestamps.size(); in dumpBatteryUsageDatabaseHist() 86 timestamps.forEach( in dumpBatteryUsageDatabaseHist()
|
/packages/modules/StatsD/statsd/tests/guardrail/ |
D | StatsdStats_test.cpp | 594 vector<int32_t> timestamps; in TEST() local 596 timestamps.push_back(i); in TEST() 602 stats.noteDataDropped(key, timestamps[i]); in TEST() 603 stats.noteBroadcastSent(key, timestamps[i]); in TEST() 604 stats.noteMetricsReportSent(key, 0, timestamps[i], i + 1); in TEST() 605 stats.noteActiveStatusChanged(key, true, timestamps[i]); in TEST() 606 stats.noteActiveStatusChanged(key, false, timestamps[i]); in TEST() 646 vector<int32_t> timestamps; in TEST() local 648 timestamps.push_back(i); in TEST() 649 stats.noteSystemServerRestart(timestamps[i]); in TEST()
|
/packages/services/Car/car-lib/src/android/car/diagnostic/ |
D | ICarDiagnostic.aidl | 48 boolean clearFreezeFrames(in long[] timestamps) = 5; in clearFreezeFrames() argument
|
D | CarDiagnosticManager.java | 276 public boolean clearFreezeFrames(long... timestamps) { in clearFreezeFrames() argument 278 return mService.clearFreezeFrames(timestamps); in clearFreezeFrames()
|
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/ |
D | LogReaderTest.java | 158 long[] timestamps = params.getLongArray(Constants.EXTRA_LOOKUP_KEYS); in onRequest() local 159 if (timestamps[0] == 7) { in onRequest()
|
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/ |
D | AppsIndexerManagerServiceTest.java | 318 List<Long> timestamps = new ArrayList<>(); in testUpdatePackage() local 320 timestamps.add( in testUpdatePackage() 324 assertThat(timestamps).contains(1000L); in testUpdatePackage()
|