/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDiscoverableEnabler.java | 137 int timeout = getDiscoverableTimeout(); in setEnabled() local 138 long endTimestamp = System.currentTimeMillis() + timeout * 1000L; in setEnabled() 141 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, timeout); in setEnabled() 144 Log.d(TAG, "setEnabled(): enabled = " + enable + "timeout = " + timeout); in setEnabled() 146 if (timeout > 0) { in setEnabled() 158 private void updateTimerDisplay(int timeout) { in updateTimerDisplay() argument 162 String textTimeout = formatTimeRemaining(timeout); in updateTimerDisplay() 168 private static String formatTimeRemaining(int timeout) { in formatTimeRemaining() argument 170 int min = timeout / 60; in formatTimeRemaining() 172 int sec = timeout - (min * 60); in formatTimeRemaining() [all …]
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkApp.java | 52 int timeout = 0; in calculateDurationInMilis() local 56 timeout = 1000 * 60; in calculateDurationInMilis() 59 timeout = 1000 / 10; in calculateDurationInMilis() 63 timeout = 1000; in calculateDurationInMilis() 66 timeout *= duration.timeInterval; in calculateDurationInMilis() 68 return timeout; in calculateDurationInMilis()
|
D | ToneDialog.java | 107 int timeout = StkApp.calculateDurationInMilis(settings.duration); in onCreate() local 108 if (timeout == 0) { in onCreate() 109 timeout = StkApp.TONE_DFEAULT_TIMEOUT; in onCreate() 111 mToneStopper.sendEmptyMessageDelayed(MSG_ID_STOP_TONE, timeout); in onCreate() 113 mVibrator.vibrate(timeout); in onCreate()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
D | UiObject2Asserts.java | 47 SearchCondition<Boolean> searchCondition, long timeout) { in assertWaitForCondition() argument 48 long adjustedTimeout = getAdjustedTimeout(timeout); in assertWaitForCondition() 50 assertTrue(searchCondition + " not true after " + timeout / 1000.0 + " seconds.", result); in assertWaitForCondition() 53 public static long getAdjustedTimeout(long timeout) { in getAdjustedTimeout() argument 54 return timeout + Math.max( in getAdjustedTimeout() 55 Constants.MIN_EXTRA_TIMEOUT, (long) (timeout * Constants.EXTRA_TIMEOUT_PERCENT)); in getAdjustedTimeout()
|
D | UiDeviceAsserts.java | 60 SearchCondition<Boolean> searchCondition, long timeout) { in assertWaitForCondition() argument 61 boolean result = waitForCondition(uiDevice, searchCondition, timeout); in assertWaitForCondition() 62 assertTrue(searchCondition + " not true after " + timeout / 1000.0 + " seconds.", result); in assertWaitForCondition() 78 SearchCondition<Boolean> searchCondition, long timeout) { in waitForCondition() argument 79 long adjustedTimeout = timeout + Math.max(Constants.MIN_EXTRA_TIMEOUT, in waitForCondition() 80 (long) (timeout * Constants.EXTRA_TIMEOUT_PERCENT)); in waitForCondition()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BasicCallTests.java | 25 import static org.mockito.Mockito.timeout; 80 import static org.mockito.Mockito.timeout; 139 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingCall() 167 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingVideoCall() 194 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingVideoCallAsAudio() 222 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingInvalidVideoState() 339 verify(mInCallServiceFixtureX.getTestDouble(), timeout(TEST_TIMEOUT)) in testIncomingCallCallerInfoLookupTimesOutIsAllowed() 341 verify(mInCallServiceFixtureY.getTestDouble(), timeout(TEST_TIMEOUT)) in testIncomingCallCallerInfoLookupTimesOutIsAllowed() 354 verify(mInCallServiceFixtureX.getTestDouble(), timeout(TEST_TIMEOUT)) in testIncomingCallCallerInfoLookupTimesOutIsAllowed() 356 verify(mInCallServiceFixtureY.getTestDouble(), timeout(TEST_TIMEOUT)) in testIncomingCallCallerInfoLookupTimesOutIsAllowed() [all …]
|
D | VideoProviderTest.java | 63 import static org.mockito.Mockito.timeout; 143 verify(mVideoCallCallback, timeout(TEST_TIMEOUT).times(2)) in testCameraChange() 277 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)) in testSessionModifyRequest() 320 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)) in testRequestCameraCapabilities() 355 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)) in testRequestDataUsage() 374 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)) in testReceiveSessionModifyRequest() 395 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)) in testSessionEvent() 413 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)) in testPeerDimensionChange() 431 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)) in testVideoQualityChange()
|
D | ContactsAsyncHelperTest.java | 39 import static org.mockito.Mockito.timeout; 97 verify(mListener, timeout(TEST_TIMEOUT).never()).onImageLoadComplete(anyInt(), in testEmptyUri() 106 verify(mListener, timeout(TEST_TIMEOUT)).onImageLoadComplete(eq(TOKEN), in testNullReturnFromOpenInputStream() 118 verify(mListener, timeout(TEST_TIMEOUT)).onImageLoadComplete(eq(TOKEN), in testImageScaling() 138 verify(mListener, timeout(TEST_TIMEOUT)).onImageLoadComplete(eq(TOKEN), in testNoScaling()
|
D | AsyncBlockCheckFilterTest.java | 36 import static org.mockito.Mockito.timeout; 81 verify(mCallback, timeout(TEST_TIMEOUT)) in testBlockNumber() 95 verify(mCallback, timeout(TEST_TIMEOUT)) in testDontBlockNumber()
|
/packages/apps/Nfc/nxp/jni/ |
D | com_android_nfc_NativeNfcManager.cpp | 1439 static void setFelicaTimeout(jint timeout) { in setFelicaTimeout() argument 1443 if (timeout <= 255) { in setFelicaTimeout() 1444 phLibNfc_SetFelicaTimeout(timeout); in setFelicaTimeout() 1448 phLibNfc_SetHciTimeout(timeout); in setFelicaTimeout() 1475 static void setIsoDepTimeout(jint timeout) { in setIsoDepTimeout() argument 1476 if (timeout <= 4900) { in setIsoDepTimeout() 1477 int value = calcTimeout(timeout); in setIsoDepTimeout() 1493 phLibNfc_SetHciTimeout(timeout); in setIsoDepTimeout() 1497 static void setNfcATimeout(jint timeout) { in setNfcATimeout() argument 1498 if (timeout <= 4900) { in setNfcATimeout() [all …]
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | AbstractPublicApiTest.java | 122 void runUntilStatus(int status, long timeout) throws TimeoutException { in runUntilStatus() argument 125 waitForStatus(status, startMillis, timeout); in runUntilStatus() 132 void waitForStatus(int expected, long afterMillis, long timeout) throws TimeoutException { in waitForStatus() argument 135 final long elapsedTimeout = SystemClock.elapsedRealtime() + timeout; in waitForStatus() 146 if (timeout > MINUTE_IN_MILLIS) { in waitForStatus() 154 if (timeout > MINUTE_IN_MILLIS) { in waitForStatus()
|
/packages/apps/Settings/src/com/android/settings/ |
D | ConfirmDeviceCredentialBaseFragment.java | 305 protected void showError(CharSequence msg, long timeout) { in showError() argument 309 if (timeout != 0) { in showError() 310 mHandler.postDelayed(mResetErrorRunnable, timeout); in showError() 316 protected void showError(int msg, long timeout) { in showError() argument 317 showError(getText(msg), timeout); in showError() local
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | FocusIndicator.java | 21 public void showSuccess(boolean timeout); in showSuccess() argument 22 public void showFail(boolean timeout); in showFail() argument
|
D | PieRenderer.java | 694 public void showSuccess(boolean timeout) { in showSuccess() argument 697 timeout, mStartAnimationAngle); in showSuccess() 704 public void showFail(boolean timeout) { in showFail() argument 707 timeout, mStartAnimationAngle); in showFail() 733 private void startAnimation(long duration, boolean timeout, in startAnimation() argument 735 startAnimation(duration, timeout, mDialAngle, in startAnimation() 739 private void startAnimation(long duration, boolean timeout, in startAnimation() argument 745 mAnimation.setAnimationListener(timeout ? mEndAction : null); in startAnimation()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | AppScanStats.java | 45 boolean timeout; field in AppScanStats.LastScan 150 curr.timeout = true; in setScanTimeout() 212 if (lastScan.timeout) sb.append(" (Forced-Opportunistic)"); in dumpToString() 239 if (scan.timeout) sb.append("Forced "); in dumpToString()
|
/packages/apps/Camera2/src/com/android/camera/async/ |
D | ForwardingBufferQueue.java | 43 public T getNext(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, in getNext() argument 45 return mDelegate.getNext(timeout, unit); in getNext()
|
D | CountableBufferQueue.java | 89 public T getNext(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, in getNext() argument 91 T result = mBufferQueue.getNext(timeout, unit); in getNext()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CreateConnectionProcessor.java | 221 CreateConnectionTimeout timeout = new CreateConnectionTimeout( in setTimeoutIfNeeded() local 223 if (timeout.isTimeoutNeededForCall(getConnectionServices(mAttemptRecords), in setTimeoutIfNeeded() 225 mTimeout = timeout; in setTimeoutIfNeeded() 226 timeout.registerTimeout(); in setTimeoutIfNeeded()
|
/packages/services/Telephony/tests/src/com/android/phone/common/mail/ |
D | MailTransportTest.java | 235 public void connect(SocketAddress address, int timeout) throws IOException { in testOpen_connectFailed_one() 260 public void connect(SocketAddress address, int timeout) throws IOException { in testOpen_connectFailed_multi() 288 public void connect(SocketAddress address, int timeout) throws IOException { in connect() argument 293 if (timeout < 0) { in connect()
|
/packages/services/Car/libvehiclenetwork/libvehiclenetwork-audio-helper/src/ |
D | vehicle-network-audio-helper-for-c.cpp | 27 vehicle_network_audio_helper_t* vehicle_network_audio_helper_create(nsecs_t timeout) { in vehicle_network_audio_helper_create() argument 29 android::VehicleNetworkAudioHelper* helperObj = new android::VehicleNetworkAudioHelper(timeout); in vehicle_network_audio_helper_create()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/autofocus/ |
D | AFTriggerResult.java | 104 public boolean get(long timeout, TimeUnit timeUnit) throws InterruptedException, in get() argument 107 return mFutureResult.get(timeout, timeUnit); in get()
|
D | AETriggerResult.java | 107 public boolean get(long timeout, TimeUnit timeUnit) throws InterruptedException, in get() argument 110 return mFutureResult.get(timeout, timeUnit); in get()
|
/packages/apps/Nfc/nci/jni/ |
D | NfcTag.h | 320 bool isDefaultTransceiveTimeout (int techId, int timeout); 347 void setTransceiveTimeout (int techId, int timeout);
|
/packages/apps/Nfc/nxp/src/com/android/nfc/dhimpl/ |
D | NativeNfcManager.java | 280 private native boolean doSetTimeout(int tech, int timeout); in doSetTimeout() argument 282 public boolean setTimeout(int tech, int timeout) { in setTimeout() argument 283 return doSetTimeout(tech, timeout); in setTimeout()
|
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/ |
D | NativeNfcManager.java | 251 private native boolean doSetTimeout(int tech, int timeout); in doSetTimeout() argument 253 public boolean setTimeout(int tech, int timeout) { in setTimeout() argument 254 return doSetTimeout(tech, timeout); in setTimeout()
|