Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
Drstime.rs7 rs_tm tm;
10 rsLocaltime(&tm, &curTime);
12 rsDebug("tm.tm_sec", tm.tm_sec);
13 rsDebug("tm.tm_min", tm.tm_min);
14 rsDebug("tm.tm_hour", tm.tm_hour);
15 rsDebug("tm.tm_mday", tm.tm_mday);
16 rsDebug("tm.tm_mon", tm.tm_mon);
17 rsDebug("tm.tm_year", tm.tm_year);
18 rsDebug("tm.tm_wday", tm.tm_wday);
19 rsDebug("tm.tm_yday", tm.tm_yday);
[all …]
/frameworks/rs/java/tests/RsTest_16/src/com/android/rs/test/
Drstime.rs7 rs_tm tm;
10 rsLocaltime(&tm, &curTime);
12 rsDebug("tm.tm_sec", tm.tm_sec);
13 rsDebug("tm.tm_min", tm.tm_min);
14 rsDebug("tm.tm_hour", tm.tm_hour);
15 rsDebug("tm.tm_mday", tm.tm_mday);
16 rsDebug("tm.tm_mon", tm.tm_mon);
17 rsDebug("tm.tm_year", tm.tm_year);
18 rsDebug("tm.tm_wday", tm.tm_wday);
19 rsDebug("tm.tm_yday", tm.tm_yday);
[all …]
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
Drstime.rs7 rs_tm tm;
10 rsLocaltime(&tm, &curTime);
12 rsDebug("tm.tm_sec", tm.tm_sec);
13 rsDebug("tm.tm_min", tm.tm_min);
14 rsDebug("tm.tm_hour", tm.tm_hour);
15 rsDebug("tm.tm_mday", tm.tm_mday);
16 rsDebug("tm.tm_mon", tm.tm_mon);
17 rsDebug("tm.tm_year", tm.tm_year);
18 rsDebug("tm.tm_wday", tm.tm_wday);
19 rsDebug("tm.tm_yday", tm.tm_yday);
[all …]
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
Drstime.rs7 rs_tm tm;
10 rsLocaltime(&tm, &curTime);
12 rsDebug("tm.tm_sec", tm.tm_sec);
13 rsDebug("tm.tm_min", tm.tm_min);
14 rsDebug("tm.tm_hour", tm.tm_hour);
15 rsDebug("tm.tm_mday", tm.tm_mday);
16 rsDebug("tm.tm_mon", tm.tm_mon);
17 rsDebug("tm.tm_year", tm.tm_year);
18 rsDebug("tm.tm_wday", tm.tm_wday);
19 rsDebug("tm.tm_yday", tm.tm_yday);
[all …]
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/
Drstime.rs7 rs_tm tm;
10 rsLocaltime(&tm, &curTime);
12 rsDebug("tm.tm_sec", tm.tm_sec);
13 rsDebug("tm.tm_min", tm.tm_min);
14 rsDebug("tm.tm_hour", tm.tm_hour);
15 rsDebug("tm.tm_mday", tm.tm_mday);
16 rsDebug("tm.tm_mon", tm.tm_mon);
17 rsDebug("tm.tm_year", tm.tm_year);
18 rsDebug("tm.tm_wday", tm.tm_wday);
19 rsDebug("tm.tm_yday", tm.tm_yday);
[all …]
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/
Drstime.rs7 rs_tm tm;
10 rsLocaltime(&tm, &curTime);
12 rsDebug("tm.tm_sec", tm.tm_sec);
13 rsDebug("tm.tm_min", tm.tm_min);
14 rsDebug("tm.tm_hour", tm.tm_hour);
15 rsDebug("tm.tm_mday", tm.tm_mday);
16 rsDebug("tm.tm_mon", tm.tm_mon);
17 rsDebug("tm.tm_year", tm.tm_year);
18 rsDebug("tm.tm_wday", tm.tm_wday);
19 rsDebug("tm.tm_yday", tm.tm_yday);
[all …]
/frameworks/av/media/mtp/
DMtpUtils.cpp58 struct tm tm = {}; in parseDateTime() local
59 tm.tm_sec = second; in parseDateTime()
60 tm.tm_min = minute; in parseDateTime()
61 tm.tm_hour = hour; in parseDateTime()
62 tm.tm_mday = day; in parseDateTime()
63 tm.tm_mon = month - 1; // mktime uses months in 0 - 11 range in parseDateTime()
64 tm.tm_year = year - 1900; in parseDateTime()
65 tm.tm_isdst = -1; in parseDateTime()
66 outSeconds = useUTC ? timegm(&tm) : mktime(&tm); in parseDateTime()
72 struct tm tm; in formatDateTime() local
[all …]
/frameworks/base/core/jni/
Dandroid_os_SystemClock.cpp63 struct timespec tm; in android_os_SystemClock_currentThreadTimeMillis() local
65 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tm); in android_os_SystemClock_currentThreadTimeMillis()
67 return tm.tv_sec * 1000LL + tm.tv_nsec / 1000000; in android_os_SystemClock_currentThreadTimeMillis()
76 struct timespec tm; in android_os_SystemClock_currentThreadTimeMicro() local
78 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tm); in android_os_SystemClock_currentThreadTimeMicro()
80 return tm.tv_sec * 1000000LL + tm.tv_nsec / 1000; in android_os_SystemClock_currentThreadTimeMicro()
/frameworks/base/core/java/android/net/http/
DX509TrustManagerExtensions.java55 public X509TrustManagerExtensions(X509TrustManager tm) throws IllegalArgumentException { in X509TrustManagerExtensions() argument
56 if (tm instanceof TrustManagerImpl) { in X509TrustManagerExtensions()
57 mDelegate = (TrustManagerImpl) tm; in X509TrustManagerExtensions()
65 mTrustManager = tm; in X509TrustManagerExtensions()
68 mCheckServerTrusted = tm.getClass().getMethod("checkServerTrusted", in X509TrustManagerExtensions()
79 isSameTrustConfiguration = tm.getClass().getMethod("isSameTrustConfiguration", in X509TrustManagerExtensions()
/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp168 struct tm tm, *gmtime_res; in setTime() local
191 gmtime_res = gmtime_r(&tv->tv_sec, &tm); in setTime()
199 rtc.tm_sec = tm.tm_sec; in setTime()
200 rtc.tm_min = tm.tm_min; in setTime()
201 rtc.tm_hour = tm.tm_hour; in setTime()
202 rtc.tm_mday = tm.tm_mday; in setTime()
203 rtc.tm_mon = tm.tm_mon; in setTime()
204 rtc.tm_year = tm.tm_year; in setTime()
205 rtc.tm_wday = tm.tm_wday; in setTime()
206 rtc.tm_yday = tm.tm_yday; in setTime()
[all …]
/frameworks/av/cmds/screenrecord/
DOverlay.cpp260 struct tm tm; in getTimeString_l() local
267 localtime_r(&secs, &tm); in getTimeString_l()
268 strftime(buf, bufLen, format, &tm); in getTimeString_l()
366 struct tm tm; in doDrawInfoPage() local
367 localtime_r(&now, &tm); in doDrawInfoPage()
369 strftime(timeBuf, sizeof(timeBuf), "%a, %d %b %Y %T %z", &tm); in doDrawInfoPage()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DShader_Delegate.java62 for (TileMode tm : TileMode.values()) { in getTileMode()
63 if (tm.nativeInt == tileMode) { in getTileMode()
64 return tm; in getTileMode()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOMADMAdapter.java127 TelephonyManager tm = (TelephonyManager) context in OMADMAdapter() local
129 String simOperator = tm.getSimOperator(); in OMADMAdapter()
130 mImsi = tm.getSubscriberId(); in OMADMAdapter()
131 mImei = tm.getImei(); in OMADMAdapter()
138 strDevId = tm.getDeviceId().toUpperCase(Locale.US); in OMADMAdapter()
149 strDevId = tm.getDeviceId(); in OMADMAdapter()
334 TelephonyManager tm = (TelephonyManager) context in isSprint() local
336 String simOperator = tm.getSimOperator(); in isSprint()
337 String imsi = tm.getSubscriberId(); in isSprint()
/frameworks/base/packages/Osu/src/com/android/hotspot2/
DOMADMAdapter.java125 TelephonyManager tm = (TelephonyManager) context in OMADMAdapter() local
127 String simOperator = tm.getSimOperator(); in OMADMAdapter()
128 mImsi = tm.getSubscriberId(); in OMADMAdapter()
129 mImei = tm.getImei(); in OMADMAdapter()
136 strDevId = tm.getDeviceId().toUpperCase(Locale.US); in OMADMAdapter()
146 strDevId = tm.getDeviceId(); in OMADMAdapter()
342 TelephonyManager tm = (TelephonyManager) context in isSprint() local
344 String simOperator = tm.getSimOperator(); in isSprint()
345 String imsi = tm.getSubscriberId(); in isSprint()
/frameworks/base/core/tests/coretests/src/android/net/http/
DX509TrustManagerExtensionsTest.java64 for (TrustManager tm : tms) { in testNormalUseCase()
65 if (tm instanceof X509TrustManager) { in testNormalUseCase()
66 new X509TrustManagerExtensions((X509TrustManager)tm); in testNormalUseCase()
/frameworks/base/libs/usb/tests/accessorytest/
Dhid.c42 struct timespec tm; in milli_sleep() local
44 tm.tv_sec = 0; in milli_sleep()
45 tm.tv_nsec = millis * 1000000; in milli_sleep()
46 nanosleep(&tm, NULL); in milli_sleep()
Dusb.c38 struct timespec tm; in milli_sleep() local
40 tm.tv_sec = 0; in milli_sleep()
41 tm.tv_nsec = millis * 1000000; in milli_sleep()
42 nanosleep(&tm, NULL); in milli_sleep()
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
Daccessorychat.c70 struct timespec tm; in milli_sleep() local
72 tm.tv_sec = 0; in milli_sleep()
73 tm.tv_nsec = millis * 1000000; in milli_sleep()
74 nanosleep(&tm, NULL); in milli_sleep()
/frameworks/base/include/androidfw/
DZipUtils.h70 static inline void zipTimeToTimespec(uint32_t when, struct tm* timespec) { in zipTimeToTimespec()
73 memset(timespec, 0, sizeof(struct tm)); in zipTimeToTimespec()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java109 final TelephonyManager tm = (TelephonyManager) in checkAccessLevel() local
111 boolean hasCarrierPrivileges = tm != null && in checkAccessLevel()
112 tm.checkCarrierPrivilegesForPackage(callingPackage) == in checkAccessLevel()
/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java196 final TelecomManager tm = getTelecomManager(context); in isDefaultOrSystemDialer() local
197 return packageName.equals(tm.getDefaultDialerPackage()) in isDefaultOrSystemDialer()
198 || packageName.equals(tm.getSystemDialerPackage()); in isDefaultOrSystemDialer()
/frameworks/base/core/java/com/android/internal/app/
DLocaleStore.java183 TelephonyManager tm = TelephonyManager.from(context); in getSimCountries() local
185 if (tm != null) { in getSimCountries()
186 String iso = tm.getSimCountryIso().toUpperCase(Locale.US); in getSimCountries()
191 iso = tm.getNetworkCountryIso().toUpperCase(Locale.US); in getSimCountries()
/frameworks/base/services/core/java/com/android/server/
DMountServiceIdler.java95 JobScheduler tm = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); in scheduleIdlePass() local
104 tm.schedule(builder.build()); in scheduleIdlePass()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiStateMachineTest.java1044 TelephonyManager tm = mock(TelephonyManager.class); in getGsmSimAuthResponseTest() local
1046 assertEquals("", mWsm.getGsmSimAuthResponse(invalidRequests, tm)); in getGsmSimAuthResponseTest()
1049 when(tm.getIccAuthentication(anyInt(), anyInt(), in getGsmSimAuthResponseTest()
1051 assertEquals(null, mWsm.getGsmSimAuthResponse(failedRequests, tm)); in getGsmSimAuthResponseTest()
1053 when(tm.getIccAuthentication(2, tm.AUTHTYPE_EAP_SIM, in getGsmSimAuthResponseTest()
1056 when(tm.getIccAuthentication(1, tm.AUTHTYPE_EAP_SIM, in getGsmSimAuthResponseTest()
1060 when(tm.getIccAuthentication(1, tm.AUTHTYPE_EAP_SIM, in getGsmSimAuthResponseTest()
1065 new String[] { "1A2B", "0123" }, tm)); in getGsmSimAuthResponseTest()
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/service/
DTestJobService.java122 JobScheduler tm = in scheduleJob() local
124 tm.schedule(job); in scheduleJob()

123