Home
last modified time | relevance | path

Searched refs:mTimeout (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionActivity.java65 private int mTimeout = BluetoothDiscoverableEnabler.DEFAULT_DISCOVERABLE_TIMEOUT; field in RequestPermissionActivity
135 intent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, mTimeout); in onCreate()
182 if (mTimeout == BluetoothDiscoverableEnabler.DISCOVERABLE_TIMEOUT_NEVER) { in createDialog()
189 ? getString(R.string.bluetooth_ask_discovery, mAppLabel, mTimeout) in createDialog()
190 : getString(R.string.bluetooth_ask_discovery_no_name, mTimeout); in createDialog()
265 BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, mTimeout)) { in proceedAndFinish()
267 long endTime = System.currentTimeMillis() + (long) mTimeout * 1000; in proceedAndFinish()
270 if (0 < mTimeout) { in proceedAndFinish()
273 returnCode = mTimeout; in proceedAndFinish()
310 mTimeout = intent.getIntExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, in parseIntent()
[all …]
DRequestPermissionHelperActivity.java54 private int mTimeout = -1; field in RequestPermissionHelperActivity
84 if (mTimeout < 0) { in createDialog()
88 } else if (mTimeout == BluetoothDiscoverableEnabler.DISCOVERABLE_TIMEOUT_NEVER) { in createDialog()
98 mAppLabel, mTimeout) in createDialog()
100 mTimeout); in createDialog()
159 mTimeout = intent.getIntExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, in parseIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppIncomingFileConfirmActivity.java77 private boolean mTimeout = false; field in BluetoothOppIncomingFileConfirmActivity
119 Log.v(TAG, "mTimeout: " + mTimeout); in onCreate()
121 if (mTimeout) { in onCreate()
145 if (!mTimeout) { in onIncomingFileConfirmOk()
185 mTimeout = savedInstanceState.getBoolean(PREFERENCE_USER_TIMEOUT); in onRestoreInstanceState()
187 Log.v(TAG, "onRestoreInstanceState() mTimeout: " + mTimeout); in onRestoreInstanceState()
189 if (mTimeout) { in onRestoreInstanceState()
198 Log.v(TAG, "onSaveInstanceState() mTimeout: " + mTimeout); in onSaveInstanceState()
200 outState.putBoolean(PREFERENCE_USER_TIMEOUT, mTimeout); in onSaveInstanceState()
204 mTimeout = true; in onTimeout()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapActivity.java85 private boolean mTimeout = false; field in BluetoothPbapActivity
172 if (!mTimeout) { in onPositive()
179 mTimeout = false; in onPositive()
203 mTimeout = true; in onTimeout()
220 mTimeout = savedInstanceState.getBoolean(KEY_USER_TIMEOUT); in onRestoreInstanceState()
222 Log.v(TAG, "onRestoreInstanceState() mTimeout: " + mTimeout); in onRestoreInstanceState()
224 if (mTimeout) { in onRestoreInstanceState()
232 outState.putBoolean(KEY_USER_TIMEOUT, mTimeout); in onSaveInstanceState()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivity.java82 private int mTimeout = DEFAULT_DISCOVERABLE_TIMEOUT; field in BluetoothRequestPermissionActivity
168 mDialog = createRequestEnableBluetoothDialogWithTimeout(mTimeout); in onCreate()
177 mDialog = createDiscoverableConfirmDialog(mTimeout); in onCreate()
224 finishWithResult(setDiscoverable(mTimeout)); in proceedAndFinish()
272 mTimeout = intent.getIntExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, in parseIntent()
276 if (mTimeout < 1 || mTimeout > MAX_DISCOVERABLE_TIMEOUT) { in parseIntent()
277 mTimeout = DEFAULT_DISCOVERABLE_TIMEOUT; in parseIntent()
378 enableBluetoothWithWaitingDialog(createDiscoverableConfirmDialog(mTimeout)); in onConfirmEnableBluetooth()
442 return mTimeout; in getTimeout()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DCapabilitiesCache.java228 && request.mTimeout < found.mTimeout)) { in getNextRequest()
247 long mTimeout; field in CapabilitiesCache.Request
251 mTimeout = timeout; in Request()
255 mQuery = mBackend.getCapabilities(mPrinter.path, mTimeout, mHighPriority, this); in start()
288 if (mTimeout == FIRST_PASS_TIMEOUT) { in accept()
290 mTimeout = SECOND_PASS_TIMEOUT; in accept()
DGetCapabilitiesTask.java44 private final long mTimeout; field in GetCapabilitiesTask
51 mTimeout = timeout; in GetCapabilitiesTask()
59 socket.connect(a, (int) mTimeout); in isDeviceOnline()
116 mUri.getPort(), mUri.getPath(), mUri.getScheme(), mTimeout, printerCaps); in doInBackground()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DTimeoutTask.java33 private long mTimeout = DEFAULT_TIMEOUT; field in TimeoutTask
37 mTimeout = timeout; in TimeoutTask()
43 if (mTimeout < 0) { in prepare()
56 }, mTimeout); in prepare()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DDirectoryListBot.java177 findPlaceholderMessageTextView().waitForExists(mTimeout); in waitForHolderMessage()
247 return mDevice.wait(Until.findObject(By.text(message)), mTimeout); in getSnackbar()
257 mDevice.wait(Until.findObject(SNACK_DELETE), mTimeout); in waitForDeleteSnackbar() local
262 mDevice.wait(Until.gone(SNACK_DELETE), mTimeout * 2); in waitForDeleteSnackbarGone()
266 findDocument(label).waitForExists(mTimeout); in waitForDocument()
278 new UiObject(docList.childSelector(new UiSelector())).waitForExists(mTimeout); in findDocument()
315 doc.waitForExists(mTimeout); in assertFirstDocumentHasFocus()
339 Until.findObject(By.text(assertSelectionText)), mTimeout); in assertSelection()
DBots.java73 final int mTimeout; field in Bots.BaseBot
79 mTimeout = timeout; in BaseBot()
95 mDevice.wait(Until.findObject(selector), mTimeout); in find() local
112 mDevice.waitForIdle(mTimeout); in waitForIdle()
DUiBot.java130 mDevice.waitForIdle(mTimeout); in openOverflowMenu()
219 By.res(mTargetPackage + ":id/action_mode_bar")), mTimeout); in waitForActionModeBarToAppear()
242 title.waitForExists(mTimeout); in findDownloadRetryDialog()
249 title.waitForExists(mTimeout); in findFileRenameDialog()
256 title.waitForExists(mTimeout); in findRenameErrorMessage()
DSidebarBot.java64 new UiObject(rootsList.childSelector(new UiSelector())).waitForExists(mTimeout); in findRoot()
83 if (!new UiObject(rootsList).waitForExists(mTimeout)) { in openDrawer()
DGestureBot.java110 new UiObject(docList.childSelector(new UiSelector())).waitForExists(mTimeout); in findDocument()
/packages/services/Telecomm/src/com/android/server/telecom/
DCreateConnectionProcessor.java125 private CreateConnectionTimeout mTimeout; field in CreateConnectionProcessor
147 return mTimeout != null && mTimeout.isCallTimedOut(); in isCallTimedOut()
297 mTimeout = timeout; in setTimeoutIfNeeded()
303 if (mTimeout != null) { in clearTimeout()
304 mTimeout.unregisterTimeout(); in clearTimeout()
305 mTimeout = null; in clearTimeout()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DPollingCheck.java29 private final long mTimeout; field in PollingCheck
45 mTimeout = timeout; in PollingCheck()
56 long timeout = mTimeout; in run()
/packages/modules/DnsResolver/
DDnsTlsDispatcher.h92 mTimeout(timeout) {} in Transport()
112 std::chrono::milliseconds timeout() const { return mTimeout; } in timeout()
143 const std::chrono::milliseconds mTimeout; member
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageDraw.java37 private long mTimeout; field in ImageDraw
249 mTimeout = DISPLAY_TIME + System.currentTimeMillis(); in displayDrawLook()
285 if (System.currentTimeMillis() < mTimeout) { in onDraw()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java1099 protected long mTimeout = 0; field in DhcpClient.TimeoutState
1127 if (mTimeout > 0) { in maybeInitTimeout()
1128 long alarmTime = SystemClock.elapsedRealtime() + mTimeout; in maybeInitTimeout()
1345 mTimeout = FIRST_TIMEOUT_MS; in DhcpPreconnectingState()
1408 mTimeout = DHCP_TIMEOUT_MS / 2; in DhcpRequestingState()
1910 mTimeout = DHCP_INITREBOOT_TIMEOUT_MS; in enter()
1952 mTimeout = mDependencies.getIntDeviceConfig(DHCP_RESTART_CONFIG_DELAY, 100, in enter()
1978 mTimeout = mIpv6OnlyWaitTimeMs; in enter()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalServiceTest.java1637 private final int mTimeout; field in UserHalServiceTest.GenericHalCallback
1644 this.mTimeout = timeout; in GenericHalCallback()
1664 Log.d(TAG, "assertCalled(): waiting " + mTimeout + "ms"); in assertCalled()
1665 if (!mLatch.await(mTimeout, TimeUnit.MILLISECONDS)) { in assertCalled()
1666 throw new AssertionError("callback not called in " + mTimeout + "ms"); in assertCalled()
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java2090 final int mTimeout; field in NfcService.WatchDogThread
2095 mTimeout = timeout; in WatchDogThread()
2102 mCancelWaiter.wait(mTimeout); in run()