Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java110 private TelephonyNetworkFactory makeTnf(int phoneId, TestSetup ts) { in makeTnf() argument
111 return new TelephonyNetworkFactory(ts.phoneSwitcherMock, ts.subscriptionControllerMock, in makeTnf()
112 ts.subscriptionMonitorMock, ts.looper, ts.contextMock, phoneId, ts.dcTrackerMock); in makeTnf()
115 private NetworkRequest makeSubSpecificDefaultRequest(TestSetup ts, int subId) { in makeSubSpecificDefaultRequest() argument
121 return ts.connectivityServiceMock.requestNetwork(netCap, null, 0, new Binder(), -1); in makeSubSpecificDefaultRequest()
123 private NetworkRequest makeSubSpecificMmsRequest(TestSetup ts, int subId) { in makeSubSpecificMmsRequest() argument
129 return ts.connectivityServiceMock.requestNetwork(netCap, null, 0, new Binder(), -1); in makeSubSpecificMmsRequest()
143 TestSetup ts = new TestSetup(numberOfPhones); in testActive() local
145 TelephonyNetworkFactory tnf = makeTnf(phoneId, ts); in testActive()
147 ts.subscriptionControllerMock.setDefaultDataSubId(subId); in testActive()
[all …]
/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp58 struct timespec ts; in setEnabled() local
59 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in setEnabled()
63 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in setEnabled()
64 (ts.tv_nsec - mPreviousTs.tv_nsec); in setEnabled()
67 mPreviousTs = ts; in setEnabled()
100 struct timespec ts; in sample() local
102 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in sample()
108 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in sample()
109 (ts.tv_nsec - mPreviousTs.tv_nsec); in sample()
111 mPreviousTs = ts; in sample()
[all …]
/frameworks/native/libs/binder/
DBufferedTextOutput.cpp96 ThreadState* ts = (ThreadState*) thread_store_get( &tls ); in getThreadState() local
97 if (ts) return ts; in getThreadState()
98 ts = new ThreadState; in getThreadState()
99 thread_store_set( &tls, ts, threadDestructor ); in getThreadState()
100 return ts; in getThreadState()
267 ThreadState* ts = getThreadState(); in getBuffer() local
268 if (ts) { in getBuffer()
269 while (ts->states.size() <= (size_t)mIndex) ts->states.add(NULL); in getBuffer()
270 BufferState* bs = ts->states[mIndex].get(); in getBuffer()
273 ts->states.editItemAt(mIndex) = new BufferState(mIndex); in getBuffer()
[all …]
/frameworks/av/media/libnbaio/
DNBLog.cpp136 struct timespec ts; in logTimestamp() local
137 if (!clock_gettime(CLOCK_MONOTONIC, &ts)) { in logTimestamp()
138 log(EVENT_TIMESTAMP, &ts, sizeof(struct timespec)); in logTimestamp()
142 void NBLog::Writer::logTimestamp(const struct timespec& ts) in logTimestamp() argument
147 log(EVENT_TIMESTAMP, &ts, sizeof(struct timespec)); in logTimestamp()
255 void NBLog::LockedWriter::logTimestamp(const struct timespec& ts) in logTimestamp() argument
258 Writer::logTimestamp(ts); in logTimestamp()
321 struct timespec ts; in dump() local
334 memcpy(&ts, &copy[i - length - 1], sizeof(struct timespec)); in dump()
335 if (ts.tv_sec > maxSec) { in dump()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp65 virtual int set(int type, struct timespec *ts) = 0;
79 int set(int type, struct timespec *ts);
91 int set(int type, struct timespec *ts);
114 int AlarmImplAlarmDriver::set(int type, struct timespec *ts) in set() argument
116 return ioctl(fds[0], ANDROID_ALARM_SET(type), ts); in set()
121 struct timespec ts; in setTime() local
124 ts.tv_sec = tv->tv_sec; in setTime()
125 ts.tv_nsec = tv->tv_usec * 1000; in setTime()
126 res = ioctl(fds[0], ANDROID_ALARM_SET_RTC, &ts); in setTime()
145 int AlarmImplTimerFd::set(int type, struct timespec *ts) in set() argument
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLaunchpadTabActivity.java37 TabHost.TabSpec ts = th.newTabSpec("1"); in onCreate() local
38 ts.setIndicator("One"); in onCreate()
39 ts.setContent(tabIntent); in onCreate()
40 th.addTab(ts); in onCreate()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DTimeController.java84 JobStatus ts = it.previous(); in maybeStartTrackingJobLocked() local
85 if (ts.getLatestRunTimeElapsed() < job.getLatestRunTimeElapsed()) { in maybeStartTrackingJobLocked()
303 for (JobStatus ts : mTrackedJobs) { in dumpControllerStateLocked()
304 if (!ts.shouldDump(filterUid)) { in dumpControllerStateLocked()
308 ts.printUniqueId(pw); in dumpControllerStateLocked()
310 UserHandle.formatUid(pw, ts.getSourceUid()); in dumpControllerStateLocked()
312 if (ts.hasTimingDelayConstraint()) { in dumpControllerStateLocked()
313 TimeUtils.formatDuration(ts.getEarliestRunTime(), nowElapsed, pw); in dumpControllerStateLocked()
318 if (ts.hasDeadlineConstraint()) { in dumpControllerStateLocked()
319 TimeUtils.formatDuration(ts.getLatestRunTimeElapsed(), nowElapsed, pw); in dumpControllerStateLocked()
DBatteryController.java104 for (JobStatus ts : mTrackedTasks) { in maybeReportNewChargingState()
105 boolean previous = ts.setChargingConstraintSatisfied(stablePower); in maybeReportNewChargingState()
/frameworks/wilhelm/src/
Dlocks.c34 void init_time_spec(timespec* ts, long delta) { in init_time_spec() argument
35 clock_gettime(CLOCK_REALTIME, ts); in init_time_spec()
36 ts->tv_nsec += delta; in init_time_spec()
38 if (ts->tv_nsec >= 1000000000L) { in init_time_spec()
39 ts->tv_sec++; in init_time_spec()
40 ts->tv_nsec -= 1000000000L; in init_time_spec()
55 timespec ts; in object_lock_exclusive_() local
56 memset(&ts, 0, sizeof(timespec)); in object_lock_exclusive_()
58 init_time_spec(&ts, nanoBackoffs[i]); in object_lock_exclusive_()
59 ok = pthread_mutex_timedlock(&thiz->mMutex, &ts); in object_lock_exclusive_()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java113 String ts = Long.toString(System.currentTimeMillis()); in downloadFile() local
116 mTestServer, FILE_SIZE, mDeviceId, ts); in downloadFile()
130 results.putString("timestamp", ts); in downloadFile()
165 String ts = Long.toString(System.currentTimeMillis()); in uploadFile() local
167 mTestServer, FILE_SIZE, mDeviceId, ts); in uploadFile()
171 ts = Long.toString(System.currentTimeMillis()); in uploadFile()
174 assertTrue(BandwidthTestUtil.postFileToServer(mTestServer, mDeviceId, ts, tmpSaveFile)); in uploadFile()
184 results.putString("timestamp", ts); in uploadFile()
227 String ts = Long.toString(System.currentTimeMillis()); in downloadFileUsingDownloadManager() local
229 mTestServer, FILE_SIZE, mDeviceId, ts); in downloadFileUsingDownloadManager()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DSystemConditionProviderService.java40 protected static String ts(long time) { in ts() method in SystemConditionProviderService
53 pw.printf("%s, in %s, now=%s", ts(time), formatDuration(time - now), ts(now)); in dumpUpcomingTime()
DCountdownConditionProvider.java134 ACTION, ts(mTime), mTime - now, span, ts(now))); in onSubscribe()
169 ts(time), time - now, span, ts(now)); in tryParseDescription()
/frameworks/base/services/tests/servicestests/jni/
Dapf_jni.cpp154 apf_header.ts.tv_sec != bpf_header.ts.tv_sec || in com_android_server_ApfTest_compareBpfApf()
155 apf_header.ts.tv_usec != bpf_header.ts.tv_usec || in com_android_server_ApfTest_compareBpfApf()
/frameworks/native/services/surfaceflinger/
DEventThread.cpp81 struct itimerspec ts; in sendVsyncHintOnLocked() local
86 ts.it_value.tv_sec = 0; in sendVsyncHintOnLocked()
87 ts.it_value.tv_nsec = vsyncHintOffDelay; in sendVsyncHintOnLocked()
88 ts.it_interval.tv_sec = 0; in sendVsyncHintOnLocked()
89 ts.it_interval.tv_nsec = 0; in sendVsyncHintOnLocked()
90 timer_settime(mTimerId, 0, &ts, NULL); in sendVsyncHintOnLocked()
/frameworks/av/media/libmedia/
DAudioTrackShared.cpp235 const struct timespec *ts; in obtainBuffer() local
241 ts = NULL; in obtainBuffer()
246 ts = requested; in obtainBuffer()
266 ts = &remaining; in obtainBuffer()
270 ts = NULL; in obtainBuffer()
281 mClientInServer ? FUTEX_WAIT_PRIVATE : FUTEX_WAIT, old & ~CBLK_FUTEX_WAKE, ts); in obtainBuffer()
457 const struct timespec *ts; in waitStreamEndDone() local
463 ts = NULL; in waitStreamEndDone()
468 ts = requested; in waitStreamEndDone()
488 ts = &remaining; in waitStreamEndDone()
[all …]
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DPlaylistItem.java65 public void setTimestamp(long ts) { in setTimestamp() argument
66 mTimestamp = ts; in setTimestamp()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java62 final JobStatus ts = JobStatus.createFromJobInfo(task, SOME_UID, null, -1, null); in testMaybeWriteStatusToDisk() local
63 mTaskStoreUnderTest.add(ts); in testMaybeWriteStatusToDisk()
72 assertTrue("JobStore#contains invalid.", mTaskStoreUnderTest.containsJob(ts)); in testMaybeWriteStatusToDisk()
75 ts.getEarliestRunTime(), loadedTaskStatus.getEarliestRunTime()); in testMaybeWriteStatusToDisk()
77 ts.getLatestRunTimeElapsed(), loadedTaskStatus.getLatestRunTimeElapsed()); in testMaybeWriteStatusToDisk()
/frameworks/av/include/media/nbaio/
DNBLog.h129 virtual void logTimestamp(const struct timespec& ts);
163 virtual void logTimestamp(const struct timespec& ts);
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp258 struct timespec ts; in waitEvent()
259 clock_gettime(CLOCK_REALTIME, &ts); in waitEvent()
260 ts.tv_sec += timeout_s; in waitEvent()
261 pthread_cond_timedwait(&m_waitCond, &m_waitMutex, &ts); in waitEvent()
745 struct timespec ts; in onTransact()
746 clock_gettime(CLOCK_REALTIME, &ts); in onTransact()
747 ts.tv_sec += 5; in onTransact()
748 ret = pthread_cond_timedwait(&m_serverWaitCond, &m_serverWaitMutex, &ts); in onTransact()
/frameworks/av/media/libstagefright/
DMediaSync.cpp482 AudioTimestamp ts; in getPlayedOutAudioDurationMedia_l() local
485 status_t res = mAudioTrack->getTimestamp(ts); in getPlayedOutAudioDurationMedia_l()
488 numFramesPlayed = ts.mPosition; in getPlayedOutAudioDurationMedia_l()
490 ts.mTime.tv_sec * 1000000LL + ts.mTime.tv_nsec / 1000; in getPlayedOutAudioDurationMedia_l()
/frameworks/base/core/tests/coretests/src/android/database/
DMatrixCursorTest.java185 NonIterableArrayList(Collection<? extends T> ts) { in NonIterableArrayList() argument
186 super(ts); in NonIterableArrayList()
/frameworks/native/cmds/dumpstate/
Dutils.cpp95 struct timespec ts; in nanotime() local
96 clock_gettime(CLOCK_MONOTONIC, &ts); in nanotime()
97 return (uint64_t) ts.tv_sec * NANOS_PER_SEC + ts.tv_nsec; in nanotime()
604 struct timespec ts; in waitpid_with_timeout() local
605 ts.tv_sec = timeout_seconds; in waitpid_with_timeout()
606 ts.tv_nsec = 0; in waitpid_with_timeout()
607 int ret = TEMP_FAILURE_RETRY(sigtimedwait(&child_mask, NULL, &ts)); in waitpid_with_timeout()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp97 struct timespec ts; in Visualizer_getDeltaTimeMsFromUpdatedTime() local
98 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { in Visualizer_getDeltaTimeMsFromUpdatedTime()
99 time_t secs = ts.tv_sec - pContext->mBufferUpdateTime.tv_sec; in Visualizer_getDeltaTimeMsFromUpdatedTime()
100 long nsec = ts.tv_nsec - pContext->mBufferUpdateTime.tv_nsec; in Visualizer_getDeltaTimeMsFromUpdatedTime()
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp661 timespec ts; in sendDtmf() local
662 ts.tv_sec = 0; in sendDtmf()
663 ts.tv_nsec = 100000000; in sendDtmf()
665 nanosleep(&ts, NULL); in sendDtmf()
671 nanosleep(&ts, NULL); in sendDtmf()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java1395 long ts, String filePath) { in validateYuvData() argument
1405 filePath + "/" + width + "x" + height + "_" + ts / 1e6 + ".yuv"; in validateYuvData()
1411 long ts, String filePath) { in validateRaw16Data() argument
1420 filePath + "/" + width + "x" + height + "_" + ts / 1e6 + ".raw16"; in validateRaw16Data()
1428 long ts, String filePath) { in validateRawPrivateData() argument
1440 filePath + "/" + width + "x" + height + "_" + ts / 1e6 + ".rawPriv"; in validateRawPrivateData()
1448 long ts, String filePath) { in validateDepth16Data() argument
1457 filePath + "/" + width + "x" + height + "_" + ts / 1e6 + ".depth16"; in validateDepth16Data()
1466 long ts, String filePath) { in validateDepthPointCloudData() argument
1474 filePath + "/" + width + "x" + height + "_" + ts / 1e6 + ".depth_point_cloud"; in validateDepthPointCloudData()

123