Home
last modified time | relevance | path

Searched refs:builder (Results 1 – 25 of 35) sorted by relevance

12

/development/samples/browseable/BasicNotifications/src/com.example.android.basicnotifications/
DMainActivity.java49 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/
DDbQueryUtils.java63 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/
DAggregatedModule.java96 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()
DDirectorySearch.java104 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()
DStandardModule.java162 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/
DM4.java68 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/
DFiles.java32 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/
DMainActivity.java46 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/
DLogViewer.java69 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()
DAccountsTester.java309 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/
DTypeUtils.java73 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/
DNotificationsActivity.java38 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/
DFeedProvider.java95 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/
DPingService.java34 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/
DNotificationsActivity.java51 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/
DToyVpnService.java297 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/
DExpandableList2.java90 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/
DPurgeableBitmap.java106 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/
DDeviceAdminSample.java228 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/
DAccessibilityManagerSupportActivity.java111 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/
DContactOperations.java108 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/
DLookupActivity.java205 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/
DNewsReaderActivity.java242 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/
DGestureBuilderActivity.java17 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/
DDictionaryDatabase.java140 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()

12