Home
last modified time | relevance | path

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

12345678910>>...148

/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 …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9466/
Dpoc-CVE-2017-9047.c24 xmlElementContent content; in main() local
25 content.type = XML_ELEMENT_CONTENT_ELEMENT; in main()
26 content.prefix = in main()
28 content.name = in main()
30 content.ocur = XML_ELEMENT_CONTENT_PLUS; in main()
31 content.c1 = NULL; in main()
32 content.c2 = NULL; in main()
33 content.parent = NULL; in main()
35 xmlSnprintfElementContent(buf, BUFFER_SIZE, &content, 1); in main()
Dpoc-CVE-2017-9048.c24 xmlElementContent content; in main() local
25 content.type = XML_ELEMENT_CONTENT_ELEMENT; in main()
26 content.prefix = (const xmlChar *)"1234567890123456789012345678901"; in main()
27 content.name = (const xmlChar *)"1234567890123456789012345678901"; in main()
28 content.ocur = XML_ELEMENT_CONTENT_PLUS; in main()
29 content.c1 = NULL; in main()
30 content.c2 = NULL; in main()
31 content.parent = NULL; in main()
33 xmlSnprintfElementContent(buf, BUFFER_SIZE, &content, 1); in main()
/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 …]
DClipboardManagerListenerActivity.java17 package android.content.cts;
20 import android.content.ClipData;
21 import android.content.ClipboardManager;
22 import android.content.ClipboardManager.OnPrimaryClipChangedListener;
23 import android.content.Context;
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;
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/context/
DContext.java19 import android.content.pm.PackageManager;
31 private static final android.content.Context sInstrumentedContext =
33 private static final android.content.Context sInstrumentationContext =
45 public android.content.Context instrumentedContext() { in instrumentedContext()
52 public android.content.Context instrumentedContextAsUser(UserReference user) { in instrumentedContextAsUser()
59 public android.content.Context instrumentationContext() { in instrumentationContext()
66 public android.content.Context instrumentationContextAsUser(UserReference user) { in instrumentationContextAsUser()
73 public android.content.Context androidContextAsUser(UserReference user) { in androidContextAsUser()
/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;
30 import android.content.Context;
/cts/tests/tests/appenumeration/app/target/src/android/appenumeration/testapp/
DDummyActivity.java19 import static android.content.Intent.EXTRA_RETURN_RESULT;
22 import android.content.ActivityNotFoundException;
23 import android.content.ComponentName;
24 import android.content.Intent;
25 import android.content.pm.PackageInfo;
26 import android.content.pm.PackageManager;
DMockSyncAdapterService.java21 import android.content.AbstractThreadedSyncAdapter;
22 import android.content.ContentProviderClient;
23 import android.content.Context;
24 import android.content.Intent;
25 import android.content.SyncResult;
/cts/tests/tests/content/src/android/content/pm/cts/
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;
DInstantAppTest.java17 package android.content.pm.cts;
20 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_AWARE;
21 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_UNAWARE;
22 import static android.content.pm.PackageManager.MATCH_SYSTEM_ONLY;
24 import android.content.Intent;
25 import android.content.pm.PackageManager;
26 import android.content.pm.ResolveInfo;
/cts/tests/tests/match_flags/app/b/src/android/matchflags/cts/app/
DTestActivity.java19 import static android.content.Intent.EXTRA_RETURN_RESULT;
22 import android.content.ComponentName;
23 import android.content.Intent;
24 import android.content.pm.PackageInfo;
25 import android.content.pm.PackageManager;
/cts/tests/tests/match_flags/app/a/src/android/matchflags/cts/app/
DTestActivity.java19 import static android.content.Intent.EXTRA_RETURN_RESULT;
22 import android.content.ComponentName;
23 import android.content.Intent;
24 import android.content.pm.PackageInfo;
25 import android.content.pm.PackageManager;
/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/security/testdata/src/android/security/cts/packageinstallertestapp/
DBackgroundReceiver.java19 import static android.content.Intent.EXTRA_COMPONENT_NAME;
20 import static android.content.Intent.EXTRA_REMOTE_CALLBACK;
21 import static android.content.pm.PackageInstaller.SessionParams.MODE_FULL_INSTALL;
26 import android.content.BroadcastReceiver;
27 import android.content.ComponentName;
28 import android.content.Context;
29 import android.content.Intent;
30 import android.content.IntentSender;
31 import android.content.pm.PackageInstaller;
32 import android.content.pm.PackageInstaller.Session;
[all …]
/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/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_appop_denied/src/android/packageinstaller/install_appop_denied/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/packageinstaller/install_appop_default/src/android/packageinstaller/install_appop_default/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/appop2/src/android/app/appops2/cts/
DAppOpsLoggingTest.kt26 import android.content.BroadcastReceiver in <lambda>()
27 import android.content.Context in <lambda>()
28 import android.content.Intent in <lambda>()
29 import android.content.Intent.FLAG_ACTIVITY_CLEAR_TASK in <lambda>()
30 import android.content.Intent.FLAG_ACTIVITY_NEW_TASK in <lambda>()
31 import android.content.IntentFilter in <lambda>()
32 import android.content.pm.PackageInstaller.EXTRA_STATUS in <lambda>()
33 import android.content.pm.PackageInstaller.STATUS_FAILURE_INVALID in <lambda>()
34 import android.content.pm.PackageInstaller.STATUS_PENDING_USER_ACTION in <lambda>()
35 import android.content.pm.PackageInstaller.SessionParams in <lambda>()
[all …]

12345678910>>...148