Home
last modified time | relevance | path

Searched refs:attempt (Results 1 – 25 of 54) sorted by relevance

123

/packages/modules/RemoteKeyProvisioning/app/tests/hosttest/src/com/android/rkpdapp/hosttest/
DRkpdStatsTests.java71 final RemoteKeyProvisioningAttempt attempt = getAttemptMetric(data); in testDataBudgetEmptyGenerateKey() local
72 assertThat(attempt).isNotNull(); in testDataBudgetEmptyGenerateKey()
73 assertThat(attempt.getCause()).isEqualTo(Cause.OUT_OF_KEYS); in testDataBudgetEmptyGenerateKey()
74 assertThat(attempt.getRemotelyProvisionedComponent()).isEqualTo(RPC_DEFAULT); in testDataBudgetEmptyGenerateKey()
75 assertThat(attempt.getUptime()).isNotEqualTo(UpTime.UPTIME_UNKNOWN); in testDataBudgetEmptyGenerateKey()
76 assertThat(attempt.getEnablement()).isIn(VALID_ENABLEMENTS); in testDataBudgetEmptyGenerateKey()
77 assertThat(attempt.getStatus()).isEqualTo(RemoteKeyProvisioningStatus.OUT_OF_ERROR_BUDGET); in testDataBudgetEmptyGenerateKey()
83 attempt.getRemotelyProvisionedComponent()); in testDataBudgetEmptyGenerateKey()
94 assertThat(network.getStatus()).isEqualTo(attempt.getStatus()); in testDataBudgetEmptyGenerateKey()
104 final RemoteKeyProvisioningAttempt attempt = getAttemptMetric(data); in testRetryableRkpError() local
[all …]
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/hosttestutils/
DAdoptableStorageUtils.java63 int attempt = 0; in enableVirtualDisk() local
66 while (!hasVirtualDisk && attempt++ < 50) { in enableVirtualDisk()
88 int attempt = 0; in getAdoptionDisk() local
90 while ((disks == null || disks.isEmpty()) && attempt++ < 15) { in getAdoptionDisk()
124 int attempt = 0; in getAdoptionVolume() local
126 while (attempt++ < 15) { in getAdoptionVolume()
135 attempt--; in getAdoptionVolume()
150 int attempt = 0; in waitForVolumeReady() local
151 while (attempt++ < 15) { in waitForVolumeReady()
164 int attempt = 0; in waitForVolumeReadyNoCheckingOrEjecting() local
[all …]
DAwaitUtils.java40 int attempt = 0; in waitFor() local
41 while (attempt++ < retryLimit) { in waitFor()
/packages/services/Telecomm/src/com/android/server/telecom/
DCreateConnectionProcessor.java232 CallAttemptRecord attempt = null; in attemptNextPhoneAccount() local
234 attempt = mAttemptRecordIterator.next(); in attemptNextPhoneAccount()
237 attempt.connectionManagerPhoneAccount)) { in attemptNextPhoneAccount()
240 + "attempt: %s", attempt); in attemptNextPhoneAccount()
247 if (!attempt.connectionManagerPhoneAccount.equals(attempt.targetPhoneAccount) && in attemptNextPhoneAccount()
249 attempt.targetPhoneAccount)) { in attemptNextPhoneAccount()
252 + "attempt: %s", attempt); in attemptNextPhoneAccount()
258 if (mCallResponse != null && attempt != null) { in attemptNextPhoneAccount()
259 Log.i(this, "Trying attempt %s", attempt); in attemptNextPhoneAccount()
260 PhoneAccountHandle phoneAccount = attempt.connectionManagerPhoneAccount; in attemptNextPhoneAccount()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/
DHandlerUtilsTest.kt72 repeat(ATTEMPTS) { attempt -> in <lambda>() method
75 y = visibleOnHandlerThread(handler, ThrowingSupplier<Int> { x = attempt; attempt }) in <lambda>()
76 assertEquals(attempt, x) in <lambda>()
77 assertEquals(attempt, y) in <lambda>()
78 handler.post { assertEquals(attempt, x) } in <lambda>()
/packages/modules/Bluetooth/system/rust/src/connection/
Dattempt_manager.rs90 let attempt = in register_direct_connection() localVariable
94 let Entry::Vacant(entry) = self.attempts.entry(attempt) else { in register_direct_connection()
118 let attempt = in register_background_connection() localVariable
122 let Entry::Vacant(entry) = self.attempts.entry(attempt) else { in register_background_connection()
150 self.attempts.retain(|_, attempt| attempt.id != id); in cancel_attempt_with_id()
155 self.attempts.retain(|attempt, _| attempt.remote_address != address); in remove_unconditionally()
160 self.attempts.retain(|attempt, _| attempt.client != client); in remove_client()
179 .filter(|attempt| attempt.remote_address == address) in process_connection()
183 for attempt in interested_clients { in process_connection()
184 if attempt.mode == ConnectionMode::Direct { in process_connection()
[all …]
Dacceptlist_manager.rs28 .filter(|attempt| attempt.mode == ConnectionMode::Background) in determine_target_state()
29 .map(|attempt| attempt.remote_address) in determine_target_state()
34 .filter(|attempt| attempt.mode == ConnectionMode::Direct) in determine_target_state()
35 .map(|attempt| attempt.remote_address) in determine_target_state()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ui/settings/
DSettingsUiTest.java108 for (int attempt = 0; attempt <= maxRetries; attempt++) { in launchSettingsActivityWithRetry()
109 if (attempt > 0) { in launchSettingsActivityWithRetry()
112 long backoffTimeInMillis = backoffSeedInMillis * (2 ^ (attempt - 1)); in launchSettingsActivityWithRetry()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/
DServerAuctionE2ETestBase.java140 int attempt = 1; in retryOnCondition() local
141 while (attempt <= maxRetries) { in retryOnCondition()
142 Log.w(getTag(), String.format("Trying %s. Attempt: %d", funcName, attempt)); in retryOnCondition()
147 attempt++; in retryOnCondition()
148 if (attempt > maxRetries) { in retryOnCondition()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DBackgroundWorkerService.java116 final int attempt = intent.getIntExtra(EXTRA_ATTEMPT, -1); in onHandleWork() local
117 doBackgroundWork(action, attempt); in onHandleWork()
130 private void doBackgroundWork(final Action action, final int attempt) { in doBackgroundWork() argument
153 startServiceWithAction(action, attempt + 1); in doBackgroundWork()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DStorageWizardTest.java152 int attempt = 0; in getAdoptableDisk() local
154 while ((disks == null || disks.isEmpty()) && attempt++ < 15) { in getAdoptableDisk()
167 int attempt = 0; in getPublicVolume() local
170 && attempt++ < 15) { in getPublicVolume()
/packages/modules/adb/
Dtransport.cpp176 ReconnectAttempt attempt = *reconnect_queue_.begin(); in Stop() local
178 remove_transport(attempt.transport); in Stop()
201 ReconnectAttempt attempt; in Run() local
239 attempt = *reconnect_queue_.begin(); in Run()
242 D("attempting to reconnect %s", attempt.transport->serial.c_str()); in Run()
244 switch (attempt.transport->Reconnect()) { in Run()
246 D("attempting to reconnect %s failed.", attempt.transport->serial.c_str()); in Run()
247 if (attempt.attempts_left == 0) { in Run()
249 attempt.transport->serial.c_str()); in Run()
250 remove_transport(attempt.transport); in Run()
[all …]
/packages/modules/Bluetooth/system/test/headless/utils/
Dpower_mode_client.h39 .attempt = 0x0020,
47 .attempt = 4,
55 .attempt = 0, // Unused
/packages/modules/StatsD/tests/src/android/cts/statsd/metadata/
DMetadataTests.java286 for (int attempt = 0; attempt < maxIterationCount; attempt++) { in runTestUntilLossAtomReported()
292 LogUtil.CLog.d("runTestUntilLossAtomReported iteration " + attempt + " for " + pkg); in runTestUntilLossAtomReported()
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/
DNetworkTracePollerTest.cpp190 for (int attempt = 0; attempt < 10; attempt++) { in TEST_F() local
/packages/modules/Bluetooth/system/stack/acl/
Dbtm_pm.cc441 p_res->attempt = (p_md1->attempt > p_md2->attempt) ? (p_md1->attempt) in btm_pm_compare_modes()
442 : (p_md2->attempt); in btm_pm_compare_modes()
596 btsnd_hcic_sniff_mode(handle, md_res.max, md_res.min, md_res.attempt, in btm_pm_snd_md_req()
/packages/providers/MediaProvider/tests/utils/src/com/android/providers/media/tests/utils/
DPublicVolumeSetupHelper.java179 int attempt = 0; in executeShellCommand() local
180 while (attempt++ < 5) { in executeShellCommand()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DDocumentProvidersManager.java69 int attempt) { in readDocumentProviders() argument
80 if (attempt == 0) { in readDocumentProviders()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DFileCopyUiTest.java347 int attempt = 0; in getAdoptionDisk() local
349 while ((disks == null || disks.isEmpty()) && attempt++ < 15) { in getAdoptionDisk()
361 int attempt = 0; in waitForPublicVolume() local
364 && attempt++ < 15) { in waitForPublicVolume()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DIpConnectivityMetricsTest.java121 int attempt = 100; // More than burst quota, but less than buffer size. in testRateLimiting() local
122 for (int i = 0; i < attempt; i++) { in testRateLimiting()
129 for (int i = 0; i < attempt; i++) { in testRateLimiting()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/
DServerInterface.java413 int attempt = 1; in connectAndGetData() local
424 Log.v(TAG, "Requesting data from server. Attempt " + attempt); in connectAndGetData()
452 attempt += 1; in connectAndGetData()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConnectivityManagerTest.java1803 for (int attempt = 0; attempt < maxAttemptRate; attempt++) { in connectionAttemptRateLimitedWhenScreenOff()
1845 for (int attempt = 0; attempt < maxAttemptRate; attempt++) { in connectionAttemptNotRateLimitedWhenScreenOff()
1890 for (int attempt = 0; attempt < maxAttemptRate; attempt++) { in connectionAttemptNotRateLimitedWhenScreenOffForceConnectivityScan()
1903 for (int attempt = 0; attempt < maxAttemptRate; attempt++) { in connectionAttemptNotRateLimitedWhenScreenOffForceConnectivityScan()
1937 for (int attempt = 0; attempt < maxAttemptRate; attempt++) { in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection()
1950 for (int attempt = 0; attempt < maxAttemptRate; attempt++) { in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection()
1984 for (int attempt = 0; attempt < maxAttemptRate; attempt++) { in connectionAttemptNotRateLimitedWhenScreenOffAfterWifiToggle()
1998 for (int attempt = 0; attempt < maxAttemptRate; attempt++) { in connectionAttemptNotRateLimitedWhenScreenOffAfterWifiToggle()
/packages/modules/DnsResolver/
Dres_send.cpp578 for (int attempt = 0; attempt < retryTimes; ++attempt) { in res_nsend() local
590 const bool shouldRecordStats = (attempt == 0); in res_nsend()
599 attempt = retryTimes; in res_nsend()
616 retry_count_for_event = attempt; in res_nsend()
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dclassic_acl_connection.h52 …virtual bool SniffMode(uint16_t max_interval, uint16_t min_interval, uint16_t attempt, uint16_t ti…
/packages/modules/Bluetooth/system/rust/src/
Dconnection.rs191 let Some((attempt, guard)) = attempt_and_guard else { in direct_connection()
196 let ret = attempt.await; in direct_connection()

123