Home
last modified time | relevance | path

Searched refs:timeStamp (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/core/java/android/app/usage/
DUsageStats.java395 private void incrementTimeUsed(long timeStamp) { in incrementTimeUsed() argument
396 if (timeStamp > mLastTimeUsed) { in incrementTimeUsed()
397 mTotalTimeInForeground += timeStamp - mLastTimeUsed; in incrementTimeUsed()
398 mLastTimeUsed = timeStamp; in incrementTimeUsed()
406 private void incrementTimeVisible(long timeStamp) { in incrementTimeVisible() argument
407 if (timeStamp > mLastTimeVisible) { in incrementTimeVisible()
408 mTotalTimeVisible += timeStamp - mLastTimeVisible; in incrementTimeVisible()
409 mLastTimeVisible = timeStamp; in incrementTimeVisible()
418 private void incrementServiceTimeUsed(long timeStamp) { in incrementServiceTimeUsed() argument
419 if (timeStamp > mLastTimeForegroundServiceUsed) { in incrementServiceTimeUsed()
[all …]
DEventList.java104 public int firstIndexOnOrAfter(long timeStamp) { in firstIndexOnOrAfter() argument
112 if (midTimeStamp >= timeStamp) { in firstIndexOnOrAfter()
/frameworks/base/telephony/java/android/telephony/
DCellInfo.java329 this.mTimeStamp = ci.timeStamp; in CellInfo()
336 this.mTimeStamp = ci.timeStamp; in CellInfo()
341 protected CellInfo(android.hardware.radio.V1_4.CellInfo ci, long timeStamp) { in CellInfo() argument
343 this.mTimeStamp = timeStamp; in CellInfo()
348 protected CellInfo(android.hardware.radio.V1_5.CellInfo ci, long timeStamp) { in CellInfo() argument
350 this.mTimeStamp = timeStamp; in CellInfo()
381 public static CellInfo create(android.hardware.radio.V1_4.CellInfo ci, long timeStamp) { in create() argument
384 case Info.hidl_discriminator.gsm: return new CellInfoGsm(ci, timeStamp); in create()
385 case Info.hidl_discriminator.cdma: return new CellInfoCdma(ci, timeStamp); in create()
386 case Info.hidl_discriminator.lte: return new CellInfoLte(ci, timeStamp); in create()
[all …]
DCellInfoNr.java49 public CellInfoNr(android.hardware.radio.V1_4.CellInfo ci, long timeStamp) { in CellInfoNr() argument
50 super(ci, timeStamp); in CellInfoNr()
57 public CellInfoNr(android.hardware.radio.V1_5.CellInfo ci, long timeStamp) { in CellInfoNr() argument
58 super(ci, timeStamp); in CellInfoNr()
DCellInfoGsm.java69 public CellInfoGsm(android.hardware.radio.V1_4.CellInfo ci, long timeStamp) { in CellInfoGsm() argument
70 super(ci, timeStamp); in CellInfoGsm()
77 public CellInfoGsm(android.hardware.radio.V1_5.CellInfo ci, long timeStamp) { in CellInfoGsm() argument
78 super(ci, timeStamp); in CellInfoGsm()
DCellInfoTdscdma.java73 public CellInfoTdscdma(android.hardware.radio.V1_4.CellInfo ci, long timeStamp) { in CellInfoTdscdma() argument
74 super(ci, timeStamp); in CellInfoTdscdma()
81 public CellInfoTdscdma(android.hardware.radio.V1_5.CellInfo ci, long timeStamp) { in CellInfoTdscdma() argument
82 super(ci, timeStamp); in CellInfoTdscdma()
DCellInfoWcdma.java68 public CellInfoWcdma(android.hardware.radio.V1_4.CellInfo ci, long timeStamp) { in CellInfoWcdma() argument
69 super(ci, timeStamp); in CellInfoWcdma()
76 public CellInfoWcdma(android.hardware.radio.V1_5.CellInfo ci, long timeStamp) { in CellInfoWcdma() argument
77 super(ci, timeStamp); in CellInfoWcdma()
DCellInfoCdma.java73 public CellInfoCdma(android.hardware.radio.V1_4.CellInfo ci, long timeStamp) { in CellInfoCdma() argument
74 super(ci, timeStamp); in CellInfoCdma()
82 public CellInfoCdma(android.hardware.radio.V1_5.CellInfo ci, long timeStamp) { in CellInfoCdma() argument
83 super(ci, timeStamp); in CellInfoCdma()
DCellInfoLte.java77 public CellInfoLte(android.hardware.radio.V1_4.CellInfo ci, long timeStamp) { in CellInfoLte() argument
78 super(ci, timeStamp); in CellInfoLte()
86 public CellInfoLte(android.hardware.radio.V1_5.CellInfo ci, long timeStamp) { in CellInfoLte() argument
87 super(ci, timeStamp); in CellInfoLte()
/frameworks/base/services/usage/java/com/android/server/usage/
DIntervalStats.java92 public void commitTime(long timeStamp) { in commitTime() argument
94 duration += timeStamp - curStartTime; in commitTime()
99 public void update(long timeStamp) { in update() argument
104 commitTime(timeStamp); in update()
105 curStartTime = timeStamp; in update()
106 lastEventTime = timeStamp; in update()
308 public void update(String packageName, String className, long timeStamp, int eventType, in update() argument
316 usageStats.update(null, timeStamp, eventType, instanceId); in update()
320 usageStats.update(className, timeStamp, eventType, instanceId); in update()
322 if (timeStamp > endTime) { in update()
[all …]
DPackagesTokenData.java72 public int getPackageTokenOrAdd(String packageName, long timeStamp) { in getPackageTokenOrAdd() argument
74 if (timeRemoved != null && timeRemoved > timeStamp) { in getPackageTokenOrAdd()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DExtendedWifiInfo.java62 public void updatePacketRates(@NonNull WifiLinkLayerStats stats, long timeStamp) { in updatePacketRates() argument
67 update(SOURCE_LLSTATS, txgood, txretries, txbad, rxgood, timeStamp); in updatePacketRates()
74 public void updatePacketRates(long txPackets, long rxPackets, long timeStamp) { in updatePacketRates() argument
75 update(SOURCE_TRAFFIC_COUNTERS, txPackets, 0, 0, rxPackets, timeStamp); in updatePacketRates()
79 long timeStamp) { in update() argument
82 && mLastPacketCountUpdateTimeStamp < timeStamp in update()
87 long timeDelta = timeStamp - mLastPacketCountUpdateTimeStamp; in update()
114 mLastPacketCountUpdateTimeStamp = timeStamp; in update()
/frameworks/base/core/java/android/hardware/display/
DBrightnessChangeEvent.java41 public final long timeStamp; field in BrightnessChangeEvent
107 private BrightnessChangeEvent(float brightness, long timeStamp, String packageName, in BrightnessChangeEvent() argument
113 this.timeStamp = timeStamp; in BrightnessChangeEvent()
132 this.timeStamp = other.timeStamp; in BrightnessChangeEvent()
150 timeStamp = source.readLong(); in BrightnessChangeEvent()
184 dest.writeLong(timeStamp); in writeToParcel()
225 public Builder setTimeStamp(long timeStamp) { in setTimeStamp() argument
226 mTimeStamp = timeStamp; in setTimeStamp()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyLogger.java378 data.timeStamp = System.currentTimeMillis(); in uidStateChanged()
388 data.timeStamp = System.currentTimeMillis(); in event()
399 data.timeStamp = System.currentTimeMillis(); in networkBlocked()
411 data.timeStamp = System.currentTimeMillis(); in uidPolicyChanged()
422 data.timeStamp = System.currentTimeMillis(); in meterednessChanged()
432 data.timeStamp = System.currentTimeMillis(); in userRemoved()
443 data.timeStamp = System.currentTimeMillis(); in restrictBackgroundChanged()
453 data.timeStamp = System.currentTimeMillis(); in deviceIdleModeEnabled()
464 data.timeStamp = System.currentTimeMillis(); in appIdleStateChanged()
475 data.timeStamp = System.currentTimeMillis(); in appIdleWlChanged()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dpvdec_api.cpp183 video->vopHeader[idx]->timeStamp = 0; in PVInitVideoDecoder()
572 video->prevVop->timeStamp = 0; in PVAllocVideoData()
581 video->prevEnhcVop->timeStamp = 0; in PVAllocVideoData()
607 video->vopHeader[idx]->timeStamp = 0; in PVResetVideoDecoder()
609 video->prevVop->timeStamp = 0; in PVResetVideoDecoder()
611 video->prevEnhcVop->timeStamp = 0; in PVResetVideoDecoder()
1135 if (vopHeader[idx]->timeStamp < 0) in PVDecodeVopHeader()
1155 vopHeader[idx]->timeStamp = in PVDecodeVopHeader()
1163 timestamp[idx] = vopHeader[idx]->timeStamp; in PVDecodeVopHeader()
1187 if (vopHeader[target_layer]->timeStamp < 0) in PVDecodeVopHeader()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraSettings.java73 public final long timeStamp; field in CameraSettings.GpsData
84 public GpsData(double latitude, double longitude, double altitude, long timeStamp, in GpsData() argument
93 this.timeStamp = timeStamp; in GpsData()
102 this.timeStamp = src.timeStamp; in GpsData()
/frameworks/base/core/java/android/gesture/
DGesturePoint.java43 final long timeStamp = in.readLong(); in deserialize() local
44 return new GesturePoint(x, y, timeStamp); in deserialize()
/frameworks/av/media/extractors/tests/
DExtractorUnitTest.cpp176 int64_t timeStamp; in getSeekablePoints() local
185 AMediaFormat_getInt64(metaData, AMEDIAFORMAT_KEY_TIME_US, &timeStamp); in getSeekablePoints()
186 seekablePoints.push_back(timeStamp); in getSeekablePoints()
466 int64_t timeStamp; in TEST_P() local
467 AMediaFormat_getInt64(metaData, AMEDIAFORMAT_KEY_TIME_US, &timeStamp); in TEST_P()
474 EXPECT_EQ(timeStamp, seekablePoints[seekIdx]); in TEST_P()
476 EXPECT_EQ(timeStamp, seekablePoints[seekIdx - 1]); in TEST_P()
482 EXPECT_EQ(timeStamp, seekablePoints[seekIdx]); in TEST_P()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java229 long timeStamp = archive.lastModified(); in getTimeStamp() local
230 if (timeStamp == NO_VALUE) { in getTimeStamp()
232 timeStamp--; in getTimeStamp()
234 return timeStamp; in getTimeStamp()
324 private static void putStoredApkInfo(Context context, String keyPrefix, long timeStamp, in putStoredApkInfo() argument
328 edit.putLong(keyPrefix + KEY_TIME_STAMP, timeStamp); in putStoredApkInfo()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCellularNetworkValidator.java106 ValidatedNetwork(String identity, long timeStamp) { in ValidatedNetwork() argument
108 mValidationTimeStamp = timeStamp; in ValidatedNetwork()
110 void update(long timeStamp) { in update() argument
111 mValidationTimeStamp = timeStamp; in update()
/frameworks/base/core/tests/coretests/src/android/app/usage/
DEventListTest.java38 private UsageEvents.Event getUsageEvent(long timeStamp) { in getUsageEvent() argument
40 event.mTimeStamp = timeStamp; in getUsageEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java295 assertEquals(mInjector.currentTimeMillis(), event.timeStamp); in testBrightnessEvent()
330 assertEquals(event.timeStamp, mInjector.currentTimeMillis()); in testBrightnessFullPopulatedEvent()
419 assertEquals(mInjector.currentTimeMillis(), event.timeStamp); in testLimitedSensorEvents()
470 assertEquals(someTimeAgo, event.timeStamp); in testReadEvents()
487 assertEquals(someTimeAgo, event.timeStamp); in testReadEvents()
634 assertEquals(eventTime, event.timeStamp); in testWritePrunesOldEvents()
679 assertEquals(event.timeStamp, event2.timeStamp); in testParcelUnParcel()
757 assertEquals(eventTime, event.timeStamp); in testBackgroundHandlerDelay()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSettingBase.java100 long timeStamp; field in PackageSettingBase
203 timeStamp = newStamp; in setTimeStamp()
253 timeStamp = orig.timeStamp; in doCopy()
740 this.timeStamp = other.timeStamp; in updateFrom()
/frameworks/av/media/libstagefright/codecs/flac/dec/
DSoftFlacDecoder.cpp325 int64_t timeStamp = 0; in onQueueFilled() local
401 timeStamp = inHeader->nTimeStamp; in onQueueFilled()
428 outHeader->nTimeStamp = timeStamp; in onQueueFilled()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSelectorTestUtil.java209 long timeStamp = clock.getElapsedSinceBootMillis(); in buildScanDetails() local
213 bssids[index], caps[index], levels[index], freqs[index], timeStamp, 0); in buildScanDetails()
236 long timeStamp = clock.getElapsedSinceBootMillis(); in buildScanDetailsWithNetworkDetails() local
244 bssids[index], caps[index], levels[index], freqs[index], timeStamp, in buildScanDetailsWithNetworkDetails()

12