Home | History | Annotate | Download | only in cts

Lines Matching defs:connection

60         final BaseInputConnection connection = createBaseInputConnection();
62 assertFalse(connection.beginBatchEdit());
63 assertFalse(connection.endBatchEdit());
68 assertFalse(connection.commitCompletion(new CompletionInfo(completionId,
71 assertNull(connection.getExtractedText(new ExtractedTextRequest(), 0));
77 assertTrue(connection.performEditorAction(actionCode));
78 assertFalse(connection.performContextMenuAction(actionId));
79 assertFalse(connection.performPrivateCommand(action, new Bundle()));
112 final BaseInputConnection connection = createBaseInputConnection();
115 final Editable text = connection.getEditable();
122 connection.commitText(inputText, inputText.length());
123 final Editable text2 = connection.getEditable();
128 connection.getCursorCapsMode(TextUtils.CAP_MODE_WORDS));
131 assertEquals(expected.toString(), connection.getTextBeforeCursor(offLength,
133 connection.setSelection(0, 0);
135 assertEquals(expected.toString(), connection.getTextAfterCursor(offLength,
140 connection.setSelection(end, end);
142 assertTrue(connection.deleteSurroundingText(1, 2));
143 Editable text3 = connection.getEditable();
157 final BaseInputConnection connection = createBaseInputConnection();
160 connection.commitText(inputText, inputText.length());
161 final Editable text = connection.getEditable();
166 connection.finishComposingText();
178 final BaseInputConnection connection = createBaseInputConnection();
179 connection.reportFullscreenMode(false);
181 connection.reportFullscreenMode(true);
419 final BaseInputConnection connection = createBaseInputConnection();
422 connection.commitText(source, source.length());
423 connection.setComposingRegion(2, 5);
424 final Editable text = connection.getEditable();
429 connection.closeConnection();
436 final BaseInputConnection connection = createBaseInputConnection();
439 assertNull(connection.getHandler());
444 final BaseInputConnection connection = createBaseInputConnection();
451 assertFalse(connection.commitContent(inputContentInfo, 0 /* flags */, null /* opts */));
456 final BaseInputConnection connection = createBaseInputConnection();
457 Editable editable = connection.getEditable();
463 connection.getSelectedText(0);