Lines Matching defs:content
19 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);
188 Slog.i(TAG, "Failed to read current content, assuming first update!");
193 private static String getCurrentHash(byte[] content) {
194 if (content == null) {
199 byte[] fingerprint = dgst.digest(content);
219 private boolean verifySignature(byte[] content, int version, String requiredPrevious,
223 signer.update(content);
229 protected void writeUpdate(File dir, File file, byte[] content) throws IOException {
246 out.write(content);
261 protected void install(byte[] content, int version) throws IOException {
262 writeUpdate(updateDir, updateContent, content);