Searched refs:tm (Results 1 - 25 of 64) sorted by relevance

123

/frameworks/av/media/mtp/
H A DMtpUtils.cpp58 struct tm tm = {}; local
59 tm.tm_sec = second;
60 tm.tm_min = minute;
61 tm.tm_hour = hour;
62 tm.tm_mday = day;
63 tm.tm_mon = month - 1; // mktime uses months in 0 - 11 range
64 tm.tm_year = year - 1900;
65 tm.tm_isdst = -1;
66 outSeconds = useUTC ? timegm(&tm)
72 struct tm tm; local
[all...]
/frameworks/base/core/jni/
H A Dandroid_os_SystemClock.cpp52 struct timespec tm; local
54 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tm);
56 return tm.tv_sec * 1000LL + tm.tv_nsec / 1000000;
64 struct timespec tm; local
66 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tm);
68 return tm.tv_sec * 1000000LL + tm.tv_nsec / 1000;
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/
H A DEmojiTextViewHelperPre19Test.java50 final TransformationMethod tm = mock(TransformationMethod.class);
51 mTextView.setTransformationMethod(tm);
55 assertSame(tm, mTextView.getTransformationMethod());
72 final TransformationMethod tm = mock(TransformationMethod.class);
73 assertSame(tm, mTextViewHelper.wrapTransformationMethod(tm));
78 final TransformationMethod tm = mock(TransformationMethod.class);
79 mTextView.setTransformationMethod(tm);
81 assertSame(tm, mTextView.getTransformationMethod());
84 assertSame(tm, mTextVie
[all...]
H A DEmojiTextViewHelperTest.java85 final TransformationMethod tm = mTextView.getTransformationMethod();
86 assertThat(tm, instanceOf(EmojiTransformationMethod.class));
90 assertSame(tm, mTextView.getTransformationMethod());
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
H A DTelephonyUtilTest.java41 TelephonyManager tm = mock(TelephonyManager.class);
42 when(tm.getSubscriberId()).thenReturn("3214561234567890");
43 when(tm.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY);
44 when(tm.getSimOperator()).thenReturn("321456");
46 TelephonyUtil.getSimIdentity(tm, WifiConfigurationTestUtil.createEapNetwork(
49 TelephonyUtil.getSimIdentity(tm, WifiConfigurationTestUtil.createEapNetwork(
55 TelephonyManager tm = mock(TelephonyManager.class);
56 when(tm.getSubscriberId()).thenReturn("3214561234567890");
57 when(tm.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY);
58 when(tm
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DShader_Delegate.java62 for (TileMode tm : TileMode.values()) {
63 if (tm.nativeInt == tileMode) {
64 return tm;
/frameworks/base/core/java/android/net/http/
H A DX509TrustManagerExtensions.java52 * @param tm A {@link X509TrustManager} as returned by TrustManagerFactory.getInstance();
53 * @throws IllegalArgumentException If tm is an unsupported TrustManager type.
55 public X509TrustManagerExtensions(X509TrustManager tm) throws IllegalArgumentException { argument
56 if (tm instanceof TrustManagerImpl) {
57 mDelegate = (TrustManagerImpl) tm;
65 mTrustManager = tm;
68 mCheckServerTrusted = tm.getClass().getMethod("checkServerTrusted",
79 isSameTrustConfiguration = tm.getClass().getMethod("isSameTrustConfiguration",
/frameworks/base/libs/androidfw/include/androidfw/
H A DZipUtils.h70 static inline void zipTimeToTimespec(uint32_t when, struct tm* timespec) {
73 memset(timespec, 0, sizeof(struct tm));
/frameworks/base/core/tests/coretests/src/android/net/http/
H A DX509TrustManagerExtensionsTest.java64 for (TrustManager tm : tms) {
65 if (tm instanceof X509TrustManager) {
66 new X509TrustManagerExtensions((X509TrustManager)tm);
/frameworks/base/services/core/jni/
H A Dcom_android_server_AlarmManagerService.cpp124 struct tm tm, *gmtime_res; local
147 gmtime_res = gmtime_r(&tv->tv_sec, &tm);
155 rtc.tm_sec = tm.tm_sec;
156 rtc.tm_min = tm.tm_min;
157 rtc.tm_hour = tm.tm_hour;
158 rtc.tm_mday = tm.tm_mday;
159 rtc.tm_mon = tm.tm_mon;
160 rtc.tm_year = tm.tm_year;
161 rtc.tm_wday = tm
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DTelephonyUtil.java36 * @param tm TelephonyManager instance
40 public static String getSimIdentity(TelephonyManager tm, WifiConfiguration config) { argument
41 if (tm == null) {
45 String imsi = tm.getSubscriberId();
48 if (tm.getSimState() == TelephonyManager.SIM_STATE_READY) {
49 mccMnc = tm.getSimOperator();
224 public static String getGsmSimAuthResponse(String[] requestData, TelephonyManager tm) { argument
225 if (tm == null) {
247 String tmResponse = tm.getIccAuthentication(TelephonyManager.APPTYPE_USIM,
251 tmResponse = tm
320 get3GAuthResponse(SimAuthRequestData requestData, TelephonyManager tm) argument
[all...]
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/
H A DEmojiTextViewHelper.java157 final TransformationMethod tm = mTextView.getTransformationMethod();
158 if (tm != null && !(tm instanceof PasswordTransformationMethod)) {
159 mTextView.setTransformationMethod(wrapTransformationMethod(tm));
/frameworks/av/services/audioflinger/
H A DBufLog.cpp132 struct tm tm; local
133 localtime_r(&tv.tv_sec, &tm);
134 strftime(timeStr, sizeof(timeStr), "%Y%m%d%H%M%S", &tm);
/frameworks/base/libs/androidfw/tests/
H A DZipUtils_test.cpp38 struct tm t;
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c70 struct timespec tm; local
72 tm.tv_sec = 0;
73 tm.tv_nsec = millis * 1000000;
74 nanosleep(&tm, NULL);
/frameworks/base/libs/usb/tests/accessorytest/
H A Dhid.c42 struct timespec tm; local
44 tm.tv_sec = 0;
45 tm.tv_nsec = millis * 1000000;
46 nanosleep(&tm, NULL);
H A Dusb.c38 struct timespec tm; local
40 tm.tv_sec = 0;
41 tm.tv_nsec = millis * 1000000;
42 nanosleep(&tm, NULL);
/frameworks/native/cmds/dumpstate/
H A DDumpstateInternal.cpp122 timeval tm; local
127 tm.tv_sec = 30;
128 tm.tv_usec = 0;
130 int ret = TEMP_FAILURE_RETRY(select(fd + 1, &read_set, nullptr, nullptr, &tm));
/frameworks/av/cmds/screenrecord/
H A DOverlay.cpp258 struct tm tm; local
270 localtime_r(&secs, &tm);
271 strftime(buf, bufLen, format, &tm);
369 struct tm tm; local
370 localtime_r(&now, &tm);
372 strftime(timeBuf, sizeof(timeBuf), "%a, %d %b %Y %T %z", &tm);
/frameworks/base/services/core/java/com/android/server/
H A DMountServiceIdler.java95 JobScheduler tm = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
104 tm.schedule(builder.build());
/frameworks/base/packages/Osu/src/com/android/hotspot2/
H A DOMADMAdapter.java125 TelephonyManager tm = (TelephonyManager) context
127 String simOperator = tm.getSimOperator();
128 mImsi = tm.getSubscriberId();
129 mImei = tm.getImei();
136 strDevId = tm.getDeviceId().toUpperCase(Locale.US);
146 strDevId = tm.getDeviceId();
342 TelephonyManager tm = (TelephonyManager) context
344 String simOperator = tm.getSimOperator();
345 String imsi = tm.getSubscriberId();
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsAccess.java109 final TelephonyManager tm = (TelephonyManager)
111 boolean hasCarrierPrivileges = tm != null &&
112 tm.checkCarrierPrivilegesForPackage(callingPackage) ==
/frameworks/base/telecomm/java/android/telecom/
H A DDefaultDialerManager.java196 final TelecomManager tm = getTelecomManager(context);
197 return packageName.equals(tm.getDefaultDialerPackage())
198 || packageName.equals(tm.getSystemDialerPackage());
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/service/
H A DTestJobService.java123 JobScheduler tm =
125 tm.schedule(job);
/frameworks/base/core/java/com/android/internal/app/
H A DLocaleStore.java183 TelephonyManager tm = TelephonyManager.from(context);
185 if (tm != null) {
186 String iso = tm.getSimCountryIso().toUpperCase(Locale.US);
191 iso = tm.getNetworkCountryIso().toUpperCase(Locale.US);

Completed in 727 milliseconds

123