/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("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/ |
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/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/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()
|
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
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()
|
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()
|
/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/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/provider/ |
D | TouristAttractions.java | 56 add(new Attraction( 66 add(new Attraction( 76 add(new Attraction( 86 add(new Attraction( 96 add(new Attraction( 116 geofenceList.add(new Geofence.Builder() in getGeofenceList()
|
/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/graphics/ |
D | ShadowCardStack.java | 72 expandAnimators.add(expand); in onCreate() 76 towardAnimators.add(toward); in onCreate() 83 moveAwayAnimators.add(rotateAway); in onCreate() 88 moveAwayAnimators.add(slideAway); in onCreate() 92 moveBackAnimators.add(rotateBack); in onCreate() 95 moveBackAnimators.add(slideBack); in onCreate() 99 awayAnimators.add(away); in onCreate() 102 collapseAnimators.add(collapse); in onCreate()
|
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/ |
D | MyCloudProvider.java | 124 row.add(Root.COLUMN_ROOT_ID, ROOT); in queryRoots() 125 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); in queryRoots() 131 row.add(Root.COLUMN_FLAGS, Root.FLAG_SUPPORTS_CREATE | in queryRoots() 136 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.app_name)); in queryRoots() 140 row.add(Root.COLUMN_DOCUMENT_ID, getDocIdForFile(mBaseDir)); in queryRoots() 144 row.add(Root.COLUMN_MIME_TYPES, getChildMimeTypes(mBaseDir)); in queryRoots() 145 row.add(Root.COLUMN_AVAILABLE_BYTES, mBaseDir.getFreeSpace()); in queryRoots() 146 row.add(Root.COLUMN_ICON, R.drawable.ic_launcher); in queryRoots() 180 pending.add(parent); in queryRecentDocuments() 191 lastModifiedFiles.add(file); in queryRecentDocuments() [all …]
|
/development/tools/idegen/src/com/android/idegen/ |
D | Module.java | 178 implicitModulePathDependencies.add(moduleRoot); in findSourceFilesAndImplicitDependencies() 192 sourceFiles.add(src); in findSourceFilesAndImplicitDependencies() 213 explicitModuleNameDependencies.add(dependency); in parseDirectDependencies() 294 allDependencies.add(child.getDir().getCanonicalPath()); in buildDependentModules() 297 allDependentImlFiles.add(child.getImlFile()); in buildDependentModules() 310 allDependencies.add(child.getDir().getCanonicalPath()); in buildDependentModules() 313 allDependentImlFiles.add(child.getImlFile()); in buildDependentModules() 384 .add("name", getName()) in toString() 385 .add("allDependencies", allDependencies) in toString() 386 .add("iml files", allDependentImlFiles).add("imlFile", imlFile) in toString() [all …]
|
/development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/ |
D | AnimatorPath.java | 41 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/browseable/GridViewPager/src/com.example.android.wearable.gridviewpager/ |
D | SampleGridPagerAdapter.java | 60 mRows.add(new Row(cardFragment(R.string.welcome_title, R.string.welcome_text))); in SampleGridPagerAdapter() 61 mRows.add(new Row(cardFragment(R.string.about_title, R.string.about_text))); in SampleGridPagerAdapter() 62 mRows.add(new Row( in SampleGridPagerAdapter() 65 mRows.add(new Row( in SampleGridPagerAdapter() 68 mRows.add(new Row(new CustomFragment())); in SampleGridPagerAdapter() 69 mRows.add(new Row(cardFragment(R.string.dismiss_title, R.string.dismiss_text))); in SampleGridPagerAdapter() 141 add(f); in Row() 145 public void add(Fragment f) { in add() method in SampleGridPagerAdapter.Row 146 columns.add(f); in add()
|
/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/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()
|
/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/browseable/ActionBarCompat-ShareActionProvider/src/com.example.android.actionbarcompat.shareactionprovider/ |
D | MainActivity.java | 200 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_1.jpg")); in getSampleContent() 201 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_1)); in getSampleContent() 202 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_2)); in getSampleContent() 203 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_2.jpg")); in getSampleContent() 204 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_3)); in getSampleContent() 205 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_3.jpg")); in getSampleContent()
|
/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()
|
/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/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/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()
|