Searched defs:content (Results 151 - 175 of 203) sorted by relevance

123456789

/frameworks/base/services/core/java/com/android/server/pm/
H A DSELinuxMMAC.java19 import android.content.pm.ApplicationInfo;
20 import android.content.pm.PackageParser;
21 import android.content.pm.Signature;
421 * @param file The file that receives the byte array content.
422 * @param content A byte array that will be written to the specified file.
427 private static void dumpHash(File file, byte[] content) throws IOException { argument
434 fos.write(content);
/frameworks/base/services/core/java/com/android/server/updates/
H A DConfigUpdateInstallReceiver.java19 import android.content.BroadcastReceiver;
20 import android.content.ContentResolver;
21 import android.content.Context;
22 import android.content.Intent;
77 // get the content path from the extras
99 // install the new content
106 Slog.e(TAG, "Could not update content!", e);
135 throw new IllegalStateException("Missing required content path, ignoring.");
175 Uri content = getContentFromIntent(i);
176 InputStream is = c.getContentResolver().openInputStream(content);
193 getCurrentHash(byte[] content) argument
219 verifySignature(byte[] content, int version, String requiredPrevious, String signature, X509Certificate cert) argument
229 writeUpdate(File dir, File file, byte[] content) argument
261 install(byte[] content, int version) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
H A DSyncStorageEngineTest.java17 package com.android.server.content;
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;
36 import com.android.server.content.SyncStorageEngine.EndPoint;
44 import com.android.server.content
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
H A DCertPinInstallReceiverTest.java19 import android.content.Context;
20 import android.content.Intent;
124 private static String getCurrentHash(String content) throws Exception { argument
125 if (content == null) {
129 byte[] encoded = content.getBytes();
135 String content = IoUtils.readFileAsString("/data/misc/keychain/pins");
136 return getCurrentHash(content);
153 private String makeTemporaryContentFile(String content) throws Exception { argument
154 FileOutputStream fw = mContext.openFileOutput("content.txt", mContext.MODE_WORLD_READABLE);
155 fw.write(content
160 createSignature(String content, String version, String requiredHash) argument
173 verifySignature(String content, String version, String requiredPrevious, String signature, X509Certificate cert) argument
193 runTest(String cert, String content, String version, String required, String sig) argument
203 runTestWithoutSig(String cert, String content, String version, String required) argument
[all...]
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DTransport.java105 * @param content The content, or null if there is none.
108 public boolean sendMessage(int service, int what, ByteBuffer content) { argument
124 if (content == null) {
127 final int contentLimit = content.limit();
128 int contentPosition = content.position();
131 throw new IllegalArgumentException("Message content too large: "
138 mOutputBuffer.put(content);
141 content.limit(contentPosition + outputAvailable);
142 mOutputBuffer.put(content);
203 dispatchMessageReceived(int service, int what, ByteBuffer content) argument
247 onMessageReceived(int service, int what, ByteBuffer content) argument
[all...]
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
H A DDisplaySourceService.java23 import android.content.Context;
82 public void onMessageReceived(int service, int what, ByteBuffer content) { argument
86 if (content.remaining() >= 12) {
87 final int width = content.getInt();
88 final int height = content.getInt();
89 final int densityDpi = content.getInt();
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DBridgeResources.java17 package android.content.res;
H A DBridgeTypedArray.java17 package android.content.res;
234 * {@link android.content.res.ColorStateList}, then the default color from
265 * a color or complex {@link android.content.res.ColorStateList} description.
/frameworks/support/v4/java/android/support/v4/content/
H A DFileProvider.java17 package android.support.v4.content;
22 import android.content.ContentProvider;
23 import android.content.ContentValues;
24 import android.content.Context;
25 import android.content.Intent;
26 import android.content.pm.PackageManager;
27 import android.content.pm.ProviderInfo;
28 import android.content.res.XmlResourceParser;
48 * of files associated with an app by creating a <code>content://</code> {@link Uri} for a file
51 * A content UR
[all...]
H A DLoader.java17 package android.support.v4.content;
19 import android.content.Context;
28 * Static library support version of the framework's {@link android.content.Loader}.
48 * it is used for you by {@link android.support.v4.content.CursorLoader}
309 * Take the current flag indicating whether the loader's content had
321 * Commit that you have actually fully processed a content change that
332 * Report that you have abandoned the processing of a content change that
334 * to the state where there is again a pending content change. This is
335 * to handle the case where a data load due to a content change has been
H A DModernAsyncTask.java17 package android.support.v4.content;
/frameworks/support/v4/kitkat/android/support/v4/print/
H A DPrintHelperKitkat.java19 import android.content.Context;
214 RectF content = new RectF(page.getInfo().getContentRect());
217 content, fittingMode);
234 Log.e(LOG_TAG, "Error writing printed content", ioe);
265 * @param content The output page dimensions
269 private Matrix getMatrix(int imageWidth, int imageHeight, RectF content, int fittingMode) { argument
273 float scale = content.width() / imageWidth;
275 scale = Math.max(scale, content.height() / imageHeight);
277 scale = Math.min(scale, content.height() / imageHeight);
281 // Center the content
[all...]
/frameworks/base/cmds/content/src/com/android/commands/content/
H A DContent.java17 package com.android.commands.content;
22 import android.content.ContentValues;
23 import android.content.IContentProvider;
41 * This class is a command line utility for manipulating content. A client
42 * can insert, update, and remove records in a content provider. For example,
49 * adb shell content insert --uri content://settings/secure --bind name:s:new_setting
55 * adb shell content update --uri content://settings/secure --bind value:s:newer_value
60 * adb shell content delet
[all...]
/frameworks/base/core/java/android/content/
H A DBroadcastReceiver.java17 package android.content;
33 * this class with {@link android.support.v4.content.LocalBroadcastManager} instead
138 * {@link android.support.v4.content.LocalBroadcastManager}, since intents
185 * use {@link android.content.Context#startService Context.startService()} to
459 * {@link android.content.Context#registerReceiver(BroadcastReceiver,
477 * <p>The Intent filters used in {@link android.content.Context#registerReceiver}
H A DContentProviderOperation.java17 package android.content;
19 import android.content.ContentProvider;
H A DRestrictionEntry.java17 package android.content;
110 /* The chosen value, whose content depends on the type of the restriction. */
H A DSyncRequest.java17 package android.content;
25 * Convenience class to construct sync requests. See {@link android.content.SyncRequest.Builder}
27 * framework via {@link android.content.ContentResolver#requestSync(SyncRequest)}.
347 * @param authority A String identifying the content provider to be synced.
/frameworks/base/core/java/android/content/res/
H A DCompatibilityInfo.java17 package android.content.res;
19 import android.content.pm.ApplicationInfo;
322 * Apply translation to the canvas that is necessary to draw the content.
396 * Translate the content insets in application window to Screen. This uses
397 * the internal buffer for content insets to avoid extra object allocation.
/frameworks/base/core/java/android/text/method/
H A DMetaKeyKeyListener.java272 public static void adjustMetaAfterKeypress(Spannable content) { argument
273 adjust(content, CAP);
274 adjust(content, ALT);
275 adjust(content, SYM);
295 private static void adjust(Spannable content, Object what) { argument
296 int current = content.getSpanFlags(what);
299 content.setSpan(what, 0, 0, USED);
301 content.removeSpan(what);
308 protected static void resetLockedMeta(Spannable content) { argument
309 resetLock(content, CA
315 resetLock(Spannable content, Object what) argument
325 onKeyDown(View view, Editable content, int keyCode, KeyEvent event) argument
345 press(Editable content, Object what) argument
364 startSelecting(View view, Spannable content) argument
373 stopSelecting(View view, Spannable content) argument
380 onKeyUp(View view, Editable content, int keyCode, KeyEvent event) argument
400 release(Editable content, Object what, KeyEvent event) argument
417 clearMetaKeyState(View view, Editable content, int states) argument
421 clearMetaKeyState(Editable content, int states) argument
[all...]
/frameworks/base/core/java/com/android/internal/content/
H A DPackageHelper.java17 package com.android.internal.content;
21 import android.content.Context;
22 import android.content.pm.ApplicationInfo;
23 import android.content.pm.PackageInfo;
24 import android.content.pm.PackageManager;
25 import android.content.pm.PackageManager.NameNotFoundException;
26 import android.content.pm.PackageParser.PackageLite;
H A DPackageMonitor.java17 package com.android.internal.content;
20 import android.content.Context;
21 import android.content.Intent;
22 import android.content.IntentFilter;
35 public abstract class PackageMonitor extends android.content.BroadcastReceiver {
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DAppCacheTest.java17 package android.content.pm;
20 import android.content.BroadcastReceiver;
21 import android.content.Context;
22 import android.content.Intent;
23 import android.content.IntentFilter;
H A DComponentTest.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_ENABLED;
22 import static android.content.pm.PackageManager.GET_DISABLED_COMPONENTS;
33 import android.content.ComponentName;
34 import android.content.Intent;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DUtils.java19 import android.content.Context;
20 import android.content.pm.PackageInfo;
21 import android.content.pm.PackageManager.NameNotFoundException;
240 public static float parseFloatSafely(String content, float defaultValue) { argument
241 if (content == null) return defaultValue;
243 return Float.parseFloat(content);
249 public static int parseIntSafely(String content, int defaultValue) { argument
250 if (content == null) return defaultValue;
252 return Integer.parseInt(content);
/frameworks/base/services/core/java/com/android/server/content/
H A DSyncOperation.java17 package com.android.server.content;
20 import android.content.pm.PackageManager;
21 import android.content.ComponentName;
22 import android.content.ContentResolver;

Completed in 639 milliseconds

123456789