/development/samples/browseable/BasicNotifications/src/com.example.android.basicnotifications/ |
D | MainActivity.java | 49 NotificationCompat.Builder builder = new NotificationCompat.Builder(this); in sendNotification() local 59 builder.setSmallIcon(R.drawable.ic_stat_notification); in sendNotification() 62 builder.setContentIntent(pendingIntent); in sendNotification() 66 builder.setAutoCancel(true); in sendNotification() 74 builder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher)); in sendNotification() 85 builder.setContentTitle("BasicNotifications Sample"); in sendNotification() 86 builder.setContentText("Time to learn about notifications!"); in sendNotification() 87 builder.setSubText("Tap to view documentation about notifications."); in sendNotification() 98 notificationManager.notify(NOTIFICATION_ID, builder.build()); in sendNotification()
|
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/utils/ |
D | DbQueryUtils.java | 63 StringBuilder builder = new StringBuilder(); in concatenateClausesWithOperation() local 67 if (builder.length() > 0) { in concatenateClausesWithOperation() 68 builder.append(" ").append(operation).append(" "); in concatenateClausesWithOperation() 70 builder.append("("); in concatenateClausesWithOperation() 71 builder.append(clause); in concatenateClausesWithOperation() 72 builder.append(")"); in concatenateClausesWithOperation() 75 return builder.toString(); in concatenateClausesWithOperation()
|
/development/tools/idegen/src/com/android/idegen/ |
D | AggregatedModule.java | 96 ImmutableList.Builder<File> builder = ImmutableList.builder(); in getSourceDirs() local 98 builder.addAll(module.getSourceDirs()); in getSourceDirs() 100 return builder.build(); in getSourceDirs() 106 ImmutableList.Builder<File> builder = ImmutableList.builder(); in getExcludeDirs() local 108 builder.addAll(module.getExcludeDirs()); in getExcludeDirs() 110 return builder.build(); in getExcludeDirs()
|
D | DirectorySearch.java | 104 ImmutableList.Builder<File> builder = ImmutableList.builder(); in findSourceDirs() local 109 builder.add(child); in findSourceDirs() 112 builder.addAll(dirs); in findSourceDirs() 117 return builder.build(); in findSourceDirs() 128 ImmutableList.Builder<File> builder = ImmutableList.builder(); in findExcludeDirs() local 142 builder.add(child); in findExcludeDirs() 148 return builder.build(); in findExcludeDirs()
|
D | StandardModule.java | 162 ImmutableList.Builder<File> builder = ImmutableList.builder(); in parseSourceFiles() local 176 builder.add(new File(rootDir, dir)); in parseSourceFiles() 179 builder.add(new File(rootDir, value)); in parseSourceFiles() 183 return builder.build(); in parseSourceFiles()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/ |
D | M4.java | 68 StringBuilder builder = new StringBuilder("[ "); in toString() local 71 builder.append(m[i][j]); in toString() 72 builder.append(" "); in toString() 75 builder.append("\n "); in toString() 77 builder.append(" ]"); in toString() 78 return builder.toString(); in toString()
|
/development/tools/idegen/src/ |
D | Files.java | 32 StringBuilder builder = new StringBuilder(); in toString() local 34 builder.append(buffer, 0, read); in toString() 37 return builder.toString(); in toString()
|
/development/samples/browseable/CustomNotifications/src/com.example.android.customnotifications/ |
D | MainActivity.java | 46 NotificationCompat.Builder builder = new NotificationCompat.Builder(this); in createNotification() local 55 builder.setContentIntent(intent); in createNotification() 60 builder.setTicker(getResources().getString(R.string.custom_notification)); in createNotification() 63 builder.setSmallIcon(R.drawable.ic_stat_custom); in createNotification() 68 builder.setAutoCancel(true); in createNotification() 71 Notification notification = builder.build(); in createNotification()
|
/development/apps/Development/src/com/android/development/ |
D | LogViewer.java | 69 StringBuilder builder = new StringBuilder(); in appendThrowable() local 70 builder.append("Error reading log: "); in appendThrowable() 71 builder.append(Log.getStackTraceString(t)); in appendThrowable() 72 text.getText().append(builder); in appendThrowable() 79 StringBuilder builder = new StringBuilder(); field in LogViewer.LogReader 111 builder.append(tag) in run() 118 handler.post(new AppendCharacters(builder)); in run() 119 builder = new StringBuilder(); in run()
|
D | AccountsTester.java | 309 AlertDialog.Builder builder = new AlertDialog.Builder(this); in onCreateDialog() local 310 builder.setPositiveButton(R.string.accounts_tester_ok_button, in onCreateDialog() 343 builder.setView(view); in onCreateDialog() 344 return builder.create(); in onCreateDialog() 350 AlertDialog.Builder builder = new AlertDialog.Builder(this); in onCreateDialog() local 351 builder.setPositiveButton(R.string.accounts_tester_ok_button, in onCreateDialog() 377 builder.setView(view); in onCreateDialog() 378 return builder.create(); in onCreateDialog() 382 AlertDialog.Builder builder = new AlertDialog.Builder(this); in onCreateDialog() local 383 builder.setMessage(mDialogMessage); in onCreateDialog() [all …]
|
/development/tools/apkcheck/src/com/android/apkcheck/ |
D | TypeUtils.java | 73 StringBuilder builder = new StringBuilder(); in typeToDescriptor() local 75 builder.append("["); in typeToDescriptor() 80 builder.append(quick); in typeToDescriptor() 82 builder.append("L"); in typeToDescriptor() 83 builder.append(type.replace('.', '/')); in typeToDescriptor() 84 builder.append(";"); in typeToDescriptor() 87 return builder.toString(); in typeToDescriptor()
|
/development/samples/AppNavigation/src/com/example/android/appnavigation/app/ |
D | NotificationsActivity.java | 38 Notification.Builder builder = new Notification.Builder(this) in onPostDirect() local 50 nm.notify("direct_tag", R.id.direct_notification, builder.getNotification()); in onPostDirect() 54 Notification.Builder builder = new Notification.Builder(this) in onPostInterstitial() local 65 nm.notify("interstitial_tag", R.id.interstitial_notification, builder.getNotification()); in onPostInterstitial()
|
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/provider/ |
D | FeedProvider.java | 95 SelectionBuilder builder = new SelectionBuilder(); in query() local 101 builder.where(FeedContract.Entry._ID + "=?", id); in query() 104 builder.table(FeedContract.Entry.TABLE_NAME) in query() 106 Cursor c = builder.query(db, projection, sortOrder); in query() 149 SelectionBuilder builder = new SelectionBuilder(); in delete() local 155 count = builder.table(FeedContract.Entry.TABLE_NAME) in delete() 161 count = builder.table(FeedContract.Entry.TABLE_NAME) in delete() 181 SelectionBuilder builder = new SelectionBuilder(); in update() local 187 count = builder.table(FeedContract.Entry.TABLE_NAME) in update() 193 count = builder.table(FeedContract.Entry.TABLE_NAME) in update()
|
/development/samples/training/notify-user/src/com/example/android/pingme/ |
D | PingService.java | 34 NotificationCompat.Builder builder; field in PingService 84 builder = in issueNotification() 123 builder.setContentIntent(resultPendingIntent); in issueNotification() 127 private void issueNotification(NotificationCompat.Builder builder) { in issueNotification() argument 131 mNotificationManager.notify(CommonConstants.NOTIFICATION_ID, builder.build()); in issueNotification() 144 issueNotification(builder); in startTimer()
|
/development/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/ |
D | NotificationsActivity.java | 51 NotificationCompat.Builder builder = new NotificationCompat.Builder(this) in onPostDirect() local 63 nm.notify("direct_tag", R.id.direct_notification, builder.getNotification()); in onPostDirect() 67 NotificationCompat.Builder builder = new NotificationCompat.Builder(this) in onPostInterstitial() local 78 nm.notify("interstitial_tag", R.id.interstitial_notification, builder.getNotification()); in onPostInterstitial()
|
/development/samples/ToyVpn/src/com/example/android/toyvpn/ |
D | ToyVpnService.java | 297 Builder builder = new Builder(); in configure() local 303 builder.setMtu(Short.parseShort(fields[1])); in configure() 306 builder.addAddress(fields[1], Integer.parseInt(fields[2])); in configure() 309 builder.addRoute(fields[1], Integer.parseInt(fields[2])); in configure() 312 builder.addDnsServer(fields[1]); in configure() 315 builder.addSearchDomain(fields[1]); in configure() 331 mInterface = builder.setSession(mServerAddress) in configure()
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | ExpandableList2.java | 90 Uri.Builder builder = Contacts.CONTENT_URI.buildUpon(); in getChildrenCursor() local 91 ContentUris.appendId(builder, groupCursor.getLong(GROUP_ID_COLUMN_INDEX)); in getChildrenCursor() 92 builder.appendEncodedPath(Contacts.Data.CONTENT_DIRECTORY); in getChildrenCursor() 93 Uri phoneNumbersUri = builder.build(); in getChildrenCursor()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | PurgeableBitmap.java | 106 AlertDialog.Builder builder = new AlertDialog.Builder(this); in showAlertDialog() local 107 builder.setMessage(message) in showAlertDialog() 113 AlertDialog alert = builder.create(); in showAlertDialog()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | DeviceAdminSample.java | 228 AlertDialog.Builder builder = new AlertDialog.Builder(mActivity); in doResetPassword() local 230 builder.setMessage(message); in doResetPassword() 231 builder.setPositiveButton(R.string.reset_password_ok, null); in doResetPassword() 232 builder.show(); in doResetPassword() 755 AlertDialog.Builder builder = new AlertDialog.Builder(activity); in promptForRealDeviceWipe() local 756 builder.setMessage(R.string.wipe_warning_first); in promptForRealDeviceWipe() 757 builder.setPositiveButton(R.string.wipe_warning_first_ok, in promptForRealDeviceWipe() 761 AlertDialog.Builder builder = new AlertDialog.Builder(activity); in promptForRealDeviceWipe() 763 builder.setMessage(R.string.wipe_warning_second_full); in promptForRealDeviceWipe() 765 builder.setMessage(R.string.wipe_warning_second); in promptForRealDeviceWipe() [all …]
|
/development/samples/Support4Demos/src/com/example/android/supportv4/accessibility/ |
D | AccessibilityManagerSupportActivity.java | 111 StringBuilder builder = new StringBuilder(); in updateAccessibilityStateView() local 124 builder.append(serviceDescription); in updateAccessibilityStateView() 126 mAccessibilityStateView.setText(builder); in updateAccessibilityStateView()
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
D | ContactOperations.java | 108 ContentProviderOperation.Builder builder = in ContactOperations() local 110 mBatchOperation.add(builder.build()); in ContactOperations() 366 ContentProviderOperation.Builder builder = in addInsertOp() local 368 builder.withValues(mValues); in addInsertOp() 370 builder.withValueBackReference(Data.RAW_CONTACT_ID, mBackReference); in addInsertOp() 373 mBatchOperation.add(builder.build()); in addInsertOp() 380 ContentProviderOperation.Builder builder = in addUpdateOp() local 383 mBatchOperation.add(builder.build()); in addUpdateOp()
|
/development/samples/Wiktionary/src/com/example/android/wiktionary/ |
D | LookupActivity.java | 205 AlertDialog.Builder builder = new AlertDialog.Builder(this); in showAbout() local 206 builder.setIcon(R.drawable.app_icon); in showAbout() 207 builder.setTitle(R.string.app_name); in showAbout() 208 builder.setView(messageView); in showAbout() 209 builder.create(); in showAbout() 210 builder.show(); in showAbout()
|
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
D | NewsReaderActivity.java | 242 AlertDialog.Builder builder = new AlertDialog.Builder(this); in onClick() local 243 builder.setTitle("Select a Category"); in onClick() 244 builder.setItems(CATEGORIES, new DialogInterface.OnClickListener() { in onClick() 250 AlertDialog d = builder.create(); in onClick()
|
/development/apps/GestureBuilder/src/com/android/gesture/builder/ |
D | GestureBuilderActivity.java | 17 package com.android.gesture.builder; 245 AlertDialog.Builder builder = new AlertDialog.Builder(this); in createRenameDialog() local 246 builder.setIcon(0); in createRenameDialog() 247 builder.setTitle(getString(R.string.gestures_rename_title)); in createRenameDialog() 248 builder.setCancelable(true); in createRenameDialog() 249 builder.setOnCancelListener(new Dialog.OnCancelListener() { in createRenameDialog() 254 builder.setNegativeButton(getString(R.string.cancel_action), in createRenameDialog() 261 builder.setPositiveButton(getString(R.string.rename_action), in createRenameDialog() 268 builder.setView(layout); in createRenameDialog() 269 return builder.create(); in createRenameDialog()
|
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
D | DictionaryDatabase.java | 140 SQLiteQueryBuilder builder = new SQLiteQueryBuilder(); in query() local 141 builder.setTables(FTS_VIRTUAL_TABLE); in query() 142 builder.setProjectionMap(mColumnMap); in query() 144 Cursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(), in query()
|