Home
last modified time | relevance | path

Searched refs:add (Results 1 – 25 of 230) sorted by relevance

12345678910

/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
DNonsenseGenerator.java114 words.add(pickOneOf("today", "yesterday", "this afternoon", "this morning", in generateTimeClause()
118 words.add(pickOneOf("this", "last")); in generateTimeClause()
119 words.add(pickOneOf("Monday", "Tuesday", "Wednesday", "Thursday")); in generateTimeClause()
120 words.add(pickOneOf("morning", "afternoon", "evening")); in generateTimeClause()
126 words.add(pickOneOf("a", "the")); in generateAgent()
129 words.add(pickOneOf(ADJECTIVES)); in generateAgent()
131 words.add(pickOneOf(THINGS)); in generateAgent()
135 words.add(pickOneOf(isHeadline ? VERBS_PRESENT : VERBS_PAST)); in generatePredicate()
137 words.add(pickOneOf("a", "the")); in generatePredicate()
139 words.add(pickOneOf(ADJECTIVES)); in generatePredicate()
[all …]
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/
DWeatherDataProvider.java70 sData.add(new WeatherDataPoint("Monday", 13)); in onCreate()
71 sData.add(new WeatherDataPoint("Tuesday", 1)); in onCreate()
72 sData.add(new WeatherDataPoint("Wednesday", 7)); in onCreate()
73 sData.add(new WeatherDataPoint("Thursday", 4)); in onCreate()
74 sData.add(new WeatherDataPoint("Friday", 22)); in onCreate()
75 sData.add(new WeatherDataPoint("Saturday", -10)); in onCreate()
76 sData.add(new WeatherDataPoint("Sunday", -13)); in onCreate()
77 sData.add(new WeatherDataPoint("Monday", 8)); in onCreate()
78 sData.add(new WeatherDataPoint("Tuesday", 11)); in onCreate()
79 sData.add(new WeatherDataPoint("Wednesday", -1)); in onCreate()
[all …]
/development/samples/VoiceRecognitionService/src/com/example/android/voicerecognitionservice/
DVoiceRecognitionService.java58 results.add("a"); in onStartListening()
59 results.add("b"); in onStartListening()
60 results.add("c"); in onStartListening()
62 results.add("1"); in onStartListening()
63 results.add("2"); in onStartListening()
64 results.add("3"); in onStartListening()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLinearLayout8.java60 menu.add(0, VERTICAL_ID, 0, R.string.linear_layout_8_vertical); in onCreateOptionsMenu()
61 menu.add(0, HORIZONTAL_ID, 0, R.string.linear_layout_8_horizontal); in onCreateOptionsMenu()
62 menu.add(0, TOP_ID, 0, R.string.linear_layout_8_top); in onCreateOptionsMenu()
63 menu.add(0, MIDDLE_ID, 0, R.string.linear_layout_8_middle); in onCreateOptionsMenu()
64 menu.add(0, BOTTOM_ID, 0, R.string.linear_layout_8_bottom); in onCreateOptionsMenu()
65 menu.add(0, LEFT_ID, 0, R.string.linear_layout_8_left); in onCreateOptionsMenu()
66 menu.add(0, CENTER_ID, 0, R.string.linear_layout_8_center); in onCreateOptionsMenu()
67 menu.add(0, RIGHT_ID, 0, R.string.linear_layout_8_right); in onCreateOptionsMenu()
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DExtendedWikiHelper.java163 sFormatRules.add(new FormatRule("^=+(.+?)=+", "</ol><h2>$1</h2><ol>", in sFormatRules.add()
167 sFormatRules.add(new FormatRule("^#+\\*?:(.+?)$", "<blockquote>$1</blockquote>", in sFormatRules.add()
169 sFormatRules.add(new FormatRule("^#+:?\\*(.+?)$", "<ul><li>$1</li></ul>", in sFormatRules.add()
171 sFormatRules.add(new FormatRule("^#+(.+?)$", "<li>$1</li>", in sFormatRules.add()
175 sFormatRules.add(new FormatRule("\\[\\[([^:\\|\\]]+)\\]\\]", in sFormatRules.add()
177 sFormatRules.add(new FormatRule("\\[\\[([^:\\|\\]]+)\\|([^\\]]+)\\]\\]", in sFormatRules.add()
181 sFormatRules.add(new FormatRule("'''(.+?)'''", "<b>$1</b>")); in sFormatRules.add()
182 sFormatRules.add(new FormatRule("([^'])''([^'].*?[^'])''([^'])", "$1<i>$2</i>$3")); in sFormatRules.add()
185 sFormatRules.add(new FormatRule("(\\{+.+?\\}+|\\[\\[[^:]+:[^\\\\|\\]]+\\]\\]|" + in sFormatRules.add()
187 sFormatRules.add(new FormatRule("\\[\\[([^\\|\\]]+\\|)?(.+?)\\]\\]", "$2", in sFormatRules.add()
[all …]
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DMyRssReader.java65 menu.add(0, 0, "Start RSS Service", null); in onCreateOptionsMenu()
66 menu.add(0, 1, "Stop RSS Service", null); in onCreateOptionsMenu()
67 menu.add(0, 2, "Add New Feed", null); in onCreateOptionsMenu()
68 menu.add(0, 3, "Delete Feed", null); in onCreateOptionsMenu()
69 menu.add(0, 4, "Update All Feeds", null); in onCreateOptionsMenu()
DMyRssReader3.java82 menu.add(0, 0, R.string.menu_option_start, null); in onCreateOptionsMenu()
83 menu.add(0, 1, R.string.menu_option_stop, null); in onCreateOptionsMenu()
84 menu.add(0, 2, R.string.menu_option_add, null); in onCreateOptionsMenu()
85 menu.add(0, 3, R.string.menu_option_delete, null); in onCreateOptionsMenu()
86 menu.add(0, 4, R.string.menu_option_update, null); in onCreateOptionsMenu()
178 list.add(new RssItem("http://www.sciam.com/xml/sciam.xml", "Scientific American")); in initializeList()
179 …list.add(new RssItem("http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml", "… in initializeList()
180 list.add(new RssItem("http://feeds.theonion.com/theonion/daily", "The Onion")); in initializeList()
181 list.add(new RssItem("http://feeds.engadget.com/weblogsinc/engadget", "Engadget")); in initializeList()
DMyRssReader2.java99 menu.add(0, 0, "Start RSS Service", null); in onCreateOptionsMenu()
100 menu.add(0, 1, "Stop RSS Service", null); in onCreateOptionsMenu()
101 menu.add(0, 2, "Add New Feed", null); in onCreateOptionsMenu()
102 menu.add(0, 3, "Delete Feed", null); in onCreateOptionsMenu()
103 menu.add(0, 4, "Update All Feeds", null); in onCreateOptionsMenu()
174 list.add(new RssItem("http://www.sciam.com/xml/sciam.xml", "Scientific American")); in initializeList()
175 …list.add(new RssItem("http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml", "… in initializeList()
176 list.add(new RssItem("http://www.theonion.com/content/feeds/daily.", "The Onion")); in initializeList()
177 list.add(new RssItem("http://feeds.engadget.com/weblogsinc/engadget", "Engadget")); in initializeList()
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarLander.java68 menu.add(0, MENU_START, 0, R.string.menu_start); in onCreateOptionsMenu()
69 menu.add(0, MENU_STOP, 0, R.string.menu_stop); in onCreateOptionsMenu()
70 menu.add(0, MENU_PAUSE, 0, R.string.menu_pause); in onCreateOptionsMenu()
71 menu.add(0, MENU_RESUME, 0, R.string.menu_resume); in onCreateOptionsMenu()
72 menu.add(0, MENU_EASY, 0, R.string.menu_easy); in onCreateOptionsMenu()
73 menu.add(0, MENU_MEDIUM, 0, R.string.menu_medium); in onCreateOptionsMenu()
74 menu.add(0, MENU_HARD, 0, R.string.menu_hard); in onCreateOptionsMenu()
/development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/
DAnimatorPath.java41 mPoints.add(PathPoint.moveTo(x, y)); in moveTo()
49 mPoints.add(PathPoint.lineTo(x, y)); in lineTo()
58 mPoints.add(PathPoint.curveTo(c0X, c0Y, c1X, c1Y, x, y)); in curveTo()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/
DVoicemailFilterFactory.java99 clauses.add(getEqualityClause(Voicemails.IS_READ, fieldMatch.isRead() ? "1" : "0"));
102 clauses.add(getEqualityClause(Voicemails.NUMBER, fieldMatch.getNumber()));
105 clauses.add(getEqualityClause(Voicemails.SOURCE_PACKAGE,
109 clauses.add(getEqualityClause(Voicemails.SOURCE_DATA, fieldMatch.getSourceData()));
112 clauses.add(getEqualityClause(Voicemails.DURATION,
116 clauses.add(getEqualityClause(Voicemails.DATE,
/development/samples/ApiDemos/src/com/example/android/apis/app/
DFragmentMenu.java60 ft.add(mFragment1, "f1"); in onCreate()
65 ft.add(mFragment2, "f2"); in onCreate()
111 menu.add("Menu 1a").setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); in onCreateOptionsMenu()
112 menu.add("Menu 1b").setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); in onCreateOptionsMenu()
129 menu.add("Menu 2").setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); in onCreateOptionsMenu()
DSearchInvoke.java121 item = menu.add( 0, 0, 0, "(Search Key)"); in onPrepareOptionsMenu()
125 item = menu.add( 0, 0, 0, "Search"); in onPrepareOptionsMenu()
130 item = menu.add( 0, 0, 0, "(Type-To-Search)"); in onPrepareOptionsMenu()
134 item = menu.add( 0, 0, 0, "(Disabled)"); in onPrepareOptionsMenu()
138 item = menu.add(0, 1, 0, "Clear History"); in onPrepareOptionsMenu()
DActionBarMechanics.java51 menu.add("Normal item"); in onCreateOptionsMenu()
53 MenuItem actionItem = menu.add("Action Button"); in onCreateOptionsMenu()
/development/samples/SimpleJNI/src/com/example/android/simplejni/
DSimpleJNI.java29 int sum = Native.add(2, 3); in onCreate()
42 static native int add(int a, int b); in add() method in Native
/development/ndk/samples/two-libs/src/com/example/twolibs/
DTwoLibs.java39 int z = add(x, y); in onCreate()
45 public native int add(int x, int y); in add() method in TwoLibs
/development/samples/ContactManager/src/com/example/android/contactmanager/
DContactAdder.java92 mContactPhoneTypes.add(ContactsContract.CommonDataKinds.Phone.TYPE_HOME); in onCreate()
93 mContactPhoneTypes.add(ContactsContract.CommonDataKinds.Phone.TYPE_WORK); in onCreate()
94 mContactPhoneTypes.add(ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE); in onCreate()
95 mContactPhoneTypes.add(ContactsContract.CommonDataKinds.Phone.TYPE_OTHER); in onCreate()
97 mContactEmailTypes.add(ContactsContract.CommonDataKinds.Email.TYPE_HOME); in onCreate()
98 mContactEmailTypes.add(ContactsContract.CommonDataKinds.Email.TYPE_WORK); in onCreate()
99 mContactEmailTypes.add(ContactsContract.CommonDataKinds.Email.TYPE_MOBILE); in onCreate()
100 mContactEmailTypes.add(ContactsContract.CommonDataKinds.Email.TYPE_OTHER); in onCreate()
114 adapter.add(ContactsContract.CommonDataKinds.Phone.getTypeLabel( in onCreate()
127 adapter.add(ContactsContract.CommonDataKinds.Email.getTypeLabel( in onCreate()
[all …]
/development/tools/idegen/src/com/android/idegen/
DStandardModule.java88 this.directDependencies.add(dependency); in StandardModule()
166 builder.add(new File(rootDir, dir)); in parseSourceFiles()
169 builder.add(new File(rootDir, value)); in parseSourceFiles()
185 directDependencies.add(dependency); in parseDirectDependencies()
210 .add("super", super.toString()) in toString()
211 .add("makeFileParser", makeFileParser) in toString()
212 .add("directDependencies", Iterables.toString(directDependencies)) in toString()
DModule.java130 allDependentImlFiles.add(child.getImlFile()); in buildDependentModules()
145 this.allDependencies.add(dependency); in addAllDependencies()
191 .add("name", getName()) in toString()
192 .add("allDependencies", allDependencies) in toString()
193 .add("iml files", allDependentImlFiles) in toString()
194 .add("imlFile", imlFile) in toString()
DDirectorySearch.java36 SOURCE_DIRS.add("src");
37 SOURCE_DIRS.add("java");
100 builder.add(child); in findSourceDirs()
133 builder.add(child); in findExcludeDirs()
/development/apps/OBJViewer/com/android/objviewer/
DOBJViewer.java272 objectFiles.add("world.gles");
273 objectFiles.add("al.gles");
274 objectFiles.add("apple.gles");
275 objectFiles.add("dolphins.gles");
276 objectFiles.add("f16.gles");
277 objectFiles.add("flowers.gles");
278 objectFiles.add("porsche.gles");
279 objectFiles.add("rosevase.gles");
280 objectFiles.add("shuttle.gles");
281 objectFiles.add("soccerball.gles");
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentMenuSupport.java62 ft.add(mFragment1, "f1"); in onCreate()
67 ft.add(mFragment2, "f2"); in onCreate()
114 item = menu.add("Menu 1a"); in onCreateOptionsMenu()
116 item = menu.add("Menu 1b"); in onCreateOptionsMenu()
135 item = menu.add("Menu 2"); in onCreateOptionsMenu()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyEventQueue.java41 super.add(e); in addLast()
52 super.add(new MonkeyThrottleEvent(throttle)); in addLast()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
DBatchOperation.java52 public void add(ContentProviderOperation cpo) { in add() method in BatchOperation
53 mOperations.add(cpo); in add()
68 resultUris.add(results[i].uri); in execute()
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
DSimpleMenu.java57 public MenuItem add(CharSequence title) { in add() method in SimpleMenu
61 public MenuItem add(int titleRes) { in add() method in SimpleMenu
65 public MenuItem add(int groupId, int itemId, int order, CharSequence title) { in add() method in SimpleMenu
69 public MenuItem add(int groupId, int itemId, int order, int titleRes) { in add() method in SimpleMenu
78 mItems.add(findInsertIndex(mItems, order), item); in addInternal()

12345678910