Home
last modified time | relevance | path

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

12345678910>>...203

/frameworks/base/core/java/android/text/method/
DQwertyKeyListener.java89 public boolean onKeyDown(View view, Editable content, in onKeyDown() argument
99 int a = Selection.getSelectionStart(content); in onKeyDown()
100 int b = Selection.getSelectionEnd(content); in onKeyDown()
107 Selection.setSelection(content, 0, 0); in onKeyDown()
111 int activeStart = content.getSpanStart(TextKeyListener.ACTIVE); in onKeyDown()
112 int activeEnd = content.getSpanEnd(TextKeyListener.ACTIVE); in onKeyDown()
116 int i = event.getUnicodeChar(getMetaState(content, event)); in onKeyDown()
121 char c = content.charAt(selStart - 1); in onKeyDown()
124 if (showCharacterPicker(view, content, c, false, count)) { in onKeyDown()
125 resetMetaState(content); in onKeyDown()
[all …]
DMultiTapKeyListener.java88 public boolean onKeyDown(View view, Editable content, in onKeyDown() argument
98 int a = Selection.getSelectionStart(content); in onKeyDown()
99 int b = Selection.getSelectionEnd(content); in onKeyDown()
105 int activeStart = content.getSpanStart(TextKeyListener.ACTIVE); in onKeyDown()
106 int activeEnd = content.getSpanEnd(TextKeyListener.ACTIVE); in onKeyDown()
113 int rec = (content.getSpanFlags(TextKeyListener.ACTIVE) in onKeyDown()
120 char current = content.charAt(selStart); in onKeyDown()
123 content.replace(selStart, selEnd, in onKeyDown()
125 removeTimeouts(content); in onKeyDown()
126 new Timeout(content); // for its side effects in onKeyDown()
[all …]
DMetaKeyKeyListener.java272 public static void adjustMetaAfterKeypress(Spannable content) { in adjustMetaAfterKeypress() argument
273 adjust(content, CAP); in adjustMetaAfterKeypress()
274 adjust(content, ALT); in adjustMetaAfterKeypress()
275 adjust(content, SYM); in adjustMetaAfterKeypress()
295 private static void adjust(Spannable content, Object what) { in adjust() argument
296 int current = content.getSpanFlags(what); in adjust()
299 content.setSpan(what, 0, 0, USED); in adjust()
301 content.removeSpan(what); in adjust()
308 protected static void resetLockedMeta(Spannable content) { in resetLockedMeta() argument
309 resetLock(content, CAP); in resetLockedMeta()
[all …]
DBaseKeyListener.java70 public boolean backspace(View view, Editable content, int keyCode, KeyEvent event) { in backspace() argument
71 return backspaceOrForwardDelete(view, content, keyCode, event, false); in backspace()
82 public boolean forwardDelete(View view, Editable content, int keyCode, KeyEvent event) { in forwardDelete() argument
83 return backspaceOrForwardDelete(view, content, keyCode, event, true); in forwardDelete()
319 private boolean backspaceOrForwardDelete(View view, Editable content, int keyCode, in backspaceOrForwardDelete() argument
328 if (deleteSelection(view, content)) { in backspaceOrForwardDelete()
334 boolean isShiftActive = (getMetaState(content, META_SHIFT_ON, event) == 1); in backspaceOrForwardDelete()
335 boolean isAltActive = (getMetaState(content, META_ALT_ON, event) == 1); in backspaceOrForwardDelete()
342 return deleteUntilWordBoundary(view, content, isForwardDelete); in backspaceOrForwardDelete()
346 if (isAltActive && deleteLine(view, content)) { in backspaceOrForwardDelete()
[all …]
DNumberKeyListener.java53 protected int lookup(KeyEvent event, Spannable content) { in lookup() argument
54 return event.getMatch(getAcceptedChars(), getMetaState(content, event)); in lookup()
106 public boolean onKeyDown(View view, Editable content, in onKeyDown() argument
111 int a = Selection.getSelectionStart(content); in onKeyDown()
112 int b = Selection.getSelectionEnd(content); in onKeyDown()
120 Selection.setSelection(content, 0); in onKeyDown()
123 int i = event != null ? lookup(event, content) : 0; in onKeyDown()
128 Selection.setSelection(content, selEnd); in onKeyDown()
131 content.replace(selStart, selEnd, String.valueOf((char) i)); in onKeyDown()
133 adjustMetaAfterKeypress(content); in onKeyDown()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java20 import android.content.Context;
21 import android.content.res.TypedArray;
170 final Editable content = getEditable(); in clearMetaKeyStates() local
171 if (content == null) return false; in clearMetaKeyStates()
172 MetaKeyKeyListener.clearMetaKeyState(content, states); in clearMetaKeyStates()
218 final Editable content = getEditable(); in deleteSurroundingText() local
219 if (content == null) return false; in deleteSurroundingText()
223 int a = Selection.getSelectionStart(content); in deleteSurroundingText()
224 int b = Selection.getSelectionEnd(content); in deleteSurroundingText()
233 int ca = getComposingSpanStart(content); in deleteSurroundingText()
[all …]
/frameworks/base/core/java/android/content/pm/
DIPackageInstaller.aidl17 package android.content.pm;
19 import android.content.pm.IPackageDeleteObserver2;
20 import android.content.pm.IPackageInstallerCallback;
21 import android.content.pm.IPackageInstallerSession;
22 import android.content.pm.PackageInstaller;
23 import android.content.pm.ParceledListSlice;
24 import android.content.pm.VersionedPackage;
25 import android.content.IntentSender;
DIPackageManager.aidl18 package android.content.pm;
20 import android.content.ComponentName;
21 import android.content.Intent;
22 import android.content.IntentFilter;
23 import android.content.pm.ActivityInfo;
24 import android.content.pm.ApplicationInfo;
25 import android.content.pm.ChangedPackages;
26 import android.content.pm.InstantAppInfo;
27 import android.content.pm.FeatureInfo;
28 import android.content.pm.IPackageInstallObserver2;
[all …]
DILauncherApps.aidl17 package android.content.pm;
19 import android.content.ComponentName;
20 import android.content.Intent;
21 import android.content.IntentSender;
22 import android.content.pm.ActivityInfo;
23 import android.content.pm.ApplicationInfo;
24 import android.content.pm.IOnAppsChangedListener;
25 import android.content.pm.ParceledListSlice;
26 import android.content.pm.ResolveInfo;
27 import android.content.pm.ShortcutInfo;
DPackageUserState.java17 package android.content.pm;
19 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DEFAULT;
20 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED;
21 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED;
22 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER;
23 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
24 import static android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS;
25 import static android.content.pm.PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS;
26 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_AWARE;
27 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_UNAWARE;
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java21 import android.content.Context;
22 import android.content.Intent;
126 private static String getCurrentHash(String content) throws Exception { in getCurrentHash() argument
127 if (content == null) { in getCurrentHash()
131 byte[] encoded = content.getBytes(); in getCurrentHash()
137 String content = IoUtils.readFileAsString("/data/misc/keychain/pins"); in getHashOfCurrentContent() local
138 return getCurrentHash(content); in getHashOfCurrentContent()
155 private String makeTemporaryContentFile(String content) throws Exception { in makeTemporaryContentFile() argument
157 fw.write(content.getBytes(), 0, content.length()); in makeTemporaryContentFile()
162 private String createSignature(String content, String version, String requiredHash) in createSignature() argument
[all …]
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DDisplaySinkService.java23 import android.content.Context;
91 public void onMessageReceived(int service, int what, ByteBuffer content) { in onMessageReceived() argument
100 decode(content); in onMessageReceived()
174 private void decode(ByteBuffer content) { in decode() argument
175 if (content == null) { in decode()
183 while (content.hasRemaining()) { in decode()
184 if (!provideCodecInputLocked(content)) { in decode()
194 private boolean provideCodecInputLocked(ByteBuffer content) { in provideCodecInputLocked() argument
205 if (content.remaining() <= capacity) { in provideCodecInputLocked()
206 buffer.put(content); in provideCodecInputLocked()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DPackageManagerWrapper.java18 import android.content.ComponentName;
19 import android.content.Intent;
20 import android.content.IntentFilter;
21 import android.content.pm.ApplicationInfo;
22 import android.content.pm.PackageInfo;
23 import android.content.pm.PackageManager;
24 import android.content.pm.PackageManager.NameNotFoundException;
25 import android.content.pm.ResolveInfo;
DPackageManagerWrapperImpl.java18 import android.content.ComponentName;
19 import android.content.Intent;
20 import android.content.IntentFilter;
21 import android.content.pm.ApplicationInfo;
22 import android.content.pm.PackageInfo;
23 import android.content.pm.PackageManager;
24 import android.content.pm.PackageManager.NameNotFoundException;
25 import android.content.pm.ResolveInfo;
/frameworks/support/fragment/tests/java/android/support/v4/app/
DFragmentTest.java69 .add(R.id.content, fragment1) in testOnCreateOrder()
70 .add(R.id.content, fragment2) in testOnCreateOrder()
85 .add(R.id.content, fragmentA) in testChildFragmentManagerGone()
96 .replace(R.id.content, fragmentB) in testChildFragmentManagerGone()
109 .replace(R.id.content, fragmentA) in testChildFragmentManagerGone()
143 .add(R.id.content, fragmentA) in testViewOrder()
144 .add(R.id.content, fragmentB) in testViewOrder()
145 .add(R.id.content, fragmentC) in testViewOrder()
147 ViewGroup content = (ViewGroup) mActivity.findViewById(R.id.content); in testViewOrder() local
148 assertEquals(3, content.getChildCount()); in testViewOrder()
[all …]
/frameworks/support/compat/java/android/support/v4/content/pm/
DShortcutManagerCompat.java17 package android.support.v4.content.pm;
20 import android.content.BroadcastReceiver;
21 import android.content.Context;
22 import android.content.Intent;
23 import android.content.IntentSender;
24 import android.content.pm.PackageManager;
25 import android.content.pm.ResolveInfo;
26 import android.content.pm.ShortcutManager;
30 import android.support.v4.content.ContextCompat;
/frameworks/base/services/core/java/com/android/server/am/
DActivityStartInterceptor.java23 import static android.content.Context.KEYGUARD_SERVICE;
24 import static android.content.Intent.EXTRA_INTENT;
25 import static android.content.Intent.EXTRA_PACKAGE_NAME;
26 import static android.content.Intent.EXTRA_TASK_ID;
27 import static android.content.Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS;
28 import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
29 import static android.content.Intent.FLAG_ACTIVITY_TASK_ON_HOME;
30 import static android.content.pm.ApplicationInfo.FLAG_SUSPENDED;
36 import android.content.IIntentSender;
37 import android.content.Intent;
[all …]
/frameworks/base/services/core/java/com/android/server/updates/
DConfigUpdateInstallReceiver.java22 import android.content.BroadcastReceiver;
23 import android.content.Context;
24 import android.content.Intent;
134 Uri content = getContentFromIntent(i); in getAltContent() local
135 InputStream is = c.getContentResolver().openInputStream(content); in getAltContent()
152 private static String getCurrentHash(byte[] content) { in getCurrentHash() argument
153 if (content == null) { in getCurrentHash()
158 byte[] fingerprint = dgst.digest(content); in getCurrentHash()
178 protected void writeUpdate(File dir, File file, byte[] content) throws IOException { in writeUpdate() argument
195 out.write(content); in writeUpdate()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalReceiver.java19 import android.content.BroadcastReceiver;
20 import android.content.ComponentName;
21 import android.content.Context;
22 import android.content.Intent;
23 import android.content.IntentFilter;
24 import android.content.ReceiverCallNotAllowedException;
25 import android.content.ServiceConnection;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DPackageManagerAdapter.java21 import android.content.ComponentName;
22 import android.content.Context;
23 import android.content.pm.IPackageManager;
24 import android.content.pm.PackageInfo;
25 import android.content.pm.PackageManager;
26 import android.content.pm.ServiceInfo;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java22 import android.content.ComponentName;
23 import android.content.Intent;
24 import android.content.IntentFilter;
25 import android.content.IntentSender;
26 import android.content.pm.ActivityInfo;
27 import android.content.pm.ApplicationInfo;
28 import android.content.pm.ChangedPackages;
29 import android.content.pm.InstantAppInfo;
30 import android.content.pm.FeatureInfo;
31 import android.content.pm.IPackageDataObserver;
[all …]
/frameworks/base/core/java/com/android/internal/app/
DUnlaunchableAppActivity.java19 import static android.content.Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS;
20 import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
25 import android.content.ComponentName;
26 import android.content.Context;
27 import android.content.DialogInterface;
28 import android.content.Intent;
29 import android.content.IntentSender;
30 import android.content.pm.ApplicationInfo;
31 import android.content.pm.PackageManager;
32 import android.content.pm.PackageManager.NameNotFoundException;
/frameworks/support/wear/src/android/support/wear/widget/drawer/
DWearableDrawerView.java20 import android.content.Context;
21 import android.content.res.TypedArray;
269 public void setDrawerContent(@Nullable View content) { in setDrawerContent() argument
270 if (setDrawerContentWithoutAdding(content)) { in setDrawerContent()
271 addView(content); in setDrawerContent()
280 public void setPeekContent(View content) { in setPeekContent() argument
281 ViewGroup.LayoutParams layoutParams = content.getLayoutParams(); in setPeekContent()
283 content, in setPeekContent()
485 private void setPeekContent(View content, int index, ViewGroup.LayoutParams params) { in setPeekContent() argument
486 if (content == null) { in setPeekContent()
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DAndroidPackageInfoFetcher.java19 import android.content.Context;
20 import android.content.pm.ApplicationInfo;
21 import android.content.pm.PackageInfo;
22 import android.content.pm.PackageManager;
23 import android.content.pm.PackageManager.NameNotFoundException;
24 import android.content.res.Resources.NotFoundException;
/frameworks/base/core/java/android/speech/
DRecognizerIntent.java22 import android.content.ActivityNotFoundException;
23 import android.content.BroadcastReceiver;
24 import android.content.ComponentName;
25 import android.content.Context;
26 import android.content.Intent;
27 import android.content.pm.PackageManager;
28 import android.content.pm.ResolveInfo;

12345678910>>...203