/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/ |
D | MyBaseListFragment.java | 19 import android.content.BroadcastReceiver; 20 import android.content.Context; 21 import android.content.Intent; 22 import android.content.IntentFilter; 23 import android.content.pm.ApplicationInfo; 24 import android.content.pm.LauncherApps; 25 import android.content.pm.LauncherApps.ShortcutQuery; 26 import android.content.pm.PackageManager; 27 import android.content.pm.PackageManager.NameNotFoundException; 28 import android.content.pm.ShortcutInfo;
|
D | ShortcutTemplateListFragment.java | 19 import android.content.Intent; 20 import android.content.IntentSender; 21 import android.content.IntentSender.SendIntentException; 22 import android.content.pm.LauncherActivityInfo; 23 import android.content.pm.LauncherApps.PinItemRequest;
|
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/ |
D | SimpleWikiHelper.java | 29 import android.content.Context; 30 import android.content.pm.PackageInfo; 31 import android.content.pm.PackageManager; 32 import android.content.pm.PackageManager.NameNotFoundException; 151 String content = getUrlContent(String.format(WIKTIONARY_PAGE, in getPageContent() local 155 JSONObject response = new JSONObject(content); in getPageContent() 200 ByteArrayOutputStream content = new ByteArrayOutputStream(); in getUrlContent() local 205 content.write(sBuffer, 0, readBytes); in getUrlContent() 209 return new String(content.toByteArray()); in getUrlContent()
|
/development/samples/Wiktionary/src/com/example/android/wiktionary/ |
D | SimpleWikiHelper.java | 29 import android.content.Context; 30 import android.content.pm.PackageInfo; 31 import android.content.pm.PackageManager; 32 import android.content.pm.PackageManager.NameNotFoundException; 144 String content = getUrlContent(String.format(WIKTIONARY_PAGE, in getPageContent() local 148 JSONObject response = new JSONObject(content); in getPageContent() 193 ByteArrayOutputStream content = new ByteArrayOutputStream(); in getUrlContent() local 198 content.write(sBuffer, 0, readBytes); in getUrlContent() 202 return new String(content.toByteArray()); in getUrlContent()
|
/development/samples/browseable/ShareActionProvider/src/com.example.android.shareactionprovider/content/ |
D | AssetProvider.java | 17 package com.example.android.shareactionprovider.content; 19 import android.content.ContentProvider; 20 import android.content.ContentValues; 21 import android.content.Context; 22 import android.content.res.AssetFileDescriptor; 23 import android.content.res.AssetManager;
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
D | ResourceHelper.java | 19 import android.content.Context; 20 import android.content.pm.ApplicationInfo; 21 import android.content.pm.PackageManager; 22 import android.content.res.Resources; 23 import android.content.res.TypedArray;
|
/development/samples/Vault/tests/src/com/example/android/vault/ |
D | EncryptedDocumentTest.java | 93 final byte[] content = "KITTENS".getBytes(StandardCharsets.UTF_8); in testNormalMetadataAndContents() 94 testMetadataAndContents(content); in testNormalMetadataAndContents() 99 final byte[] content = new byte[1298047]; in testGiantMetadataAndContents() 100 Arrays.fill(content, (byte) 0x42); in testGiantMetadataAndContents() 101 testMetadataAndContents(content); in testGiantMetadataAndContents() 104 private void testMetadataAndContents(byte[] content) throws Exception { in testMetadataAndContents() argument 106 final byte[] beforeContent = content; in testMetadataAndContents() 224 final byte[] content = "KITTENS".getBytes(StandardCharsets.UTF_8); in testErrorAbortsWrite() 231 os.write(content); in testErrorAbortsWrite()
|
/development/samples/browseable/SynchronizedNotifications/Application/src/com.example.android.wearable.synchronizednotifications/ |
D | SynchronizedNotificationsFragment.java | 20 import android.content.Intent; 97 private void buildLocalOnlyNotification(String title, String content, int notificationId, in buildLocalOnlyNotification() argument 101 .setContentText(content) in buildLocalOnlyNotification() 123 private void buildWearableOnlyNotification(String title, String content, String path) { in buildWearableOnlyNotification() argument 126 putDataMapRequest.getDataMap().putString(Constants.KEY_CONTENT, content); in buildWearableOnlyNotification() 155 private void buildMirroredNotifications(String phoneTitle, String watchTitle, String content) { in buildMirroredNotifications() argument 158 buildWearableOnlyNotification(watchTitle, content, Constants.BOTH_PATH); in buildMirroredNotifications() 161 buildLocalOnlyNotification(phoneTitle, content, Constants.BOTH_ID, true); in buildMirroredNotifications()
|
/development/samples/ShortcutDemo/publisher/src/com/example/android/pm/shortcutdemo/ |
D | RequestPinShortcutResultReceiver.java | 18 import android.content.BroadcastReceiver; 19 import android.content.Context; 20 import android.content.Intent; 21 import android.content.pm.ShortcutManager;
|
D | ShortcutPublishingService.java | 19 import android.content.ComponentName; 20 import android.content.Intent; 21 import android.content.pm.ShortcutInfo; 22 import android.content.pm.ShortcutManager;
|
/development/samples/MultiDisplay/src/com/example/android/multidisplay/launcher/ |
D | AppListViewModel.java | 20 import android.content.BroadcastReceiver; 21 import android.content.Context; 22 import android.content.Intent; 23 import android.content.IntentFilter; 24 import android.content.pm.PackageManager; 25 import android.content.pm.ResolveInfo;
|
D | PinnedAppListViewModel.java | 22 import android.content.ComponentName; 23 import android.content.Context; 24 import android.content.Intent; 25 import android.content.pm.PackageManager; 26 import android.content.pm.ResolveInfo; 27 import android.content.SharedPreferences;
|
D | AppEntry.java | 19 import android.content.ComponentName; 20 import android.content.Intent; 21 import android.content.pm.PackageManager; 22 import android.content.pm.ResolveInfo;
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
D | BatchOperation.java | 18 import android.content.ContentProviderOperation; 19 import android.content.ContentProviderResult; 20 import android.content.ContentResolver; 21 import android.content.Context; 22 import android.content.OperationApplicationException;
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | LoaderCustom.java | 33 import android.content.AsyncTaskLoader; 34 import android.content.BroadcastReceiver; 35 import android.content.Context; 36 import android.content.Intent; 37 import android.content.IntentFilter; 38 import android.content.Loader; 39 import android.content.pm.ActivityInfo; 40 import android.content.pm.ApplicationInfo; 41 import android.content.pm.PackageManager; 42 import android.content.res.Configuration; [all …]
|
/development/samples/browseable/BeamLargeFiles/src/com.example.android.common/assetprovider/ |
D | AssetProvider.java | 19 import android.content.ContentProvider; 20 import android.content.ContentValues; 21 import android.content.Context; 22 import android.content.res.AssetFileDescriptor; 23 import android.content.res.AssetManager;
|
/development/apps/Development/src/com/android/development/ |
D | AppHwPref.java | 23 import android.content.Context; 24 import android.content.Intent; 25 import android.content.pm.ConfigurationInfo; 26 import android.content.pm.ApplicationInfo; 27 import android.content.pm.PackageInfo; 28 import android.content.pm.PackageManager; 29 import android.content.pm.PackageManager.NameNotFoundException; 30 import android.content.res.Configuration;
|
D | PackageBrowser.java | 21 import android.content.Context; 22 import android.content.pm.IPackageDeleteObserver; 23 import android.content.Intent; 24 import android.content.IntentFilter; 25 import android.content.BroadcastReceiver; 26 import android.content.pm.PackageInfo; 27 import android.content.pm.PackageManager;
|
D | AppHwConfigList.java | 21 import android.content.Context; 22 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.PackageManager.NameNotFoundException;
|
/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/ |
D | AppLabelCache.java | 18 import android.content.Context; 19 import android.content.pm.ApplicationInfo; 20 import android.content.pm.PackageManager; 21 import android.content.pm.PackageManager.NameNotFoundException;
|
/development/samples/ReceiveShareDemo/src/com/example/android/receiveshare/ |
D | ReceiveShare.java | 20 import android.content.ClipData; 21 import android.content.ContentResolver; 22 import android.content.Intent; 23 import android.content.res.AssetFileDescriptor; 98 TextView content = (TextView)findViewById(R.id.receive_share_data); in onCreate() local 99 content.append(buildShareInfo(getContentResolver(), getIntent())); in onCreate()
|
/development/samples/browseable/ElizaChat/src/com.example.android.wearable.elizachat/ |
D | MainActivity.java | 20 import android.content.BroadcastReceiver; 21 import android.content.Context; 22 import android.content.Intent; 23 import android.content.IntentFilter; 25 import android.support.v4.content.LocalBroadcastManager;
|
/development/samples/browseable/ActiveNotifications/src/com.example.android.activenotifications/ |
D | ActiveNotificationsActivity.java | 19 import android.content.BroadcastReceiver; 20 import android.content.Context; 21 import android.content.Intent; 22 import android.content.IntentFilter;
|
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/ |
D | MyReceiver.java | 19 import android.content.BroadcastReceiver; 20 import android.content.ComponentName; 21 import android.content.Context; 22 import android.content.Intent;
|
/development/samples/NotePad/src/com/example/android/notepad/ |
D | NoteEditor.java | 21 import android.content.ClipData; 22 import android.content.ClipboardManager; 23 import android.content.ComponentName; 24 import android.content.ContentResolver; 25 import android.content.ContentValues; 26 import android.content.Context; 27 import android.content.CursorLoader; 28 import android.content.Intent; 29 import android.content.Loader; 30 import android.content.res.Resources;
|