/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | rstime.rs | 23 rs_tm tm; 26 rsLocaltime(&tm, &curTime); 28 rsDebug("tm.tm_sec", tm.tm_sec); 29 rsDebug("tm.tm_min", tm.tm_min); 30 rsDebug("tm.tm_hour", tm.tm_hour); 31 rsDebug("tm.tm_mday", tm [all...] |
/frameworks/av/media/mtp/ |
H A D | MtpUtils.cpp | 58 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 D | android_os_SystemClock.cpp | 52 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 D | EmojiTextViewHelperPre19Test.java | 50 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 D | EmojiTextViewHelperTest.java | 85 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 D | TelephonyUtilTest.java | 41 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/core/java/android/net/http/ |
H A D | X509TrustManagerExtensions.java | 52 * @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 D | ZipUtils.h | 70 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 D | X509TrustManagerExtensionsTest.java | 64 for (TrustManager tm : tms) { 65 if (tm instanceof X509TrustManager) { 66 new X509TrustManagerExtensions((X509TrustManager)tm);
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | Shader_Delegate.java | 65 for (TileMode tm : TileMode.values()) { 66 if (tm.nativeInt == tileMode) { 67 return tm;
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_AlarmManagerService.cpp | 124 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 D | TelephonyUtil.java | 36 * @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 D | EmojiTextViewHelper.java | 157 final TransformationMethod tm = mTextView.getTransformationMethod(); 158 if (tm != null && !(tm instanceof PasswordTransformationMethod)) { 159 mTextView.setTransformationMethod(wrapTransformationMethod(tm));
|
/frameworks/av/services/audioflinger/ |
H A D | BufLog.cpp | 132 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 D | ZipUtils_test.cpp | 38 struct tm t;
|
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
H A D | accessorychat.c | 70 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 D | hid.c | 42 struct timespec tm; local 44 tm.tv_sec = 0; 45 tm.tv_nsec = millis * 1000000; 46 nanosleep(&tm, NULL);
|
H A D | usb.c | 38 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 D | DumpstateInternal.cpp | 145 timeval tm; local 150 tm.tv_sec = 30; 151 tm.tv_usec = 0; 153 int ret = TEMP_FAILURE_RETRY(select(fd + 1, &read_set, nullptr, nullptr, &tm));
|
/frameworks/av/cmds/screenrecord/ |
H A D | Overlay.cpp | 258 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 D | MountServiceIdler.java | 95 JobScheduler tm = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); 104 tm.schedule(builder.build());
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/ |
H A D | OMADMAdapter.java | 125 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 D | NetworkStatsAccess.java | 109 final TelephonyManager tm = (TelephonyManager) 111 boolean hasCarrierPrivileges = tm != null && 112 tm.checkCarrierPrivilegesForPackage(callingPackage) ==
|
/frameworks/base/telecomm/java/android/telecom/ |
H A D | DefaultDialerManager.java | 200 final TelecomManager tm = getTelecomManager(context); 201 return packageName.equals(tm.getDefaultDialerPackage()) 202 || packageName.equals(tm.getSystemDialerPackage());
|
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/service/ |
H A D | TestJobService.java | 123 JobScheduler tm = 125 tm.schedule(job);
|