Searched defs:seconds (Results 1 - 22 of 22) sorted by relevance

/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DDuration.java27 * 70 seconds.
36 public int seconds; field in class:Duration
54 seconds = 0;
109 seconds = n;
135 cal.add(Calendar.SECOND, sign*seconds);
148 + seconds);
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
H A DDurationTest.java28 int minutes, int seconds) throws DateException {
38 assertEquals("Duration seconds is not equal for " + str, seconds, duration.seconds);
26 verifyDuration(String str, int sign, int weeks, int days, int hours, int minutes, int seconds) argument
/frameworks/av/media/mtp/
H A DMtpUtils.cpp71 void formatDateTime(time_t seconds, char* buffer, int bufferLength) { argument
74 localtime_r(&seconds, &tm);
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dvop.cpp26 PV_STATUS EncodeGOVHeader(BitstreamEncVideo *stream, UInt seconds);
276 PV_STATUS EncodeGOVHeader(BitstreamEncVideo *stream, UInt seconds) argument
288 tmpvar = seconds / 3600;
291 tmpvar = (seconds - tmpvar * 3600) / 60;
296 tmpvar = seconds % 60;
/frameworks/base/media/java/android/mtp/
H A DMtpPropertyGroup.java396 // convert from seconds to DateTime
468 private native String format_date_time(long seconds); argument
/frameworks/wilhelm/tests/sandbox/
H A Dconfigbq.c150 float seconds = (((i * 8) / (format->bitsPerSample * format->numChannels)) * 1000.0) / local
152 short sampleLeft = sin(seconds * M_PI_2 * hzLeft) * 32767.0;
153 short sampleRight = sin(seconds * M_PI_2 * hzRight) * 32767.0;
177 if (seconds >= 1.0f)
/frameworks/base/services/core/jni/
H A Dcom_android_server_AlarmManagerService.cpp430 static void android_server_AlarmManagerService_set(JNIEnv*, jobject, jlong nativeData, jint type, jlong seconds, jlong nanoseconds) argument
434 ts.tv_sec = seconds;
441 static_cast<long long>(seconds),
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseGridLayoutManagerTest.java200 public void waitForLayout(int seconds) throws Throwable { argument
201 mLayoutLatch.await(seconds * (DEBUG ? 1000 : 1), SECONDS);
H A DLoggingItemAnimator.java136 public void waitForPendingAnimationsCall(int seconds) throws InterruptedException { argument
137 mWaitForPendingAnimations.await(seconds, TimeUnit.SECONDS);
H A DAsyncListUtilLayoutTest.java320 public void waitForLayout(int seconds) throws Throwable { argument
321 mLayoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
H A DBaseLinearLayoutManagerTest.java355 public void waitForLayout(int seconds) throws Throwable { argument
356 layoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
H A DDefaultItemAnimatorTest.java133 void runAndWait(int itemCount, int seconds) throws Throwable { argument
134 runAndWait(itemCount, seconds, null);
137 void runAndWait(int itemCount, int seconds, final ThrowingRunnable postRun) throws Throwable { argument
151 waitForItems(itemCount, seconds);
155 void waitForItems(int itemCount, int seconds) throws InterruptedException { argument
157 mExpectedItemCount.tryAcquire(itemCount, seconds, TimeUnit.SECONDS));
H A DBaseStaggeredGridLayoutManagerTest.java488 public void waitForLayout(int seconds) throws Throwable { argument
489 layoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
H A DBaseRecyclerViewInstrumentationTest.java266 void waitForAnimations(int seconds) throws Throwable { argument
281 assertTrue("animations didn't finish on expected time of " + seconds + " seconds",
282 latch.await(seconds, TimeUnit.SECONDS));
306 assertTrue("should go idle in 10 seconds", latch.await(10, TimeUnit.SECONDS));
471 assertThat("should be able to scroll in 10 seconds", !assertArrival ||
541 public void waitForLayout(int seconds) throws Throwable { argument
542 layoutLatch.await(seconds * (mDebug ? 1000 : 1), SECONDS);
/frameworks/base/keystore/java/android/security/keystore/
H A DKeyProtection.java392 * Gets the duration of time (seconds) for which this key is authorized to be used after the
399 * @return duration in seconds or {@code -1} if authentication is required for every use of the
685 * Sets the duration of time (seconds) for which this key is authorized to be used after the
711 * @param seconds duration in seconds or {@code -1} if user authentication must take place
721 @IntRange(from = -1) int seconds) {
722 if (seconds < -1) {
723 throw new IllegalArgumentException("seconds must be -1 or larger");
725 mUserAuthenticationValidityDurationSeconds = seconds;
720 setUserAuthenticationValidityDurationSeconds( @ntRangefrom = -1) int seconds) argument
H A DKeyGenParameterSpec.java544 * Gets the duration of time (seconds) for which this key is authorized to be used after the
551 * @return duration in seconds or {@code -1} if authentication is required for every use of the
1009 * Sets the duration of time (seconds) for which this key is authorized to be used after the
1035 * @param seconds duration in seconds or {@code -1} if user authentication must take place
1045 @IntRange(from = -1) int seconds) {
1046 if (seconds < -1) {
1047 throw new IllegalArgumentException("seconds must be -1 or larger");
1049 mUserAuthenticationValidityDurationSeconds = seconds;
1044 setUserAuthenticationValidityDurationSeconds( @ntRangefrom = -1) int seconds) argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DPlaybackControlsPresenter.java160 int seconds = currentTimeMs / 1000;
161 if (seconds != mCurrentTimeInSeconds) {
162 mCurrentTimeInSeconds = seconds;
182 private static void formatTime(int seconds, StringBuilder sb) { argument
183 int minutes = seconds / 60;
185 seconds -= minutes * 60;
196 if (seconds < 10) {
199 sb.append(seconds);
/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDatabase.cpp1251 android_mtp_MtpPropertyGroup_format_date_time(JNIEnv *env, jobject /*thiz*/, jlong seconds) argument
1254 formatDateTime(seconds, date, sizeof(date));
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp425 } else if (timeUs <= 100000LL) { // XXX: 100 milli-seconds
466 } else if (durationUs >= 10000000) { // 10 seconds
477 // If seconds < 0, only the first frame is I frame, and rest are all P frames
478 // If seconds == 0, all frames are encoded as I frames. No P frames
479 // If seconds > 0, it is the time spacing (seconds) between 2 neighboring I frames
480 status_t StagefrightRecorder::setParamVideoIFramesInterval(int32_t seconds) { argument
481 ALOGV("setParamVideoIFramesInterval: %d seconds", seconds);
482 mIFramesIntervalSec = seconds;
691 int32_t seconds; local
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DAlarmManagerService.java711 // with a minimum delay/interval of 10 seconds, under which we will simply not
1035 // seconds when the API expects milliseconds.
1040 + " seconds");
2090 private native void set(long nativeData, int type, long seconds, long nanoseconds); argument
/frameworks/base/core/java/android/os/
H A DBatteryStats.java2432 private final static void formatTimeRaw(StringBuilder out, long seconds) { argument
2433 long days = seconds / (60 * 60 * 24);
2440 long hours = (seconds - used) / (60 * 60);
2447 long mins = (seconds-used) / 60;
2454 if (seconds != 0 || used != 0) {
2455 out.append(seconds-used);
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 4812 milliseconds