/cts/tests/translation/src/android/translation/cts/unittests/ |
D | ViewTranslationRequestTest.java | 45 final ViewTranslationRequest request = in testBuilderVirtualAutofillId_validSetText() local 50 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(mAutofillId, 12345L, 0)); in testBuilderVirtualAutofillId_validSetText() 51 assertThat(request.getKeys().size()).isEqualTo(1); in testBuilderVirtualAutofillId_validSetText() 52 assertThat(request.getKeys()).containsExactly("sample id"); in testBuilderVirtualAutofillId_validSetText() 53 assertThat(request.getValue("sample id").getText()).isEqualTo("sample text"); in testBuilderVirtualAutofillId_validSetText() 58 final ViewTranslationRequest request = new ViewTranslationRequest.Builder(mAutofillId) in testBuilder_validSetText() local 63 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_validSetText() 64 assertThat(request.getKeys().size()).isEqualTo(1); in testBuilder_validSetText() 65 assertThat(request.getKeys()).containsExactly("sample id"); in testBuilder_validSetText() 66 assertThat(request.getValue("sample id").getText()).isEqualTo("sample text"); in testBuilder_validSetText() [all …]
|
D | ViewTranslationResponseTest.java | 46 final ViewTranslationResponse request = new ViewTranslationResponse.Builder(mAutofillId) in testBuilder_validAddText() local 53 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_validAddText() 54 assertThat(request.getKeys().size()).isEqualTo(1); in testBuilder_validAddText() 55 assertThat(request.getValue("sample id").getText()).isEqualTo("sample text"); in testBuilder_validAddText() 60 final ViewTranslationResponse request = new ViewTranslationResponse.Builder(mAutofillId) in testBuilder_validAddError() local 64 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_validAddError() 65 assertThat(request.getKeys().size()).isEqualTo(1); in testBuilder_validAddError() 66 assertThat(request.getValue("sample id").getStatusCode()) in testBuilder_validAddError() 72 final ViewTranslationResponse request = new ViewTranslationResponse.Builder(mAutofillId) in testGetValue_invalidId() local 79 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testGetValue_invalidId() [all …]
|
D | TranslationRequestTest.java | 48 final TranslationRequest request = new TranslationRequest.Builder() in testBuilder_validViewTranslationRequest() local 52 assertThat(request.getTranslationRequestValues().size()).isEqualTo(0); in testBuilder_validViewTranslationRequest() 53 assertThat(request.getViewTranslationRequests().size()).isEqualTo(1); in testBuilder_validViewTranslationRequest() 56 request.getViewTranslationRequests().get(0); in testBuilder_validViewTranslationRequest() 67 final TranslationRequest request = new TranslationRequest.Builder() in testBuilder_validTranslationRequestValue() local 71 assertThat(request.getTranslationRequestValues().size()).isEqualTo(1); in testBuilder_validTranslationRequestValue() 72 assertThat(request.getViewTranslationRequests().size()).isEqualTo(0); in testBuilder_validTranslationRequestValue() 75 request.getTranslationRequestValues().get(0); in testBuilder_validTranslationRequestValue() 81 final TranslationRequest request = new TranslationRequest.Builder() in testBuilder_validFlags() local 85 assertThat(request.getFlags()).isEqualTo(TranslationRequest.FLAG_PARTIAL_RESPONSES); in testBuilder_validFlags() [all …]
|
/cts/tests/tests/selinux/common/jni/ |
D | android_security_SELinuxTargetSdkTest.cpp | 51 } request; in checkNetlinkRouteGetlink() local 52 memset(&request, 0, sizeof(request)); in checkNetlinkRouteGetlink() 53 request.hdr.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST; in checkNetlinkRouteGetlink() 54 request.hdr.nlmsg_type = RTM_GETLINK; in checkNetlinkRouteGetlink() 55 request.hdr.nlmsg_len = sizeof(request); in checkNetlinkRouteGetlink() 56 request.msg.rtgen_family = AF_UNSPEC; in checkNetlinkRouteGetlink() 58 int ret = send(sock, &request, sizeof(request), 0); in checkNetlinkRouteGetlink() 86 } request; in checkNetlinkRouteGetneigh() local 87 memset(&request, 0, sizeof(request)); in checkNetlinkRouteGetneigh() 88 request.hdr.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST; in checkNetlinkRouteGetneigh() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | AugmentedHelper.java | 56 public static String getActivityName(@Nullable FillRequest request) { in getActivityName() argument 57 if (request == null) return "N/A (null request)"; in getActivityName() 59 final ComponentName componentName = request.getActivityComponent(); in getActivityName() 92 public static void assertBasicRequestInfo(@NonNull AugmentedFillRequest request, in assertBasicRequestInfo() argument 96 assertBasicRequestInfo(request, activity, expectedFocusedId, expectedFocusedValue, in assertBasicRequestInfo() 100 public static void assertBasicRequestInfo(@NonNull AugmentedFillRequest request, in assertBasicRequestInfo() argument 105 assertWithMessage("no AugmentedFillRequest").that(request).isNotNull(); in assertBasicRequestInfo() 106 assertWithMessage("no FillRequest on %s", request).that(request.request).isNotNull(); in assertBasicRequestInfo() 107 assertWithMessage("no FillController on %s", request).that(request.controller).isNotNull(); in assertBasicRequestInfo() 108 assertWithMessage("no FillCallback on %s", request).that(request.callback).isNotNull(); in assertBasicRequestInfo() [all …]
|
/cts/tests/location/location_none/src/android/location/cts/none/ |
D | LocationRequestTest.java | 38 LocationRequest request = new LocationRequest.Builder(0).build(); in testBuild_Defaults() local 39 assertThat(request.getIntervalMillis()).isEqualTo(0); in testBuild_Defaults() 40 assertThat(request.getQuality()).isEqualTo(LocationRequest.QUALITY_BALANCED_POWER_ACCURACY); in testBuild_Defaults() 41 assertThat(request.getMinUpdateIntervalMillis()).isEqualTo(0); in testBuild_Defaults() 42 assertThat(request.getDurationMillis()).isEqualTo(Long.MAX_VALUE); in testBuild_Defaults() 43 assertThat(request.getMaxUpdates()).isEqualTo(Integer.MAX_VALUE); in testBuild_Defaults() 44 assertThat(request.getMinUpdateDistanceMeters()).isEqualTo(0f); in testBuild_Defaults() 45 assertThat(request.isHiddenFromAppOps()).isEqualTo(false); in testBuild_Defaults() 46 assertThat(request.isAdasGnssBypass()).isEqualTo(false); in testBuild_Defaults() 47 assertThat(request.isLocationSettingsIgnored()).isEqualTo(false); in testBuild_Defaults() [all …]
|
D | LastLocationRequestTest.java | 34 LastLocationRequest request = new LastLocationRequest.Builder().build(); in testBuild_Defaults() local 35 assertThat(request.isHiddenFromAppOps()).isEqualTo(false); in testBuild_Defaults() 36 assertThat(request.isAdasGnssBypass()).isEqualTo(false); in testBuild_Defaults() 37 assertThat(request.isLocationSettingsIgnored()).isEqualTo(false); in testBuild_Defaults() 42 LastLocationRequest request = new LastLocationRequest.Builder() in testBuild_Explicit() local 47 assertThat(request.isHiddenFromAppOps()).isEqualTo(true); in testBuild_Explicit() 48 assertThat(request.isAdasGnssBypass()).isEqualTo(true); in testBuild_Explicit() 49 assertThat(request.isLocationSettingsIgnored()).isEqualTo(true); in testBuild_Explicit() 68 LastLocationRequest request = new LastLocationRequest.Builder().build(); in testDescribeContents() local 69 assertThat(request.describeContents()).isEqualTo(0); in testDescribeContents() [all …]
|
/cts/libs/deviceutillegacy/src/com/android/compatibility/common/util/ |
D | SynchronousPixelCopy.java | 46 public int request(Surface source, Bitmap dest) { in request() method in SynchronousPixelCopy 49 PixelCopy.request(source, dest, this, sHandler); in request() 54 public int request(Surface source, Rect srcRect, Bitmap dest) { in request() method in SynchronousPixelCopy 57 PixelCopy.request(source, srcRect, dest, this, sHandler); in request() 62 public int request(SurfaceView source, Bitmap dest) { in request() method in SynchronousPixelCopy 65 PixelCopy.request(source, dest, this, sHandler); in request() 70 public int request(SurfaceView source, Rect srcRect, Bitmap dest) { in request() method in SynchronousPixelCopy 73 PixelCopy.request(source, srcRect, dest, this, sHandler); in request() 78 public int request(Window source, Bitmap dest) { in request() method in SynchronousPixelCopy 81 PixelCopy.request(source, dest, this, sHandler); in request() [all …]
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/ |
D | DataRemovalRequestTest.java | 79 final DataRemovalRequest request = new DataRemovalRequest.Builder().forEverything() in testBuild_validForEverything_directly() local 81 assertForEverything(request); in testBuild_validForEverything_directly() 86 final DataRemovalRequest request = new DataRemovalRequest.Builder().forEverything() in testBuild_validForEverything_parcel() local 88 final DataRemovalRequest clone = cloneThroughParcel(request); in testBuild_validForEverything_parcel() 92 private void assertForEverything(final DataRemovalRequest request) { in assertForEverything() argument 93 assertThat(request).isNotNull(); in assertForEverything() 94 assertThat(request.isForEverything()).isTrue(); in assertForEverything() 95 assertThat(request.getLocusIdRequests()).isNull(); in assertForEverything() 100 final DataRemovalRequest request = buildForIds(); in testBuild_validForIds_directly() local 101 assertForIds(request); in testBuild_validForIds_directly() [all …]
|
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/ |
D | PutDocumentsRequestCtsTest.java | 42 PutDocumentsRequest request = in addGenericDocument_byCollection() local 45 assertThat(request.getGenericDocuments().get(0).getId()).isEqualTo("test1"); in addGenericDocument_byCollection() 46 assertThat(request.getGenericDocuments().get(1).getId()).isEqualTo("test2"); in addGenericDocument_byCollection() 89 PutDocumentsRequest request = in addTakenActionGenericDocuments() local 102 assertThat(request.getGenericDocuments()).isEmpty(); in addTakenActionGenericDocuments() 105 assertThat(request.getTakenActionGenericDocuments()).hasSize(7); in addTakenActionGenericDocuments() 106 assertThat(request.getTakenActionGenericDocuments().get(0).getId()).isEqualTo("search1"); in addTakenActionGenericDocuments() 107 assertThat(request.getTakenActionGenericDocuments().get(1).getId()).isEqualTo("click1"); in addTakenActionGenericDocuments() 108 assertThat(request.getTakenActionGenericDocuments().get(2).getId()).isEqualTo("click2"); in addTakenActionGenericDocuments() 109 assertThat(request.getTakenActionGenericDocuments().get(3).getId()).isEqualTo("search2"); in addTakenActionGenericDocuments() [all …]
|
D | ReportSystemUsageRequestCtsTest.java | 28 ReportSystemUsageRequest request = in testGettersAndSetters() local 32 assertThat(request.getPackageName()).isEqualTo("package1"); in testGettersAndSetters() 33 assertThat(request.getDatabaseName()).isEqualTo("database1"); in testGettersAndSetters() 34 assertThat(request.getNamespace()).isEqualTo("namespace1"); in testGettersAndSetters() 35 assertThat(request.getDocumentId()).isEqualTo("id1"); in testGettersAndSetters() 36 assertThat(request.getUsageTimestampMillis()).isEqualTo(32); in testGettersAndSetters() 42 ReportSystemUsageRequest request = in testUsageTimestampDefault() local 45 assertThat(request.getUsageTimestampMillis()).isAtLeast(startTs); in testUsageTimestampDefault()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CtsRemoteConnectionService.java | 95 ConnectionRequest request) { in onCreateOutgoingConnection() argument 97 sConnectionRequest = request; in onCreateOutgoingConnection() 100 connectionManagerPhoneAccount, request); in onCreateOutgoingConnection() 103 connectionManagerPhoneAccount, request); in onCreateOutgoingConnection() 110 ConnectionRequest request) { in onCreateIncomingConnection() argument 112 sConnectionRequest = request; in onCreateIncomingConnection() 115 connectionManagerPhoneAccount, request); in onCreateIncomingConnection() 118 connectionManagerPhoneAccount, request); in onCreateIncomingConnection() 125 ConnectionRequest request) { in onCreateOutgoingConference() argument 127 sConnectionRequest = request; in onCreateOutgoingConference() [all …]
|
D | CtsSelfManagedConnectionService.java | 90 final ConnectionRequest request) { in onCreateOutgoingConnection() argument 92 return createSelfManagedConnection(request, false); in onCreateOutgoingConnection() 97 ConnectionRequest request) { in onCreateIncomingConnection() argument 98 return createSelfManagedConnection(request, true); in onCreateIncomingConnection() 103 ConnectionRequest request) { in onCreateIncomingConnectionFailed() argument 109 ConnectionRequest request) { in onCreateOutgoingConnectionFailed() argument 115 ConnectionRequest request) { in onCreateIncomingHandoverConnection() argument 116 mOnCreateIncomingHandoverConnectionCounter.invoke(fromPhoneAccountHandle, request); in onCreateIncomingHandoverConnection() 117 return createSelfManagedConnection(request, true /* incoming */); in onCreateIncomingHandoverConnection() 122 ConnectionRequest request) { in onCreateOutgoingHandoverConnection() argument [all …]
|
D | MockConnectionService.java | 82 ConnectionRequest request) { in onCreateOutgoingConnection() argument 84 connection.setAddress(request.getAddress(), CONNECTION_PRESENTATION); in onCreateOutgoingConnection() 95 connection.setVideoState(request.getVideoState()); in onCreateOutgoingConnection() 97 if (request.isRequestingRtt()) { in onCreateOutgoingConnection() 98 connection.setRttTextStream(request.getRttTextStream()); in onCreateOutgoingConnection() 103 if (request.getExtras() != null) { in onCreateOutgoingConnection() 104 testExtra = request.getExtras(); in onCreateOutgoingConnection() 119 ConnectionRequest request) { in onCreateIncomingConnection() argument 121 connection.setAddress(request.getAddress(), CONNECTION_PRESENTATION); in onCreateIncomingConnection() 127 ((Connection) connection).setVideoState(request.getVideoState()); in onCreateIncomingConnection() [all …]
|
D | CtsConnectionService.java | 88 ConnectionRequest request) { in onCreateOutgoingConnection() argument 91 return testImpl.onCreateOutgoingConnection(connectionManagerPhoneAccount, request); in onCreateOutgoingConnection() 101 ConnectionRequest request) { in onCreateIncomingConnection() argument 104 return testImpl.onCreateIncomingConnection(connectionManagerPhoneAccount, request); in onCreateIncomingConnection() 114 ConnectionRequest request) { in onCreateIncomingConnectionFailed() argument 117 testImpl.onCreateIncomingConnectionFailed(connectionManagerPhoneAccount, request); in onCreateIncomingConnectionFailed() 126 ConnectionRequest request) { in onCreateOutgoingConference() argument 129 return testImpl.onCreateOutgoingConference(connectionManagerPhoneAccount, request); in onCreateOutgoingConference() 139 ConnectionRequest request) { in onCreateOutgoingConferenceFailed() argument 142 testImpl.onCreateOutgoingConferenceFailed(connectionManagerPhoneAccount, request); in onCreateOutgoingConferenceFailed() [all …]
|
/cts/tests/tests/telecom-apps/ManagedConnectionService/src/android/telecom/cts/apps/managedapp/ |
D | ManagedConnectionService.java | 49 ConnectionRequest request) { in onCreateOutgoingConnection() argument 51 connectionManagerPhoneAccount, request)); in onCreateOutgoingConnection() 52 return createConnection(request, true); in onCreateOutgoingConnection() 57 ConnectionRequest request) { in onCreateOutgoingConnectionFailed() argument 59 connectionManagerPhoneAccount, request)); in onCreateOutgoingConnectionFailed() 60 super.onCreateOutgoingConnectionFailed(connectionManagerPhoneAccount, request); in onCreateOutgoingConnectionFailed() 65 ConnectionRequest request) { in onCreateIncomingConnection() argument 67 connectionManagerPhoneAccount, request)); in onCreateIncomingConnection() 68 return createConnection(request, false); in onCreateIncomingConnection() 73 ConnectionRequest request) { in onCreateIncomingConnectionFailed() argument [all …]
|
/cts/tests/tests/telecom-apps/ConnectionServiceVoipAppMain/src/android/telecom/cts/apps/connectionservicevoipappmain/ |
D | VoipConnectionServiceMain.java | 49 ConnectionRequest request) { in onCreateOutgoingConnection() argument 51 connectionManagerPhoneAccount, request)); in onCreateOutgoingConnection() 52 return createConnection(request, true); in onCreateOutgoingConnection() 57 ConnectionRequest request) { in onCreateOutgoingConnectionFailed() argument 59 connectionManagerPhoneAccount, request)); in onCreateOutgoingConnectionFailed() 60 super.onCreateOutgoingConnectionFailed(connectionManagerPhoneAccount, request); in onCreateOutgoingConnectionFailed() 65 ConnectionRequest request) { in onCreateIncomingConnection() argument 67 connectionManagerPhoneAccount, request)); in onCreateIncomingConnection() 68 return createConnection(request, false); in onCreateIncomingConnection() 73 ConnectionRequest request) { in onCreateIncomingConnectionFailed() argument [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | ExtractedTextRequestTest.java | 52 final ExtractedTextRequest request = new ExtractedTextRequest(); in createForTest() local 53 request.flags = EXPECTED_FLAGS; in createForTest() 54 request.hintMaxChars = EXPECTED_HINT_MAX_CHARS; in createForTest() 55 request.hintMaxLines = EXPECTED_HINT_MAX_LINES; in createForTest() 56 request.token = EXPECTED_TOKEN; in createForTest() 57 return request; in createForTest() 66 static void assertTestInstance(@Nullable ExtractedTextRequest request) { in assertTestInstance() argument 67 assertNotNull(request); in assertTestInstance() 69 assertEquals(EXPECTED_FLAGS, request.flags); in assertTestInstance() 70 assertEquals(EXPECTED_HINT_MAX_CHARS, request.hintMaxChars); in assertTestInstance() [all …]
|
D | InlineSuggestionsRequestTest.java | 84 InlineSuggestionsRequest request = in testInlineSuggestionsRequestValuesWithDefaults() local 91 assertThat(request.getMaxSuggestionCount()).isEqualTo(suggestionCount); in testInlineSuggestionsRequestValuesWithDefaults() 92 assertThat(request.getInlinePresentationSpecs()).isNotNull(); in testInlineSuggestionsRequestValuesWithDefaults() 93 assertThat(request.getInlinePresentationSpecs().size()).isEqualTo(1); in testInlineSuggestionsRequestValuesWithDefaults() 94 assertThat(request.getInlinePresentationSpecs().get(0).getStyle()).isEqualTo(Bundle.EMPTY); in testInlineSuggestionsRequestValuesWithDefaults() 95 assertThat(request.getExtras()).isEqualTo(Bundle.EMPTY); in testInlineSuggestionsRequestValuesWithDefaults() 96 assertThat(request.getSupportedLocales()).isEqualTo(LocaleList.getEmptyLocaleList()); in testInlineSuggestionsRequestValuesWithDefaults() 100 request.writeToParcel(p, 0); in testInlineSuggestionsRequestValuesWithDefaults() 107 assertThat(targetRequest).isEqualTo(request); in testInlineSuggestionsRequestValuesWithDefaults() 121 final InlineSuggestionsRequest request = in testInlineSuggestionsRequestValues() local [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/ |
D | MbmsDownloadCallbackTest.java | 42 public void onStatusUpdated(DownloadRequest request, FileInfo fileInfo, in onStatusUpdated() argument 45 args.arg1 = request; in onStatusUpdated() 64 public void onProgressUpdated(DownloadRequest request, FileInfo fileInfo, int in onProgressUpdated() argument 68 args.arg1 = request; in onProgressUpdated() 91 DownloadRequest request = downloadRequestTemplate.build(); in testFullCallback() local 92 mDownloadSession.addStatusListener(request, mCallbackExecutor, statusCallback); in testFullCallback() 93 mDownloadSession.addProgressListener(request, mCallbackExecutor, progressCallback); in testFullCallback() 94 mMiddlewareControl.fireOnProgressUpdated(request, CtsDownloadService.FILE_INFO_1, in testFullCallback() 97 assertEquals(request, progressArgs.arg1); in testFullCallback() 104 mMiddlewareControl.fireOnStateUpdated(request, CtsDownloadService.FILE_INFO_1, sampleInt); in testFullCallback() [all …]
|
/cts/tests/devicestate/src/android/hardware/devicestate/cts/ |
D | DeviceStateManagerTestBase.java | 69 protected final void runWithRequestActive(@NonNull DeviceStateRequest request, in runWithRequestActive() argument 73 final RequestAwareThread thread = new RequestAwareThread(request, runnable); in runWithRequestActive() 76 new DeviceStateRequestSession(mDeviceStateManager, request, in runWithRequestActive() argument 113 private RequestAwareThread(@NonNull DeviceStateRequest request, in RequestAwareThread() argument 115 mRequest = request; in RequestAwareThread() 150 public void onRequestActivated(@NonNull DeviceStateRequest request) { in onRequestActivated() argument 151 if (!request.equals(mRequest)) { in onRequestActivated() 159 public void onRequestSuspended(@NonNull DeviceStateRequest request) { in onRequestSuspended() argument 160 if (!request.equals(mRequest)) { in onRequestSuspended() 171 public void onRequestCanceled(@NonNull DeviceStateRequest request) { in onRequestCanceled() argument [all …]
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DrmInfoRequestTest.java | 72 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, DEFAULT_MIME); in testPutAndGetKeys() local 76 request.put(key, attributes.get(key)); in testPutAndGetKeys() 80 Iterator<String> infoKeys = request.keyIterator(); in testPutAndGetKeys() 83 assertEquals(request.get(key), attributes.get(key)); in testPutAndGetKeys() 89 assertEquals(request.get(key), attributes.get(key)); in testPutAndGetKeys() 93 Iterator<Object> iterator = request.iterator(); in testPutAndGetKeys() 103 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, mimeType); in checkInvalidMimeType() local 111 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, mimeType); in checkGetMimeType() local 112 assertEquals(request.getMimeType(), mimeType); in checkGetMimeType() 116 DrmInfoRequest request = new DrmInfoRequest(type, DEFAULT_MIME); in checkGetInfoType() local [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/ |
D | CtsConnectionService.java | 110 final ConnectionRequest request) { in onCreateOutgoingConnection() argument 112 return createManagedConnection(request, false); in onCreateOutgoingConnection() 117 ConnectionRequest request) { in onCreateIncomingConnection() argument 119 return createManagedConnection(request, true); in onCreateIncomingConnection() 124 ConnectionRequest request) { in onCreateIncomingConnectionFailed() argument 129 ConnectionRequest request) { in onCreateOutgoingConnectionFailed() argument 132 private Connection createManagedConnection(ConnectionRequest request, boolean isIncoming) { in createManagedConnection() argument 133 boolean isSelfManaged = request.getAccountHandle().equals( in createManagedConnection() 137 request.getExtras().getBoolean(CtsConnection.EXTRA_PLAY_CS_AUDIO, false); in createManagedConnection() 146 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); in createManagedConnection() [all …]
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | ConversationActionsTest.java | 87 ConversationActions.Request request = in testRequest_minimal() local 93 parcelizeDeparcelize(request, ConversationActions.Request.CREATOR); in testRequest_minimal() 95 assertMinimalRequest(request); in testRequest_minimal() 109 ConversationActions.Request request = in testRequest_full() local 120 parcelizeDeparcelize(request, ConversationActions.Request.CREATOR); in testRequest_full() 122 assertFullRequest(request); in testRequest_full() 175 private static void assertMinimalRequest(ConversationActions.Request request) { in assertMinimalRequest() argument 176 assertThat(request.getConversation()).hasSize(1); in assertMinimalRequest() 177 assertThat(request.getConversation().get(0).getText().toString()).isEqualTo(TEXT); in assertMinimalRequest() 178 assertThat(request.getConversation().get(0).getAuthor()).isEqualTo(PERSON); in assertMinimalRequest() [all …]
|
/cts/tests/appsearch/src/com/android/cts/appsearch/functions/ |
D | AppFunctionManagerCtsTest.java | 111 ExecuteAppFunctionRequest request = in executeAppFunction_failed_noSuchMethod() local 114 AppSearchResult<ExecuteAppFunctionResponse> response = executeAppFunctionAndWait(request); in executeAppFunction_failed_noSuchMethod() 129 ExecuteAppFunctionRequest request = in executeAppFunction_onlyInvokeCallbackOnce() local 137 request, mContext.getMainExecutor(), blockingQueue::add); in executeAppFunction_onlyInvokeCallbackOnce() 159 ExecuteAppFunctionRequest request = in executeAppFunction_success() local 164 AppSearchResult<ExecuteAppFunctionResponse> response = executeAppFunctionAndWait(request); in executeAppFunction_success() 176 ExecuteAppFunctionRequest request = in executeAppFunction_otherNonExistingOtherPackage() local 179 AppSearchResult<ExecuteAppFunctionResponse> response = executeAppFunctionAndWait(request); in executeAppFunction_otherNonExistingOtherPackage() 193 ExecuteAppFunctionRequest request = in executeAppFunction_otherExistingTargetPackage() local 196 AppSearchResult<ExecuteAppFunctionResponse> response = executeAppFunctionAndWait(request); in executeAppFunction_otherExistingTargetPackage() [all …]
|