Searched refs:unit (Results 1 - 25 of 37) sorted by relevance

12

/packages/apps/TV/tests/input/
H A Dunit.sh17 # text fixture setup for unit tests
20 echo "text fixture setup for unit tests"
23 -e testSetupMode unit \
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/
H A DFuturesUtil.java26 TimeUnit unit, Handler handler) {
27 return withTimeout(future, time, unit, ContactsExecutors.newHandlerExecutor(handler));
39 TimeUnit unit, ScheduledExecutorService executor) {
47 }, time, unit);
25 withTimeout(final ListenableFuture<V> future, long time, TimeUnit unit, Handler handler) argument
38 withTimeout(final ListenableFuture<V> future, long time, TimeUnit unit, ScheduledExecutorService executor) argument
H A DContactsExecutors.java111 public ScheduledFuture<?> schedule(final Runnable command, long delay, TimeUnit unit) { argument
113 .fromRunnable(mHandler, delay, unit, command);
114 mHandler.postDelayed(future, unit.toMillis(delay));
120 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { argument
121 final HandlerFuture<V> future = new HandlerFuture<>(mHandler, delay, unit, callable);
122 mHandler.postDelayed(future, unit.toMillis(delay));
129 long period, TimeUnit unit) {
136 long delay, TimeUnit unit) {
160 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { argument
192 public long getDelay(TimeUnit unit) { argument
128 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
135 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument
231 fromRunnable(Handler handler, long delay, TimeUnit unit, final Runnable command) argument
[all...]
/packages/apps/Settings/tests/unit/src/com/android/settings/tests/
H A DManufacturer.java21 import com.android.settings.tests.unit.R;
H A DOperator.java21 import com.android.settings.tests.unit.R;
/packages/apps/TV/tests/common/src/com/android/tv/testing/
H A DFakeClock.java68 * Increment the current time by one unit of time.
70 * @param unit The time unit to increment by.
72 public void increment(TimeUnit unit) { argument
73 increment(unit, 1);
77 * Increment the current time by {@code amount} unit of time.
79 * @param unit The time unit to increment by.
82 public void increment(TimeUnit unit, long amount) { argument
83 mCurrentTimeMillis += unit
[all...]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DTestScheduledExecutorService.java71 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { argument
98 TimeUnit unit) throws InterruptedException {
109 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
120 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { argument
121 TestFuture future = new TestFuture(command, delay, unit);
127 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { argument
133 TimeUnit unit) {
139 long delay, TimeUnit unit) {
186 final TimeUnit unit; field in class:TestScheduledExecutorService.TestFuture
188 public TestFuture(Runnable runnable, long delay, TimeUnit unit) { argument
97 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
132 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
138 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument
195 getDelay(TimeUnit unit) argument
225 get(long timeout, TimeUnit unit) argument
[all...]
H A DTestPredicate.java66 public @Nullable T waitForCall(int timeout, TimeUnit unit) argument
68 return mFuture.get(timeout, unit);
/packages/apps/Camera2/src/com/android/camera/async/
H A DForwardingBufferQueue.java43 public T getNext(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, argument
45 return mDelegate.getNext(timeout, unit);
H A DBufferQueue.java45 * @param unit The unit associated with the timeout.
54 public T getNext(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, argument
H A DCountableBufferQueue.java89 public T getNext(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, argument
91 T result = mBufferQueue.getNext(timeout, unit);
H A DConcurrentBufferQueue.java174 public T getNext(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, argument
176 Entry<T> nextEntry = mQueue.poll(timeout, unit);
/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DProcessorBase.java72 public final Object get(long timeout, TimeUnit unit) { argument
/packages/apps/Test/connectivity/PMC/
H A DAndroid.mk20 # additionally, build unit tests in a separate .apk
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/
H A DAutoResizeTextView.java142 * <p>Note that the final size unit will be truncated to the nearest integer value of the
143 * specified unit.
146 public final void setTextSize(int unit, float size) { argument
147 float maxTextSize = TypedValue.applyDimension(unit, size, displayMetrics);
164 * <p>Note that the final size unit will be truncated to the nearest integer value of the
165 * specified unit.
167 public final void setMinTextSize(int unit, float size) { argument
168 float minTextSize = TypedValue.applyDimension(unit, size, displayMetrics);
177 * Sets the unit to use as step units when computing the resized font size. This view's text
178 * contents will always be rendered as a whole integer value in the unit specifie
186 setResizeStepUnit(int unit) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/imagedistributor/
H A DImageStream.java63 * @param unit The unit associated with the timeout.
73 public ImageProxy getNext(long timeout, TimeUnit unit) throws InterruptedException, argument
/packages/apps/Browser2/src/org/chromium/webview_shell/
H A DWebViewLayoutTestActivity.java78 public void waitForFinish(long timeout, TimeUnit unit) throws InterruptedException, argument
81 long deadline = System.currentTimeMillis() + unit.toMillis(timeout);
/packages/apps/DocumentsUI/tests/
H A DAndroid.mk7 $(call all-java-files-under, unit) \
/packages/apps/Messaging/src/com/android/messaging/sms/
H A DSmsReleaseStorage.java39 // Time duration unit types
49 public Duration(final int count, final int unit) { argument
51 mUnit = unit;
105 "SmsAutoDelete: invalid duration unit " + duration.mUnit);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DDictionaryFacilitator.java144 void waitForLoadingMainDictionaries(final long timeout, final TimeUnit unit) argument
148 void waitForLoadingDictionariesForTesting(final long timeout, final TimeUnit unit) argument
/packages/providers/CallLogProvider/
H A DAndroid.mk9 # The Jacoco tool analyzes code coverage when running unit tests on the
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ringbuffer/
H A DDynamicRingBuffer.java136 public ImageProxy getNext(long timeout, TimeUnit unit) throws InterruptedException, argument
138 return mQueue.getNext(timeout, unit);
/packages/apps/KeyChain/
H A DAndroid.mk29 # additionally, build unit tests in a separate .apk
/packages/providers/ContactsProvider/
H A DAndroid.mk15 # The Jacoco tool analyzes code coverage when running unit tests on the
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DCalculatorFormula.java144 private void setTextSizeInternal(int unit, float size, boolean notifyListener) { argument
146 super.setTextSize(unit, size);
153 public void setTextSize(int unit, float size) { argument
154 setTextSizeInternal(unit, size, true);

Completed in 611 milliseconds

12