Home
last modified time | relevance | path

Searched refs:setTimeout (Results 1 – 25 of 41) sorted by relevance

12

/packages/modules/Nfc/framework/tests/src/android/nfc/tech/
DNfcATest.java120 when(mMockTagService.setTimeout(TagTechnology.NFC_A, 1000)).thenReturn( in testSetTimeout()
123 mNfcA.setTimeout(1000); in testSetTimeout()
125 verify(mMockTagService).setTimeout(TagTechnology.NFC_A, 1000); in testSetTimeout()
135 when(mMockTagService.setTimeout(TagTechnology.NFC_A, -1)).thenReturn( in testSetTimeoutInvalidTimeout()
138 assertThrows(IllegalArgumentException.class, () -> mNfcA.setTimeout(-1)); in testSetTimeoutInvalidTimeout()
148 when(mMockTagService.setTimeout(TagTechnology.NFC_A, 1000)).thenThrow( in testSetTimeoutRemoteException()
151 mNfcA.setTimeout(1000); // Should not throw an exception but log it in testSetTimeoutRemoteException()
153 verify(mMockTagService).setTimeout(TagTechnology.NFC_A, 1000); in testSetTimeoutRemoteException()
DNfcFTest.java153 when(mMockTagService.setTimeout(TagTechnology.NFC_F, 1000)).thenReturn( in testSetTimeout()
156 mNfcF.setTimeout(1000); in testSetTimeout()
158 verify(mMockTagService).setTimeout(TagTechnology.NFC_F, 1000); in testSetTimeout()
168 when(mMockTagService.setTimeout(TagTechnology.NFC_F, -1)).thenReturn( in testSetTimeoutInvalidTimeout()
171 assertThrows(IllegalArgumentException.class, () -> mNfcF.setTimeout(-1)); in testSetTimeoutInvalidTimeout()
181 when(mMockTagService.setTimeout(TagTechnology.NFC_F, 1000)).thenThrow( in testSetTimeoutRemoteException()
184 mNfcF.setTimeout(1000); in testSetTimeoutRemoteException()
186 verify(mMockTagService).setTimeout(TagTechnology.NFC_F, 1000); in testSetTimeoutRemoteException()
/packages/modules/Nfc/framework/api/
Dmodule-lib-lint-baseline.txt23 RequiresPermission: android.nfc.tech.IsoDep#setTimeout(int):
24 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
41 RequiresPermission: android.nfc.tech.MifareClassic#setTimeout(int):
42 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
53 RequiresPermission: android.nfc.tech.MifareUltralight#setTimeout(int):
54 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
73 RequiresPermission: android.nfc.tech.NfcA#setTimeout(int):
74 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
81 RequiresPermission: android.nfc.tech.NfcF#setTimeout(int):
82 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
Dlint-baseline.txt28 RequiresPermission: android.nfc.tech.IsoDep#setTimeout(int):
29 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
46 RequiresPermission: android.nfc.tech.MifareClassic#setTimeout(int):
47 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
58 RequiresPermission: android.nfc.tech.MifareUltralight#setTimeout(int):
59 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
78 RequiresPermission: android.nfc.tech.NfcA#setTimeout(int):
79 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
86 RequiresPermission: android.nfc.tech.NfcF#setTimeout(int):
87 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
Dsystem-lint-baseline.txt42 RequiresPermission: android.nfc.tech.IsoDep#setTimeout(int):
43 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
60 RequiresPermission: android.nfc.tech.MifareClassic#setTimeout(int):
61 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
72 RequiresPermission: android.nfc.tech.MifareUltralight#setTimeout(int):
73 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
92 RequiresPermission: android.nfc.tech.NfcA#setTimeout(int):
93 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
100 RequiresPermission: android.nfc.tech.NfcF#setTimeout(int):
101 Method 'setTimeout' documentation mentions permissions without declaring @RequiresPermission
/packages/services/Car/tests/CarHiddenApiTest/src/android/car/hiddenapitest/
DCarUserManagerTest.java139 .setTimeout(START_TIMEOUT_MS) in testLifecycleMultipleListeners()
145 .setTimeout(START_TIMEOUT_MS) in testLifecycleMultipleListeners()
151 .setTimeout(START_TIMEOUT_MS) in testLifecycleMultipleListeners()
237 .setTimeout(SWITCH_TIMEOUT_MS) in testGuestUserResumeToNewGuestUser()
251 .setTimeout(SWITCH_TIMEOUT_MS) in testGuestUserResumeToNewGuestUser()
298 .setTimeout(SWITCH_TIMEOUT_MS) in testSecuredGuestUserResumeToSameUser()
339 .setTimeout(SWITCH_TIMEOUT_MS) in testPersistentUserResumeToUser()
DCarUserManagerUserVisibilityEventTest.java78 .setTimeout(START_TIMEOUT_MS) in testUserVisibilityEvents()
108 .setTimeout(STOP_TIMEOUT_MS) in testUserVisibilityEvents()
DCarUserManagerLifeCycleTest.java76 .setTimeout(SWITCH_TIMEOUT_MS) in testLifecycleListener()
123 .setTimeout(STOP_TIMEOUT_MS) in testLifecycleListener()
/packages/modules/Nfc/tests/cts/tests/src/android/nfc/tech/cts/
DNfcATest.java121 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout()
122 nfcA.setTimeout(250); in testSetTimeout()
125 verify(mNfcTagMock, times(1)).setTimeout(anyInt(), timeout.capture()); in testSetTimeout()
134 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalidTimeout()
135 assertThrows(() -> nfcA.setTimeout(-1)); in testSetTimeout_invalidTimeout()
DNfcFTest.java120 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout()
121 nfcF.setTimeout(250); in testSetTimeout()
124 verify(mNfcTagMock, times(1)).setTimeout(anyInt(), timeout.capture()); in testSetTimeout()
133 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalidTimeout()
134 assertThrows(() -> nfcF.setTimeout(-1)); in testSetTimeout_invalidTimeout()
DIsoDepTest.java138 when(mINfcTag.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout_success()
139 id.setTimeout(250); in testSetTimeout_success()
141 verify(mINfcTag, times(1)).setTimeout(anyInt(), timeout.capture()); in testSetTimeout_success()
148 when(mINfcTag.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalid()
149 Assert.assertThrows(IllegalArgumentException.class, () -> id.setTimeout(250)); in testSetTimeout_invalid()
DMifareUltralightTest.java168 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout()
170 ultralight.setTimeout(250); in testSetTimeout()
173 verify(mNfcTagMock, times(1)).setTimeout(anyInt(), timeout.capture()); in testSetTimeout()
182 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalidTimeout()
183 assertThrows(() -> ultralight.setTimeout(250)); in testSetTimeout_invalidTimeout()
DMifareClassicTest.java431 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout()
432 classic.setTimeout(250); in testSetTimeout()
435 verify(mNfcTagMock, times(1)).setTimeout(anyInt(), timeout.capture()); in testSetTimeout()
444 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalidTimeout()
445 assertThrows(() -> classic.setTimeout(250)); in testSetTimeout_invalidTimeout()
/packages/modules/Virtualization/android/TerminalApp/assets/js/
Dterminal_close.js19 setTimeout(() => {
21 setTimeout(() => {
/packages/modules/Nfc/framework/java/android/nfc/tech/
DNfcA.java146 public void setTimeout(int timeout) { in setTimeout() method in NfcA
148 int err = mTag.getTagService().setTimeout(TagTechnology.NFC_A, timeout); in setTimeout()
DNfcF.java150 public void setTimeout(int timeout) { in setTimeout() method in NfcF
152 int err = mTag.getTagService().setTimeout(TagTechnology.NFC_F, timeout); in setTimeout()
DIsoDep.java93 public void setTimeout(int timeout) { in setTimeout() method in IsoDep
95 int err = mTag.getTagService().setTimeout(TagTechnology.ISO_DEP, timeout); in setTimeout()
DMifareUltralight.java241 public void setTimeout(int timeout) { in setTimeout() method in MifareUltralight
243 int err = mTag.getTagService().setTimeout( in setTimeout()
DMifareClassic.java602 public void setTimeout(int timeout) { in setTimeout() method in MifareClassic
604 int err = mTag.getTagService().setTimeout(TagTechnology.MIFARE_CLASSIC, timeout); in setTimeout()
/packages/modules/Nfc/NfcNci/src/com/android/nfc/wlc/
DNfcCharging.java590 public synchronized void setTimeout(int timeout) { in setTimeout() method in NfcCharging.PresenceCheckWatchdog
1032 mWatchdogWlc.setTimeout(0); in onWlcStopped()
1044 mWatchdogWlc.setTimeout(0); in onWlcStopped()
1057 mWatchdogWlc.setTimeout(0); in onWlcStopped()
1068 mWatchdogWlc.setTimeout(0); in onEndpointRemoved()
/packages/modules/Nfc/framework/java/android/nfc/
DINfcTag.aidl42 int setTimeout(int technology, int timeout); in setTimeout() method
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAddAccessoryActivity.java475 private void setTimeout(int timeout) { in setTimeout() method in AddAccessoryActivity
674 setTimeout(PAIR_OPERATION_TIMEOUT); in statusChanged()
677 setTimeout(CONNECT_OPERATION_TIMEOUT); in statusChanged()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DHttpClientFactory.java73 ConnManagerParams.setTimeout(params, 60 * 1000); in newHttpClient()
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DAdvertiseSettings.java259 public Builder setTimeout(int timeoutMillis) { in setTimeout() method in AdvertiseSettings.Builder
/packages/services/Car/car-lib/src/android/car/os/
DCpuAvailabilityInfo.java228 public @android.annotation.NonNull Builder setTimeout(boolean value) { in setTimeout() method in CpuAvailabilityInfo.Builder

12