Home
last modified time | relevance | path

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

12345678910>>...74

/cts/tests/tests/text/src/android/text/method/cts/
DBaseKeyListenerTest.java57 Editable content = Editable.Factory.getInstance().newEditable(TEST_STRING); in verifyBackspace() local
60 prepTextViewSync(content, mockBaseKeyListener, false, 0, 0); in verifyBackspace()
61 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
62 assertEquals("123456", content.toString()); in verifyBackspace()
65 prepTextViewSync(content, mockBaseKeyListener, false, 0, 3); in verifyBackspace()
66 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
67 assertEquals("456", content.toString()); in verifyBackspace()
70 prepTextViewSync(content, mockBaseKeyListener, false, 2, 2); in verifyBackspace()
71 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
72 assertEquals("46", content.toString()); in verifyBackspace()
[all …]
DMetaKeyKeyListenerTest.java55 final Editable content = Editable.Factory.getInstance().newEditable(str); in testPressKey() local
57 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); in testPressKey()
58 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); in testPressKey()
59 numberKeyListener.onKeyDown(view, content, KeyEvent.KEYCODE_0, in testPressKey()
61 assertEquals('0', content.charAt(0)); in testPressKey()
63 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT); in testPressKey()
64 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT); in testPressKey()
65 numberKeyListener.onKeyDown(view, content, KeyEvent.KEYCODE_2, in testPressKey()
67 assertEquals('2', content.charAt(1)); in testPressKey()
69 content.setSpan(Selection.SELECTION_START, 3, 3, Spanned.SPAN_POINT_POINT); in testPressKey()
[all …]
DQwertyKeyListenerTest.java194 final SpannableStringBuilder content = new SpannableStringBuilder("123456"); in testMarkAsReplaced() local
196 Object[] repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced()
199 QwertyKeyListener.markAsReplaced(content, 0, content.length(), "abcd"); in testMarkAsReplaced()
200 repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced()
202 assertEquals(0, content.getSpanStart(repl[0])); in testMarkAsReplaced()
203 assertEquals(content.length(), content.getSpanEnd(repl[0])); in testMarkAsReplaced()
204 assertEquals(Spannable.SPAN_EXCLUSIVE_EXCLUSIVE, content.getSpanFlags(repl[0])); in testMarkAsReplaced()
206 QwertyKeyListener.markAsReplaced(content, 1, 2, "abcd"); in testMarkAsReplaced()
207 repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced()
209 assertEquals(1, content.getSpanStart(repl[0])); in testMarkAsReplaced()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DSlidingDrawerTest.java111 View content = mDrawer.getContent(); in testGetContent() local
112 assertTrue(content instanceof TextView); in testGetContent()
113 assertEquals(R.id.content, content.getId()); in testGetContent()
119 View content = mDrawer.getContent(); in testOpenAndClose() local
121 assertEquals(View.GONE, content.getVisibility()); in testOpenAndClose()
125 assertEquals(View.VISIBLE, content.getVisibility()); in testOpenAndClose()
129 assertEquals(View.GONE, content.getVisibility()); in testOpenAndClose()
134 View content = mDrawer.getContent(); in testAnimateOpenAndClose() local
137 assertEquals(View.GONE, content.getVisibility()); in testAnimateOpenAndClose()
141 assertEquals(View.GONE, content.getVisibility()); in testAnimateOpenAndClose()
[all …]
/cts/tests/tests/content/src/android/content/cts/
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;
37 import com.android.server.content.SyncStorageEngine;
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;
DMockReceiverDisableable.java17 package android.content.cts;
19 import android.content.BroadcastReceiver;
20 import android.content.Context;
21 import android.content.Intent;
DResultReceiver.java17 package android.content.cts;
19 import android.content.BroadcastReceiver;
20 import android.content.Context;
21 import android.content.Intent;
DMockReceiverFirst.java17 package android.content.cts;
19 import android.content.BroadcastReceiver;
20 import android.content.Context;
21 import android.content.Intent;
DMockReceiverAbort.java17 package android.content.cts;
19 import android.content.BroadcastReceiver;
20 import android.content.Context;
21 import android.content.Intent;
DIntent_ShortcutIconResourceTest.java17 package android.content.cts;
19 import android.content.Context;
20 import android.content.Intent;
21 import android.content.Intent.ShortcutIconResource;
32 final int resourceId = android.content.cts.R.string.notify;
66 android.content.cts.R.string.notify); in testWriteToParcel()
/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;
DFeatureTest.java16 package android.content.pm.cts;
19 import android.content.Context;
20 import android.content.pm.FeatureGroupInfo;
21 import android.content.pm.FeatureInfo;
22 import android.content.pm.PackageInfo;
23 import android.content.pm.PackageManager;
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/
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;
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;
DFgService.java16 package android.content.pm.cts.shortcutmanager.throttling;
22 import android.content.ComponentName;
23 import android.content.Context;
24 import android.content.Intent;
25 import android.content.pm.cts.shortcutmanager.common.Constants;
26 import android.content.pm.cts.shortcutmanager.common.ReplyUtil;
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/
DTestActivityWithSameAffinity.java20 import android.content.BroadcastReceiver;
21 import android.content.ComponentName;
22 import android.content.Context;
23 import android.content.Intent;
24 import android.content.IntentFilter;
25 import android.content.res.Configuration;
/cts/tests/tests/os/src/android/os/cts/
DRequiredComponentsTest.java22 import android.content.Intent;
23 import android.content.pm.ApplicationInfo;
24 import android.content.pm.PackageInfo;
25 import android.content.pm.PackageManager;
26 import android.content.pm.ResolveInfo;
36 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_AWARE;
37 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_UNAWARE;
38 import static android.content.pm.PackageManager.MATCH_SYSTEM_ONLY;
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/tools/
DActivityLauncher.java19 import static android.content.Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT;
20 import static android.content.Intent.FLAG_ACTIVITY_MULTIPLE_TASK;
21 import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
22 import static android.content.Intent.FLAG_ACTIVITY_REORDER_TO_FRONT;
25 import android.content.Intent;
26 import android.content.ComponentName;
27 import android.content.Context;
/cts/hostsidetests/content/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/
DSyncAdapter.java17 package com.android.cts.content;
20 import android.content.AbstractThreadedSyncAdapter;
21 import android.content.ContentProviderClient;
22 import android.content.Context;
23 import android.content.SyncResult;
/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;
/cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/src/com/android/cts/privilegedupdate/
DPrivilegedAppDisableTest.java21 import android.content.ComponentName;
22 import android.content.Intent;
23 import android.content.pm.ApplicationInfo;
24 import android.content.pm.PackageManager;
25 import android.content.pm.ResolveInfo;
26 import android.content.pm.PackageManager.NameNotFoundException;
/cts/tests/tests/media/src/android/media/cts/
DDeviceUtils.java19 import android.content.BroadcastReceiver;
20 import android.content.Context;
21 import android.content.Intent;
22 import android.content.IntentFilter;
23 import android.content.pm.PackageManager;
/cts/hostsidetests/systemui/app/src/android/systemui/cts/
DTestActiveTileService.java17 import android.content.BroadcastReceiver;
18 import android.content.ComponentName;
19 import android.content.Context;
20 import android.content.Intent;

12345678910>>...74