/development/tools/winscope/src/test/unit/ |
D | traces_builder.ts | 27 const builder = this.getOrCreateTraceBuilder(type); constant 28 builder.setEntries(entries); 33 const builder = this.getOrCreateTraceBuilder(type); constant 34 builder.setTimestamps(timestamps); 39 const builder = this.getOrCreateTraceBuilder(type); constant 40 builder.setFrameMap(frameMap); 46 this.traceBuilders.forEach((builder) => { 47 traces.addTrace(builder.build()); 53 let builder = this.traceBuilders.get(type); 54 if (!builder) { [all …]
|
D | trace_builder.ts | 114 const builder = new ParserBuilder<T>().setType(this.type); constant 117 builder.setTimestamps(this.timestamps); 121 builder.setEntries(this.entries); 125 builder.setCustomQueryResult(queryType, result as any); 128 return builder.build();
|
/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/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/ |
D | NotificationPresets.java | 71 NotificationCompat.Builder builder, NotificationCompat.WearableExtender wearableOptions, in applyBasicOptions() argument 73 builder.setContentTitle(options.titlePreset) in applyBasicOptions() 78 options.actionsPreset.apply(context, builder, wearableOptions); in applyBasicOptions() 79 options.priorityPreset.apply(builder, wearableOptions); in applyBasicOptions() 81 builder.setLargeIcon(BitmapFactory.decodeResource( in applyBasicOptions() 85 builder.setLocalOnly(true); in applyBasicOptions() 88 builder.setContentIntent(NotificationUtil.getExamplePendingIntent(context, in applyBasicOptions() 92 builder.setVibrate(new long[] {0, 100, 50, 100} ); in applyBasicOptions() 94 return builder; in applyBasicOptions() 105 NotificationCompat.Builder builder = new NotificationCompat.Builder(context); in buildNotifications() local [all …]
|
D | ActionsPresets.java | 45 public void apply(Context context, NotificationCompat.Builder builder, in apply() argument 56 public void apply(Context context, NotificationCompat.Builder builder, in apply() argument 58 builder.addAction(R.drawable.ic_full_action, in apply() 72 public void apply(Context context, NotificationCompat.Builder builder, in apply() argument 74 builder.addAction(R.drawable.ic_full_action, in apply() 88 public void apply(Context context, NotificationCompat.Builder builder, in apply() argument 100 builder.addAction(action); in apply() 110 public void apply(Context context, NotificationCompat.Builder builder, in apply() argument 134 public void apply(Context context, NotificationCompat.Builder builder, in apply() argument 142 builder.addAction(phoneAction); in apply()
|
/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/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
D | RecipeService.java | 73 NotificationCompat.Builder builder = new NotificationCompat.Builder(this); in createNotification() local 74 builder.setStyle(style); in createNotification() 75 notificationPages.add(builder.build()); in createNotification() 78 NotificationCompat.Builder builder = new NotificationCompat.Builder(this); in createNotification() local 84 builder.setLargeIcon(recipeImage); in createNotification() 86 builder.setContentTitle(mRecipe.titleText); in createNotification() 87 builder.setContentText(mRecipe.summaryText); in createNotification() 88 builder.setSmallIcon(R.mipmap.ic_notification_recipe); in createNotification() 90 Notification notification = builder in createNotification()
|
/development/tools/winscope/src/trace/tree_node/ |
D | property_tree_builder_from_proto_test.ts | 22 let builder: PropertyTreeBuilderFromProto; variable 25 builder = new PropertyTreeBuilderFromProto() 46 const tree = builder.setData(proto).build(); 68 const tree = builder.setData(proto).build(); 90 const tree = builder.setData(proto).build(); 119 const tree = builder.setData(proto).build(); 149 const tree = builder.setData(proto).build(); 184 const tree = builder.setData(proto).build(); 219 const tree = builder.setData(proto).build(); 231 const tree = builder
|
/development/tools/winscope/src/parsers/input_method/ |
D | hierarchy_tree_builder_input_method_test.ts | 26 let builder: HierarchyTreeBuilderInputMethod; variable 32 builder = new HierarchyTreeBuilderInputMethod(); 49 expect(() => builder.setChildren([]).build()).toThrow(noEntryError); 54 expect(() => builder.setRoot(entry).build()).toThrow(noChildrenError); 58 const root = builder.setRoot(entry).setChildren([]).build(); 90 const root = builder.setRoot(entry).setChildren([childProvider]).build();
|
/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/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()
|
/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/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/InlineFillService/src/com/example/android/inlinefillservice/ |
D | InlineRequestHelper.java | 84 Dataset.Builder builder = in createInlineActionDataset() local 89 builder.setValue(fieldId, null); in createInlineActionDataset() 91 return builder.build(); in createInlineActionDataset() 109 Content.Builder builder = InlineSuggestionUi.newContentBuilder(attribution); in createSlice() local 111 builder.setTitle(title); in createSlice() 114 builder.setSubtitle(subtitle); in createSlice() 117 builder.setStartIcon(startIcon); in createSlice() 120 builder.setEndIcon(endIcon); in createSlice() 122 return builder.build().getSlice(); in createSlice()
|
/development/samples/ToyVpn/src/com/example/android/toyvpn/ |
D | ToyVpnConnection.java | 308 VpnService.Builder builder = mService.new Builder(); in configure() local 314 builder.setMtu(Short.parseShort(fields[1])); in configure() 317 builder.addAddress(fields[1], Integer.parseInt(fields[2])); in configure() 320 builder.addRoute(fields[1], Integer.parseInt(fields[2])); in configure() 323 builder.addDnsServer(fields[1]); in configure() 326 builder.addSearchDomain(fields[1]); in configure() 339 builder.addAllowedApplication(packageName); in configure() 341 builder.addDisallowedApplication(packageName); in configure() 347 builder.setSession(mServerName).setConfigureIntent(mConfigureIntent); in configure() 349 builder.setHttpProxy(ProxyInfo.buildDirectProxy(mProxyHostName, mProxyHostPort)); in configure() [all …]
|
/development/tools/idegen/src/com/android/idegen/ |
D | DirectorySearch.java | 143 ImmutableList.Builder<File> builder = ImmutableList.builder(); in findSourceDirs() local 168 builder.add(child); in findSourceDirs() 171 builder.addAll(filteredDirs); in findSourceDirs() 176 return builder.build(); in findSourceDirs() 187 ImmutableList.Builder<File> builder = ImmutableList.builder(); in findExcludeDirs() local 201 builder.add(child); in findExcludeDirs() 207 return builder.build(); in findExcludeDirs()
|
/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/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/tools/winscope/src/parsers/window_manager/ |
D | hierarchy_tree_builder_wm_test.ts | 26 let builder: HierarchyTreeBuilderWm; variable 32 builder = new HierarchyTreeBuilderWm(); 49 expect(() => builder.setChildren([]).build()).toThrow(noEntryError); 54 expect(() => builder.setRoot(entry).build()).toThrow(noLayersError); 58 const root = builder.setRoot(entry).setChildren([]).build(); 114 const root = builder 199 const root = builder
|
/development/tools/winscope/src/parsers/view_capture/legacy/ |
D | hierarchy_tree_builder_vc_test.ts | 26 let builder: HierarchyTreeBuilderVc; variable 30 builder = new HierarchyTreeBuilderVc(); 35 expect(() => builder.setChildren([]).build()).toThrow(noEntryError); 57 expect(() => builder.setRoot(entry).build()).toThrow(noNodesError); 78 const root = builder.setRoot(entry).setChildren([]).build(); 130 const root = builder.setRoot(entry).setChildren([node1Provider]).build(); 202 const root = builder
|
/development/tools/winscope/src/parsers/view_capture/perfetto/ |
D | hierarchy_tree_builder_vc_test.ts | 26 let builder: HierarchyTreeBuilderVc; variable 98 builder = new HierarchyTreeBuilderVc(); 102 const actualHierarchy = builder 118 const actualHierarchy = builder 145 const actualHierarchy = builder
|
/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/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/apps/ShareTest/src/com/android/sharetest/ |
D | RefinementActivity.kt | 15 val builder: AlertDialog.Builder = AlertDialog.Builder(this) in <lambda>() constant 16 builder in <lambda>() 41 builder.create().show() in <lambda>()
|
/development/samples/browseable/Quiz/Wearable/src/com.example.android.wearable.quiz/ |
D | QuizListenerService.java | 116 Notification.Builder builder = new Notification.Builder(this) in onDataChanged() local 147 builder.extend(wearableOptions); in onDataChanged() 148 Notification notification = builder.build(); in onDataChanged() 180 Notification.Builder builder = new Notification.Builder(this) in onMessageReceived() local 192 builder.setContentText(quizReportText); in onMessageReceived() 195 builder.addAction(R.drawable.ic_launcher, in onMessageReceived() 199 .notify(QUIZ_REPORT_NOTIF_ID, builder.build()); in onMessageReceived() 203 private void appendColored(SpannableStringBuilder builder, String text, int colorResId) { in appendColored() argument 204 builder.append(text).setSpan(new ForegroundColorSpan(getResources().getColor(colorResId)), in appendColored() 205 builder.length() - text.length(), builder.length(), 0); in appendColored()
|