/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
H A D | RRuleTest.java | 45 private static String[] getFormattedDates(long[] dates, Time time, boolean truncate) { argument 49 time.set(date); 51 out[i] = time.format2445().substring(0, 8); // Just YYMMDD 53 out[i] = time.format2445().substring(0, 15); // YYMMDDThhmmss 85 * @param tz The time zone. UTC is used if null is passed in. 125 boolean truncate = dtstartStr.length() <= 8; // Just date, not date-time 262 // if the UNTIL date is timed, when the start is not, the time should be
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
H A D | GsmServiceStateTracker.java | 118 * Sometimes we get the NITZ time before we know what country we 119 * are in. Keep the time zone information from the NITZ string so 120 * we can fix the time zone once know the country. 147 /** Wake lock used while setting time of day. */ 186 Log.i("GsmServiceStateTracker", "Auto time state changed"); 194 Log.i("GsmServiceStateTracker", "Auto time zone state changed"); 840 // clean slate for next time 871 newSS.setStateOutOfService(); // clean slate for next time 957 log("pollStateDone: fix time zone zoneName='" + zoneName + 966 // it is in GMT+0 w/ DST time zon 1545 saveNitzTime(long time) argument 1577 setAndBroadcastNetworkSetTime(long time) argument [all...] |
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/ |
H A D | UiDevice.java | 383 public void waitForIdle(long time) { argument 384 mUiAutomationBridge.waitForIdle(time); 582 * to allow the device time to wake up and accept input.
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
H A D | EffectReverb.cpp | 1220 // Apply the decay time to the Reverb. 1224 // time decay to be applied 1228 void ReverbSetDecayTime(ReverbContext *pContext, uint32_t time){ argument 1229 //ALOGV("\tReverbSetDecayTime start (%d)", time); 1240 if (time <= LVREV_MAX_T60) { 1241 ActiveParams.T60 = (LVM_UINT16)time; 1254 pContext->SavedDecayTime = (int16_t)time; 1263 // Get the decay time applied to the Revervb. 1283 // This will fail if the decay time is set to more than 7000 1400 // Get the decay time applie 1780 uint32_t time; local [all...] |
/frameworks/base/core/java/android/text/format/ |
H A D | DateUtils.java | 36 * elapsed time and date ranges, strings for days of the week and months, and AM/PM text etc. 99 // Date and time format strings that are constant and don't need to be 335 * Returns a string describing the elapsed time since startTime. 336 * @param startTime some time in the past. 337 * @return a String object containing the elapsed time. 345 * Returns a string describing 'time' as a time relative to 'now'. 350 * @param time the time to describe, in milliseconds 351 * @param now the current time i 356 getRelativeTimeSpanString(long time, long now, long minResolution) argument 381 getRelativeTimeSpanString(long time, long now, long minResolution, int flags) argument 502 getRelativeDateTimeString(Context c, long time, long minResolution, long transitionResolution, int flags) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | HTML5VideoViewProxy.java | 105 // Every time webView setBaseLayer, this will be called. 191 public static void play(String url, int time, HTML5VideoViewProxy proxy, argument 240 mHTML5VideoView = new HTML5VideoInline(videoLayerId, time, skipPrepare); 250 mHTML5VideoView.seekTo(time); 273 public static void seek(int time, HTML5VideoViewProxy proxy) { argument 274 if (mCurrentProxy == proxy && time >= 0 && mHTML5VideoView != null) { 275 mHTML5VideoView.seekTo(time); 391 Integer time = (Integer) msg.obj; 392 mSeekPosition = time; 603 // Pass Proxy into webview, such that every time w 711 seek(int time) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | TextLayoutCache.cpp | 61 ALOGD("Initialization is done - Start time = %lld", mCacheStartTime); 154 " - Compute time %0.6f ms - Put time %0.6f ms - Text = '%s'", 165 " - Compute time %0.6f ms - Text = '%s'", 182 "- Compute time %0.6f ms - " 183 "Cache get time %0.6f ms - Gain in percent: %2.2f - Text = '%s'", 321 void TextLayoutValue::setElapsedTime(uint32_t time) { argument 322 mElapsedTime = time;
|
/frameworks/base/libs/androidfw/ |
H A D | InputTransport.cpp | 49 // Minimum time difference between consecutive samples before attempting to resample. 52 // Maximum time to predict forward from the last known state, to avoid predicting too 53 // far into the future. This time is further bounded by 50% of the last time delta. 577 // touch, then use the resampled time and coordinates instead. 715 ALOGD("Not resampled, delta time is %lld ns.", delta); 727 ALOGD("Not resampled, delta time is %lld ns.", delta); 734 ALOGD("Sample time is too far in the future, adjusting prediction " 942 ssize_t InputConsumer::findSampleNoLaterThan(const Batch& batch, nsecs_t time) { argument 946 && batch.samples.itemAt(index).body.motion.eventTime <= time) { [all...] |
H A D | KeyCharacterMap.cpp | 443 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) { 448 0, keyCode, 0, metaState, 0, time, time); 452 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 456 addLockedMetaKey(outEvents, deviceId, metaState, time, 458 addLockedMetaKey(outEvents, deviceId, metaState, time, 460 addLockedMetaKey(outEvents, deviceId, metaState, time, 463 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, 467 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, 471 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, 442 addKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) argument 451 addMetaKeys(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t* currentMetaState) argument 516 addSingleEphemeralMetaKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t keyCode, int32_t keyMetaState, int32_t* currentMetaState) argument 528 addDoubleEphemeralMetaKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t leftKeyCode, int32_t leftKeyMetaState, int32_t rightKeyCode, int32_t rightKeyMetaState, int32_t eitherKeyMetaState, int32_t* currentMetaState) argument 546 addLockedMetaKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, nsecs_t time, int32_t keyCode, int32_t keyMetaState, int32_t* currentMetaState) argument [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | ThrottleService.java | 143 public ThrottleService(Context context, INetworkManagementService nmService, TrustedTime time, argument 160 mTime = time; 248 // get time quickly without worrying about trusted state 256 // return time in the local, system wall time, correcting for the use of ntp 269 // return time in the local, system wall time, correcting for the use of ntp 508 if (VDBG) Slog.d(TAG, "updated trusted time, reseting alarm"); 599 Slog.w(TAG, "missing trusted time, skipping throttle check"); 632 // pretend we only have 1/2 the time remainin [all...] |
/frameworks/base/services/java/com/android/server/net/ |
H A D | NetworkStatsService.java | 260 IAlarmManager alarmManager, TrustedTime time, File systemDir, 265 mTime = checkNotNull(time, "missing TrustedTime"); 945 // try refreshing time source when stale 259 NetworkStatsService(Context context, INetworkManagementService networkManager, IAlarmManager alarmManager, TrustedTime time, File systemDir, NetworkStatsSettings settings) argument
|
H A D | NetworkPolicyManagerService.java | 300 INetworkManagementService networkManagement, TrustedTime time, File systemDir, 307 mTime = checkNotNull(time, "missing TrustedTime"); 1130 final Time time = new Time(); 1131 time.setToNow(); 1133 final int cycleDay = time.monthDay; 1134 final String cycleTimezone = time.timezone; 298 NetworkPolicyManagerService(Context context, IActivityManager activityManager, IPowerManager powerManager, INetworkStatsService networkStats, INetworkManagementService networkManagement, TrustedTime time, File systemDir, boolean suppressDefaultPolicy) argument
|
/frameworks/base/services/jni/ |
H A D | com_android_server_location_GpsLocationProvider.cpp | 444 jlong time, jlong timeReference, jint uncertainty) 447 sGpsInterface->inject_time(time, timeReference, uncertainty); 443 android_location_GpsLocationProvider_inject_time(JNIEnv* env, jobject obj, jlong time, jlong timeReference, jint uncertainty) argument
|
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiNative.java | 486 public boolean setP2pGroupIdle(String iface, int time) { argument 487 return doBooleanCommand("SET interface=" + iface + " p2p_group_idle " + time);
|
H A D | WifiWatchdogStateMachine.java | 189 * Response time = confirm_count * sample_interval . 230 * Index i is incremented each time after a poor link detection. 246 * The max time to avoid a BSSID, to prevent avoiding forever. 247 * If current RSSI is at least min_rssi[i], the max avoidance time is at most max_time[i] 251 * time to be low to allow for quick turn around from temporary interference. 653 long time = mCurrentBssid.mBssidAvoidTimeMax - SystemClock.elapsedRealtime(); 654 if (time <= 0) { 655 // max avoidance time is met 656 if (DBG) logd("Max avoid time elapsed"); 668 if (DBG) logd("Link is still poor, time lef 984 GoodLinkTarget(int adj, int count, int time) argument 997 MaxAvoidTime(int time, int rssi) argument [all...] |
/frameworks/native/opengl/libagl/ |
H A D | array.cpp | 403 nsecs_t time = systemTime(SYSTEM_TIME_THREAD) - startTime; local 417 " prims=%5u, time=%6u us, prims/s=%d, v/t=%f\n", 419 prim_count, int(ns2us(time)), int(prim_count*float(seconds(1))/time),
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_fixup.cpp | 569 GLuint minIndex, GLuint maxIndex, nsecs_t time) { 591 minIndex, maxIndex, time); 606 nsecs_t time = glmsg->start_time() - 1; local 608 trace_VertexAttribPointerData(context, 0, count, time); 644 nsecs_t time = glmsg->start_time() - 1; local 646 trace_VertexAttribPointerData(context, minIndex, maxIndex + 1, time); 697 // set start time and duration 568 trace_VertexAttribPointerData(GLTraceContext *context, GLuint minIndex, GLuint maxIndex, nsecs_t time) argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
H A D | CdmaServiceStateTracker.java | 88 /** if time between NITZ updates is less than mNitzUpdateSpacing the update may be ignored. */ 112 * Sometimes we get the NITZ time before we know what country we 113 * are in. Keep the time zone information from the NITZ string so 114 * we can fix the time zone once know the country. 125 /** Wake lock used while setting time of day. */ 152 if (DBG) log("Auto time state changed"); 160 if (DBG) log("Auto time zone state changed"); 872 // If the offset is (0, false) and the time zone property 873 // is set, use the time zone property rather than GMT. 884 // For NITZ string without time zon 1486 setAndBroadcastNetworkSetTime(long time) argument [all...] |
/frameworks/base/media/libdrm/mobile1/src/jni/ |
H A D | drm1_jni.c | 301 * Returns the difference in seconds between the given GMT time 311 * \return the difference in seconds between the given GMT time 345 * and <code>time</code>. 349 * @param time - the specified time, 350 * <code>time = hour * 10000 + minute * 100 + second</code> 354 static int64_t computeTime(int32_t date, int32_t time) argument 361 hour = time / 10000; 362 minute = (time / 100) % 100; 363 second = time 397 computeInterval(int32_t date, int32_t time) argument [all...] |
/frameworks/base/media/libdrm/mobile1/src/objmng/ |
H A D | drm_api.c | 230 pRights->DisplayConstraint.StartTime.time; 234 pRights->DisplayConstraint.EndTime.time; 238 pRights->DisplayConstraint.Interval.time; 246 pRights->PlayConstraint.StartTime.time; 250 pRights->PlayConstraint.EndTime.time; 254 pRights->PlayConstraint.Interval.time; 263 pRights->ExecuteConstraint.StartTime.time; 267 pRights->ExecuteConstraint.EndTime.time; 271 pRights->ExecuteConstraint.Interval.time; 280 pRights->PrintConstraint.StartTime.time; 390 int32_t year, mon, day, hour, min, sec, date, time; local [all...] |
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.cpp | 26 #include <sys/time.h> 1030 // Right now, the only valid time to set a retransmit endpoint is before 1881 int32_t time = systemTime() / 1000000L; local 1906 mBatteryAudio.lastTime[i] += time; 1910 mBatteryAudio.lastTime[i] = 0 - time; 1922 // record the start time only if currently no other audio 1927 mBatteryAudio.lastTime[i] -= time; 1941 // record the stop time only if currently this is the only 1946 mBatteryAudio.lastTime[i] += time; 1981 info.audioLastTime -= time; 2021 int32_t time = systemTime() / 1000000L; //in ms local [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioPolicyService.cpp | 25 #include <sys/time.h> 663 // commands are sorted by increasing time stamp: execute them from index 0 and up 887 nsecs_t time = 0; local 895 // check same pending commands with later time stamps and eliminate them 898 // commands are sorted by increasing time stamp: no need to scan the rest of mAudioCommands 933 time = command2->mTime; 944 time = command2->mTime; 955 // removed commands always have time stamps greater than current command 966 // wait for status only if delay is 0 and command time was not modified above 967 if (delayMs == 0 && time [all...] |
/frameworks/base/core/java/android/content/ |
H A D | SyncManager.java | 116 * When retrying a sync for the first time use this delay. After that 117 * the retry time will double until it reached MAX_SYNC_RETRY_TIME. 123 * Default the max sync retry time to this value. 417 // This WakeLock is used to ensure that we stay awake between the time that we receive 989 // time 1073 static String formatTime(long time) { argument 1075 tobj.set(time); 1107 pw.print("time spent syncing: "); 1114 pw.print("next alarm time: "); pw.print(mSyncHandler.mAlarmScheduleTime); 1205 pw.print(" time 1255 dumpTimeSec(PrintWriter pw, long time) argument [all...] |
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | KeyboardView.java | 452 * Attaches a keyboard to this view. The keyboard can be switched at any time and the 472 mMiniKeyboardCache.clear(); // Not really necessary to do every time, but will free up views 1469 long time = ev.getEventTime(); 1475 addPoint(ev.getX(), ev.getY(), time); 1478 private void addPoint(float x, float y, long time) { argument 1485 } else if (pastTime[i] < time-LONGEST_PAST_TIME) { 1505 pastTime[i] = time;
|
/frameworks/base/services/java/com/android/server/power/ |
H A D | DisplayPowerController.java | 93 // If true, enables the use of the current time as an auto-brightness adjustment. 101 // Specifies the maximum magnitude of the time of day adjustment. 104 // The amount of time after or before sunrise over which to start adjusting 141 // IIR filter time constants in milliseconds for computing two moving averages of 213 // Amount of time to delay auto-brightness after screen on while waiting for 284 // The elapsed real time when the screen on was blocked. 290 // The time when the light sensor was enabled. 302 // The time of the most light recent sample. 318 // The time when the average lux last changed direction. 592 // Initialize things the first time th 829 handleProximitySensorEvent(long time, boolean positive) argument 887 handleLightSensorEvent(long time, float lux) argument 894 applyLightSensorMeasurement(long time, float lux) argument 913 updateAmbientLux(long time) argument [all...] |