/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
D | NonsenseGenerator.java | 114 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/ |
D | WeatherDataProvider.java | 70 sData.add(new WeatherDataPoint("San Francisco", 13)); in onCreate() 71 sData.add(new WeatherDataPoint("New York", 1)); in onCreate() 72 sData.add(new WeatherDataPoint("Seattle", 7)); in onCreate() 73 sData.add(new WeatherDataPoint("Boston", 4)); in onCreate() 74 sData.add(new WeatherDataPoint("Miami", 22)); in onCreate() 75 sData.add(new WeatherDataPoint("Toronto", -10)); in onCreate() 76 sData.add(new WeatherDataPoint("Calgary", -13)); in onCreate() 77 sData.add(new WeatherDataPoint("Tokyo", 8)); in onCreate() 78 sData.add(new WeatherDataPoint("Kyoto", 11)); in onCreate() 79 sData.add(new WeatherDataPoint("London", -1)); in onCreate() [all …]
|
/development/samples/VoiceRecognitionService/src/com/example/android/voicerecognitionservice/ |
D | VoiceRecognitionService.java | 58 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/ |
D | LinearLayout8.java | 60 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()
|
D | List8.java | 66 Button add = (Button) findViewById(R.id.add); in onCreate() local 67 add.setOnClickListener(new View.OnClickListener() { in onCreate() 128 mPhotos.add(newPhoto); in addPhotos()
|
/development/samples/Wiktionary/src/com/example/android/wiktionary/ |
D | ExtendedWikiHelper.java | 163 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/ |
D | MyRssReader.java | 65 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()
|
D | MyRssReader2.java | 99 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()
|
D | MyRssReader3.java | 82 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()
|
/development/samples/LunarLander/src/com/example/android/lunarlander/ |
D | LunarLander.java | 68 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/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/ |
D | VoicemailFilterFactory.java | 99 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/ |
D | FragmentMenu.java | 60 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()
|
D | SearchInvoke.java | 121 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()
|
D | ActionBarMechanics.java | 51 menu.add("Normal item"); in onCreateOptionsMenu() 53 MenuItem actionItem = menu.add("Action Button"); in onCreateOptionsMenu()
|
D | FragmentContextMenu.java | 44 getFragmentManager().beginTransaction().add(android.R.id.content, content).commit(); in onCreate() 60 menu.add(Menu.NONE, R.id.a_item, Menu.NONE, "Menu A"); in onCreateContextMenu() 61 menu.add(Menu.NONE, R.id.b_item, Menu.NONE, "Menu B"); in onCreateContextMenu()
|
/development/samples/SimpleJNI/src/com/example/android/simplejni/ |
D | SimpleJNI.java | 29 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/ |
D | TwoLibs.java | 39 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/ |
D | ContactAdder.java | 92 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/apps/OBJViewer/com/android/objviewer/ |
D | OBJViewer.java | 272 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/ |
D | FragmentMenuSupport.java | 62 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()
|
D | FragmentContextMenuSupport.java | 44 getSupportFragmentManager().beginTransaction().add( in onCreate() 61 menu.add(Menu.NONE, R.id.a_item, Menu.NONE, "Menu A"); in onCreateContextMenu() 62 menu.add(Menu.NONE, R.id.b_item, Menu.NONE, "Menu B"); in onCreateContextMenu()
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeyEventQueue.java | 41 super.add(e); in addLast() 52 super.add(new MonkeyThrottleEvent(throttle)); in addLast()
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
D | BatchOperation.java | 52 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/ |
D | SimpleMenu.java | 57 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()
|
/development/samples/RSSReader/src/com/example/android/rssreader/ |
D | RssReader.java | 284 mAdapter.add(mItem); in run() 342 menu.add(0, 0, 0, "Slashdot") in onCreateOptionsMenu() 345 menu.add(0, 0, 0, "Google News") in onCreateOptionsMenu() 348 menu.add(0, 0, 0, "News.com") in onCreateOptionsMenu() 351 menu.add(0, 0, 0, "Bad Url") in onCreateOptionsMenu() 354 menu.add(0, 0, 0, "Reset") in onCreateOptionsMenu() 415 strings.add(item.getTitle()); in onSaveInstanceState() 416 strings.add(item.getLink()); in onSaveInstanceState() 417 strings.add(item.getDescription()); in onSaveInstanceState() 450 items.add(new RssItem(strings.get(i), strings.get(i + 1), strings.get(i + 2))); in onRestoreInstanceState()
|