Home
last modified time | relevance | path

Searched refs:content (Results 1 – 25 of 2603) sorted by relevance

12345678910>>...105

/cts/tests/tests/text/src/android/text/method/cts/
DBaseKeyListenerTest.java58 Editable content = Editable.Factory.getInstance().newEditable(TEST_STRING); in verifyBackspace() local
61 prepTextViewSync(content, mockBaseKeyListener, false, 0, 0); in verifyBackspace()
62 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
63 assertEquals("123456", content.toString()); in verifyBackspace()
66 prepTextViewSync(content, mockBaseKeyListener, false, 0, 3); in verifyBackspace()
67 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
68 assertEquals("456", content.toString()); in verifyBackspace()
71 prepTextViewSync(content, mockBaseKeyListener, false, 2, 2); in verifyBackspace()
72 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
73 assertEquals("46", content.toString()); in verifyBackspace()
[all …]
DMetaKeyKeyListenerTest.java56 final Editable content = Editable.Factory.getInstance().newEditable(str); in testPressKey() local
58 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); in testPressKey()
59 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); in testPressKey()
60 numberKeyListener.onKeyDown(view, content, KeyEvent.KEYCODE_0, in testPressKey()
62 assertEquals('0', content.charAt(0)); in testPressKey()
64 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT); in testPressKey()
65 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT); in testPressKey()
66 numberKeyListener.onKeyDown(view, content, KeyEvent.KEYCODE_2, in testPressKey()
68 assertEquals('2', content.charAt(1)); in testPressKey()
70 content.setSpan(Selection.SELECTION_START, 3, 3, Spanned.SPAN_POINT_POINT); in testPressKey()
[all …]
DQwertyKeyListenerTest.java211 final SpannableStringBuilder content = new SpannableStringBuilder("123456"); in testMarkAsReplaced() local
213 Object[] repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced()
216 QwertyKeyListener.markAsReplaced(content, 0, content.length(), "abcd"); in testMarkAsReplaced()
217 repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced()
219 assertEquals(0, content.getSpanStart(repl[0])); in testMarkAsReplaced()
220 assertEquals(content.length(), content.getSpanEnd(repl[0])); in testMarkAsReplaced()
221 assertEquals(Spannable.SPAN_EXCLUSIVE_EXCLUSIVE, content.getSpanFlags(repl[0])); in testMarkAsReplaced()
223 QwertyKeyListener.markAsReplaced(content, 1, 2, "abcd"); in testMarkAsReplaced()
224 repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced()
226 assertEquals(1, content.getSpanStart(repl[0])); in testMarkAsReplaced()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DSlidingDrawerTest.java112 View content = mDrawer.getContent(); in testGetContent() local
113 assertTrue(content instanceof TextView); in testGetContent()
114 assertEquals(R.id.content, content.getId()); in testGetContent()
120 View content = mDrawer.getContent(); in testOpenAndClose() local
122 assertEquals(View.GONE, content.getVisibility()); in testOpenAndClose()
126 assertEquals(View.VISIBLE, content.getVisibility()); in testOpenAndClose()
130 assertEquals(View.GONE, content.getVisibility()); in testOpenAndClose()
135 View content = mDrawer.getContent(); in testAnimateOpenAndClose() local
138 assertEquals(View.GONE, content.getVisibility()); in testAnimateOpenAndClose()
142 assertEquals(View.GONE, content.getVisibility()); in testAnimateOpenAndClose()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DAccountAccessSameCertTest.java17 package android.content.cts;
19 import static com.android.cts.content.Utils.ALWAYS_SYNCABLE_AUTHORITY;
20 import static com.android.cts.content.Utils.SYNC_TIMEOUT_MILLIS;
21 import static com.android.cts.content.Utils.allowSyncAdapterRunInBackgroundAndDataInBackground;
22 import static com.android.cts.content.Utils.disallowSyncAdapterRunInBackgroundAndDataInBackground;
23 import static com.android.cts.content.Utils.hasDataConnection;
24 import static com.android.cts.content.Utils.requestSync;
25 import static com.android.cts.content.Utils.withAccount;
32 import android.content.AbstractThreadedSyncAdapter;
38 import com.android.cts.content.AlwaysSyncableSyncService;
[all …]
DSyncStorageEngineTest.java17 package android.content.cts;
20 import android.content.ComponentName;
21 import android.content.ContentResolver;
22 import android.content.Context;
23 import android.content.ContextWrapper;
24 import android.content.Intent;
25 import android.content.PeriodicSync;
26 import android.content.res.Resources;
27 import android.content.SyncStatusInfo;
38 import com.android.server.content.SyncStorageEngine;
DDeferSyncTest.java17 package android.content.cts;
19 import static com.android.cts.content.Utils.ALWAYS_SYNCABLE_AUTHORITY;
20 import static com.android.cts.content.Utils.NOT_ALWAYS_SYNCABLE_AUTHORITY;
21 import static com.android.cts.content.Utils.SYNC_TIMEOUT_MILLIS;
22 import static com.android.cts.content.Utils.allowSyncAdapterRunInBackgroundAndDataInBackground;
23 import static com.android.cts.content.Utils.disallowSyncAdapterRunInBackgroundAndDataInBackground;
24 import static com.android.cts.content.Utils.hasDataConnection;
25 import static com.android.cts.content.Utils.requestSync;
26 import static com.android.cts.content.Utils.withAccount;
39 import android.content.AbstractThreadedSyncAdapter;
[all …]
DClipboardManagerListenerActivity.java17 package android.content.cts;
20 import android.content.ClipData;
21 import android.content.ClipboardManager;
22 import android.content.Context;
23 import android.content.ClipboardManager.OnPrimaryClipChangedListener;
/cts/tests/tests/content/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/
DCtsSyncAccountAccessOtherCertTestCases.java17 package com.android.cts.content;
19 import static com.android.cts.content.Utils.ALWAYS_SYNCABLE_AUTHORITY;
20 import static com.android.cts.content.Utils.SYNC_TIMEOUT_MILLIS;
21 import static com.android.cts.content.Utils.allowSyncAdapterRunInBackgroundAndDataInBackground;
22 import static com.android.cts.content.Utils.disallowSyncAdapterRunInBackgroundAndDataInBackground;
23 import static com.android.cts.content.Utils.getUiDevice;
24 import static com.android.cts.content.Utils.hasDataConnection;
25 import static com.android.cts.content.Utils.hasNotificationSupport;
26 import static com.android.cts.content.Utils.isWatch;
27 import static com.android.cts.content.Utils.requestSync;
[all …]
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DPackageInstallerTestBase.kt21 import android.content.BroadcastReceiver in <lambda>()
22 import android.content.Context in <lambda>()
23 import android.content.Intent in <lambda>()
24 import android.content.Intent.EXTRA_INTENT in <lambda>()
25 import android.content.Intent.FLAG_ACTIVITY_CLEAR_TASK in <lambda>()
26 import android.content.Intent.FLAG_ACTIVITY_NEW_TASK in <lambda>()
27 import android.content.IntentFilter in <lambda>()
28 import android.content.pm.PackageInstaller in <lambda>()
29 import android.content.pm.PackageInstaller.EXTRA_STATUS in <lambda>()
30 import android.content.pm.PackageInstaller.STATUS_FAILURE_INVALID in <lambda>()
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DServicesInstantAppsCannotAccessTests.java19 import static android.content.Context.DEVICE_POLICY_SERVICE;
20 import static android.content.Context.FINGERPRINT_SERVICE;
21 import static android.content.Context.SHORTCUT_SERVICE;
22 import static android.content.Context.USB_SERVICE;
23 import static android.content.Context.WALLPAPER_SERVICE;
24 import static android.content.Context.WIFI_AWARE_SERVICE;
25 import static android.content.Context.WIFI_P2P_SERVICE;
26 import static android.content.Context.WIFI_SERVICE;
32 import android.content.Context;
/cts/tests/tests/content/src/android/content/pm/cts/
DInstantAppTest.java17 package android.content.pm.cts;
20 import android.content.cts.MockActivity;
22 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_AWARE;
23 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_UNAWARE;
24 import static android.content.pm.PackageManager.MATCH_SYSTEM_ONLY;
26 import android.content.Intent;
27 import android.content.pm.PackageManager;
28 import android.content.pm.ResolveInfo;
DPackageItemInfo_DisplayNameComparatorTest.java17 package android.content.pm.cts;
20 import android.content.ComponentName;
21 import android.content.pm.ActivityInfo;
22 import android.content.pm.PackageItemInfo;
23 import android.content.pm.PackageManager;
24 import android.content.pm.PackageItemInfo.DisplayNameComparator;
25 import android.content.pm.PackageManager.NameNotFoundException;
DInstallSessionParamsUnitTest.java17 package android.content.pm.cts;
19 import static android.content.pm.PackageInfo.INSTALL_LOCATION_AUTO;
20 import static android.content.pm.PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY;
21 import static android.content.pm.PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL;
22 import static android.content.pm.PackageInfo.INSTALL_LOCATION_UNSPECIFIED;
23 import static android.content.pm.PackageInstaller.SessionParams.MODE_FULL_INSTALL;
24 import static android.content.pm.PackageInstaller.SessionParams.MODE_INHERIT_EXISTING;
25 import static android.content.pm.PackageManager.INSTALL_REASON_DEVICE_RESTORE;
26 import static android.content.pm.PackageManager.INSTALL_REASON_DEVICE_SETUP;
27 import static android.content.pm.PackageManager.INSTALL_REASON_POLICY;
[all …]
DFeatureTest.java16 package android.content.pm.cts;
19 import android.content.Context;
20 import android.content.Intent;
21 import android.content.IntentFilter;
22 import android.content.pm.FeatureGroupInfo;
23 import android.content.pm.FeatureInfo;
24 import android.content.pm.PackageInfo;
25 import android.content.pm.PackageManager;
DPackageItemInfoTest.java17 package android.content.pm.cts;
19 import android.content.cts.R;
22 import android.content.ComponentName;
23 import android.content.pm.ActivityInfo;
24 import android.content.pm.PackageItemInfo;
25 import android.content.pm.PackageManager;
26 import android.content.pm.PackageManager.NameNotFoundException;
27 import android.content.res.XmlResourceParser;
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DVintfFilesCollector.java61 for (String content : VintfObject.report()) { in collect()
62 String fileName = guessFileName(content); in collect()
64 writeStringToFile(content, new File(dir, fileName)); in collect()
69 private static void writeStringToFile(String content, File file) throws Exception { in writeStringToFile() argument
70 if (content == null || content.isEmpty()) { in writeStringToFile()
74 os.write(content); in writeStringToFile()
80 private static String guessFileName(String content) throws Exception { in guessFileName() argument
83 parser.setInput(new StringReader(content)); in guessFileName()
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/
DInlineReply.java16 package android.content.pm.cts.shortcutmanager.throttling;
18 import static android.content.pm.cts.shortcutmanager.common.Constants.INLINE_REPLY_REMOTE_INPUT_CAP…
19 import static android.content.pm.cts.shortcutmanager.common.Constants.INLINE_REPLY_TITLE;
27 import android.content.BroadcastReceiver;
28 import android.content.ComponentName;
29 import android.content.Context;
30 import android.content.Intent;
DBgService.java16 package android.content.pm.cts.shortcutmanager.throttling;
21 import android.content.ComponentName;
22 import android.content.Context;
23 import android.content.Intent;
24 import android.content.pm.ShortcutManager;
25 import android.content.pm.cts.shortcutmanager.common.Constants;
26 import android.content.pm.cts.shortcutmanager.common.ReplyUtil;
/cts/tests/tests/syncmanager/apps/app1/src/android/content/syncmanager/cts/app/
DSyncManagerCtsSyncAdapter.java16 package android.content.syncmanager.cts.app;
21 import android.content.AbstractThreadedSyncAdapter;
22 import android.content.ContentProviderClient;
23 import android.content.ContentResolver;
24 import android.content.Context;
25 import android.content.SyncResult;
26 import android.content.syncmanager.cts.SyncManagerCtsProto.Payload.Request.SetResult;
27 import android.content.syncmanager.cts.SyncManagerCtsProto.Payload.Request.SetResult.Result;
28 import android.content.syncmanager.cts.SyncManagerCtsProto.Payload.SyncInvocation;
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareRendererTests.kt123 val content = RenderNode("content") in rendererTest() constant
124 content.setPosition(0, 0, TEST_WIDTH, TEST_HEIGHT) in rendererTest()
125 spec.onDraw!!.invoke(content.beginRecording()) in rendererTest()
126 content.endRecording() in rendererTest()
127 setContentRoot(content) in rendererTest()
156 val content = RenderNode("content") in testBasicDrawCpuConsumer() constant
157 content.setPosition(0, 0, TEST_WIDTH, TEST_HEIGHT) in testBasicDrawCpuConsumer()
158 val canvas = content.beginRecording() in testBasicDrawCpuConsumer()
160 content.endRecording() in testBasicDrawCpuConsumer()
161 renderer.setContentRoot(content) in testBasicDrawCpuConsumer()
[all …]
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/
DCtsSyncManagerTest.java16 package android.content.syncmanager.cts;
18 import static android.content.syncmanager.cts.common.Values.ACCOUNT_1_A;
19 import static android.content.syncmanager.cts.common.Values.APP1_AUTHORITY;
20 import static android.content.syncmanager.cts.common.Values.APP1_PACKAGE;
33 import android.content.ContentResolver;
34 import android.content.Context;
35 import android.content.syncmanager.cts.SyncManagerCtsProto.Payload.Request.AddAccount;
36 import android.content.syncmanager.cts.SyncManagerCtsProto.Payload.Request.ClearSyncInvocations;
37 import android.content.syncmanager.cts.SyncManagerCtsProto.Payload.Request.GetSyncInvocations;
38 import android.content.syncmanager.cts.SyncManagerCtsProto.Payload.Request.RemoveAllAccounts;
[all …]
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildUtilBase.java81 String content; in parseTestMethod() local
87 content = readURL(resource); in parseTestMethod()
88 if (content == null) { in parseTestMethod()
96 try (Scanner scanner = new Scanner(content)) { in parseTestMethod()
97 String token = scanner.findWithinHorizon(methodPattern, content.length()); in parseTestMethod()
111 StringReader reader = new StringReader(content); in parseTestMethod()
149 Matcher m = p.matcher(content); in parseTestMethod()
256 public static void writeToFileMkdir(File file, String content) { in writeToFileMkdir() argument
261 writeToFile(file, content); in writeToFileMkdir()
264 public static void writeToFile(File file, String content) { in writeToFile() argument
[all …]
/cts/tests/tests/os/src/android/os/cts/
DRequiredComponentsTest.java19 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_AWARE;
20 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_UNAWARE;
21 import static android.content.pm.PackageManager.MATCH_SYSTEM_ONLY;
26 import android.content.Intent;
27 import android.content.pm.ApplicationInfo;
28 import android.content.pm.PackageInfo;
29 import android.content.pm.PackageManager;
30 import android.content.pm.ResolveInfo;
/cts/tests/tests/appwidget/packages/src/android/appwidget/cts/packages/
DAppWidgetConfirmPin.java20 import android.content.BroadcastReceiver;
21 import android.content.Context;
22 import android.content.Intent;
23 import android.content.IntentFilter;
24 import android.content.pm.LauncherApps;
25 import android.content.pm.LauncherApps.PinItemRequest;

12345678910>>...105