Home
last modified time | relevance | path

Searched refs:mResponse (Results 1 – 14 of 14) sorted by relevance

/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/grpc/impl/
DGetDeviceCheckInStatusGrpcResponseWrapper.java48 private final GetDeviceCheckinStatusResponse mResponse; field in GetDeviceCheckInStatusGrpcResponseWrapper
54 mResponse = null; in GetDeviceCheckInStatusGrpcResponseWrapper()
61 mResponse = response; in GetDeviceCheckInStatusGrpcResponseWrapper()
68 if (mResponse != null) { in getDeviceCheckInStatus()
69 switch (mResponse.getClientCheckinStatus()) { in getDeviceCheckInStatus()
87 return mResponse != null ? mResponse.getRegisteredDeviceIdentifier() : null; in getRegisteredDeviceIdentifier()
93 if (mResponse == null || !mNextStep.isNextCheckInInformationAvailable()) { in getNextCheckInTime()
103 if (mResponse == null || !mNextStep.isDeviceProvisioningInformationAvailable()) { in getProvisioningConfig()
122 if (mResponse == null || !mNextStep.isDeviceProvisioningInformationAvailable()) { in getProvisioningType()
140 if (mResponse == null || !mNextStep.isDeviceProvisioningInformationAvailable()) { in isProvisioningMandatory()
[all …]
DReportDeviceProvisionStateGrpcResponseWrapper.java34 private final ReportDeviceProvisionStateResponse mResponse; field in ReportDeviceProvisionStateGrpcResponseWrapper
38 mResponse = null; in ReportDeviceProvisionStateGrpcResponseWrapper()
44 mResponse = response; in ReportDeviceProvisionStateGrpcResponseWrapper()
57 if (mResponse == null) { in getNextClientProvisionState()
60 switch (mResponse.getNextClientProvisionState()) { in getNextClientProvisionState()
75 "Unexpected Provision State: " + mResponse.getNextClientProvisionState()); in getNextClientProvisionState()
87 if (mResponse == null) throw new IllegalStateException("Response is not available!"); in getDaysLeftUntilReset()
88 return mResponse.getDaysLeftUntilReset(); in getDaysLeftUntilReset()
DIsDeviceInApprovedCountryGrpcResponseWrapper.java28 private IsDeviceInApprovedCountryResponse mResponse; field in IsDeviceInApprovedCountryGrpcResponseWrapper
37 mResponse = response; in IsDeviceInApprovedCountryGrpcResponseWrapper()
47 if (mResponse == null) { in isDeviceInApprovedCountry()
50 return mResponse.getIsDeviceInApprovedCountry(); in isDeviceInApprovedCountry()
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/provision/worker/
DReportDeviceProvisionStateWorkerTest.java88 private ReportDeviceProvisionStateGrpcResponse mResponse; field in ReportDeviceProvisionStateWorkerTest
106 mResponse); in setUp()
136 when(mResponse.hasRecoverableError()).thenReturn(true); in doWork_responseHasRecoverableError_returnRetryAndNotLogged()
145 when(mResponse.hasFatalError()).thenReturn(true); in doWork_responseHasFatalError_returnFailureAndNotLogged()
155 when(mResponse.isSuccessful()).thenReturn(true); in doWork_responseIsSuccessful_globalParametersSetAndEventLogged()
156 when(mResponse.getNextClientProvisionState()).thenReturn(PROVISION_STATE_RETRY); in doWork_responseIsSuccessful_globalParametersSetAndEventLogged()
157 when(mResponse.getDaysLeftUntilReset()).thenReturn(TEST_DAYS_LEFT_UNTIL_RESET); in doWork_responseIsSuccessful_globalParametersSetAndEventLogged()
173 when(mResponse.isSuccessful()).thenReturn(true); in doWork_mandatory_doesNotSendNotificationOrScheduleAlarm()
174 when(mResponse.getNextClientProvisionState()).thenReturn(PROVISION_STATE_DISMISSIBLE_UI); in doWork_mandatory_doesNotSendNotificationOrScheduleAlarm()
175 when(mResponse.getDaysLeftUntilReset()).thenReturn(TEST_DAYS_LEFT_UNTIL_RESET); in doWork_mandatory_doesNotSendNotificationOrScheduleAlarm()
[all …]
DIsDeviceInApprovedCountryWorkerTest.java62 private IsDeviceInApprovedCountryGrpcResponse mResponse; field in IsDeviceInApprovedCountryWorkerTest
69 when(mClient.isDeviceInApprovedCountry(any())).thenReturn(mResponse); in setUp()
93 when(mResponse.isSuccessful()).thenReturn(true); in doWork_responseIsSuccessful_isInApprovedCountry_correctResultAndLog()
94 when(mResponse.isDeviceInApprovedCountry()).thenReturn(true); in doWork_responseIsSuccessful_isInApprovedCountry_correctResultAndLog()
108 when(mResponse.isSuccessful()).thenReturn(true); in doWork_responseIsSuccessful_isNotInApprovedCountry_correctResultAndLog()
109 when(mResponse.isDeviceInApprovedCountry()).thenReturn(false); in doWork_responseIsSuccessful_isNotInApprovedCountry_correctResultAndLog()
123 when(mResponse.isSuccessful()).thenReturn(false); in doWork_responseIsNotSuccessful_failureResultAndLog()
124 when(mResponse.isDeviceInApprovedCountry()).thenReturn(false); in doWork_responseIsNotSuccessful_failureResultAndLog()
DDeviceCheckInWorkerTest.java81 private GetDeviceCheckInStatusGrpcResponse mResponse; field in DeviceCheckInWorkerTest
94 eq(TEST_DEVICE_IDS), anyString(), any())).thenReturn(mResponse); in setUp()
265 when(mResponse.hasRecoverableError()).thenReturn(false); in setUpSuccessfulCheckInResponse()
266 when(mResponse.isSuccessful()).thenReturn(true); in setUpSuccessfulCheckInResponse()
267 when(mHelper.handleGetDeviceCheckInStatusResponse(eq(mResponse), any(), any())) in setUpSuccessfulCheckInResponse()
272 when(mResponse.hasRecoverableError()).thenReturn(isRecoverable); in setUpFailedCheckInResponse()
273 when(mResponse.isSuccessful()).thenReturn(false); in setUpFailedCheckInResponse()
DPauseProvisioningWorkerTest.java61 private PauseDeviceProvisioningGrpcResponse mResponse; field in PauseProvisioningWorkerTest
69 when(mClient.pauseDeviceProvisioning(anyInt())).thenReturn(mResponse); in setUp()
93 when(mResponse.isSuccessful()).thenReturn(true); in doWork_responseIsSuccessful_resultSuccessAndLogged()
102 when(mResponse.isSuccessful()).thenReturn(false); in doWork_responseIsNotSuccessful_resultFailure()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/http/
DFakeURLStreamHandler.java86 private final FakeResponse mResponse; field in FakeURLStreamHandler.FakeHttpsURLConnection
91 mResponse = response; in FakeHttpsURLConnection()
96 if (mResponse.hasException() && mResponse.responseBody().length == 0) { in getInputStream()
99 return new ByteArrayInputStream(mResponse.responseBody()); in getInputStream()
118 if (mResponse.hasException() && mResponse.responseCode() == 0) { in getResponseCode()
121 return mResponse.responseCode(); in getResponseCode()
134 return "Location: " + mResponse.responseLocation(); in getHeaderField()
136 return mResponse.contentType(); in getHeaderField()
138 return mResponse.retryAfter(); in getHeaderField()
141 return mResponse.contentEncoding(); in getHeaderField()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/
DAuthenticatorTest.java45 @Mock AccountAuthenticatorResponse mResponse; field in AuthenticatorTest
59 () -> mAuthenticator.editProperties(mResponse, null)); in editProperties_throwsUnsupportedOperationException()
66 () -> mAuthenticator.addAccount(mResponse, null, null, null, null)); in addAccount_throwsUnsupportedOperationException()
71 assertThat(mAuthenticator.confirmCredentials(mResponse, mAccount, null)).isNull(); in confirmCredentials_returnsNull()
78 () -> mAuthenticator.getAuthToken(mResponse, mAccount, null, null)); in getAuthToken_throwsUnsupportedOperationException()
88 assertThat(mAuthenticator.updateCredentials(mResponse, mAccount, null, null)).isNull(); in updateCredentials_returnsNull()
93 Bundle result = mAuthenticator.hasFeatures(mResponse, mAccount, null); in hasFeatures_notSupported()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/
DRequestGetFolderListing.java32 private FolderListing mResponse = null; field in RequestGetFolderListing
61 mResponse = new FolderListing(stream); in readResponse()
65 if (mResponse == null) { in getList()
69 return mResponse.getList(); in getList()
DRequestGetMessagesListing.java33 private MessagesListing mResponse = null; field in RequestGetMessagesListing
121 mResponse = new MessagesListing(stream); in readResponse()
139 if (mResponse == null) { in getList()
143 return mResponse.getList(); in getList()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/
DBluetoothPbapRequestPullPhoneBook.java35 private BluetoothPbapVcardList mResponse; field in BluetoothPbapRequestPullPhoneBook
100 mResponse = new BluetoothPbapVcardList(mAccount, stream, mFormat); in readResponse()
101 Log.d(TAG, "Read " + mResponse.getCount() + " entries"); in readResponse()
116 return mResponse.getList(); in getList()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactDirectoryManagerTest.java83 private MatrixCursor mResponse; field in ContactDirectoryManagerTest.MockContactDirectoryProvider
91 mResponse = new MatrixCursor( in createResponseCursor()
97 return mResponse; in createResponseCursor()
106 mResponse.moveToPosition(-1); in query()
107 return mResponse; in query()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DTestUtils.java1370 private final AtomicReference<T> mResponse = new AtomicReference<>(); field in TestReceiver
1375 return mResponse.get(); in getResponse()
1387 mResponse.set(result); in onResult()