Home
last modified time | relevance | path

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

12345678910>>...16

/development/samples/ApiDemos/src/com/example/android/mmslib/
DContentType.java84 sSupportedContentTypes.add(TEXT_PLAIN);
85 sSupportedContentTypes.add(TEXT_HTML);
86 sSupportedContentTypes.add(TEXT_VCALENDAR);
87 sSupportedContentTypes.add(TEXT_VCARD);
89 sSupportedContentTypes.add(IMAGE_JPEG);
90 sSupportedContentTypes.add(IMAGE_GIF);
91 sSupportedContentTypes.add(IMAGE_WBMP);
92 sSupportedContentTypes.add(IMAGE_PNG);
93 sSupportedContentTypes.add(IMAGE_JPG);
94 sSupportedContentTypes.add(IMAGE_X_MS_BMP);
[all …]
/development/samples/MultiClientInputMethod/src/com/example/android/multiclientinputmethod/
DInputMethodDebug.java51 joiner.add("STATE_UNSPECIFIED"); in softInputModeToString()
54 joiner.add("STATE_UNCHANGED"); in softInputModeToString()
57 joiner.add("STATE_HIDDEN"); in softInputModeToString()
60 joiner.add("STATE_ALWAYS_HIDDEN"); in softInputModeToString()
63 joiner.add("STATE_VISIBLE"); in softInputModeToString()
66 joiner.add("STATE_ALWAYS_VISIBLE"); in softInputModeToString()
69 joiner.add("STATE_UNKNOWN(" + state + ")"); in softInputModeToString()
75 joiner.add("ADJUST_UNSPECIFIED"); in softInputModeToString()
78 joiner.add("ADJUST_RESIZE"); in softInputModeToString()
81 joiner.add("ADJUST_PAN"); in softInputModeToString()
[all …]
/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/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/mock/
DMockDatabase.java152 mParticipants.add("Bob Smith"); in BigPictureStyleSocialAppData()
235 mIndividualEmailSummary.add("Jane Faab - Launch Party is here..."); in InboxStyleEmailAppData()
236 mIndividualEmailSummary.add("Jay Walker - There's a turtle on the server!"); in InboxStyleEmailAppData()
237 mIndividualEmailSummary.add("Alex Chang - Check this out..."); in InboxStyleEmailAppData()
238 mIndividualEmailSummary.add("Jane Johns - Check in code?"); in InboxStyleEmailAppData()
239 mIndividualEmailSummary.add("John Smith - Movies later...."); in InboxStyleEmailAppData()
244 mParticipants.add("Jane Faab"); in InboxStyleEmailAppData()
245 mParticipants.add("Jay Walker"); in InboxStyleEmailAppData()
246 mParticipants.add("Alex Chang"); in InboxStyleEmailAppData()
247 mParticipants.add("Jane Johns"); in InboxStyleEmailAppData()
[all …]
/development/samples/browseable/WearNotifications/Application/src/com.example.android.wearable.wear.wearnotifications/mock/
DMockDatabase.java152 mParticipants.add("Bob Smith"); in BigPictureStyleSocialAppData()
235 mIndividualEmailSummary.add("Jane Faab - Launch Party is here..."); in InboxStyleEmailAppData()
236 mIndividualEmailSummary.add("Jay Walker - There's a turtle on the server!"); in InboxStyleEmailAppData()
237 mIndividualEmailSummary.add("Alex Chang - Check this out..."); in InboxStyleEmailAppData()
238 mIndividualEmailSummary.add("Jane Johns - Check in code?"); in InboxStyleEmailAppData()
239 mIndividualEmailSummary.add("John Smith - Movies later...."); in InboxStyleEmailAppData()
244 mParticipants.add("Jane Faab"); in InboxStyleEmailAppData()
245 mParticipants.add("Jay Walker"); in InboxStyleEmailAppData()
246 mParticipants.add("Alex Chang"); in InboxStyleEmailAppData()
247 mParticipants.add("Jane Johns"); in InboxStyleEmailAppData()
[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/IntentPlayground/src/com/example/android/intentplayground/
DFlagUtils.java101 nonUser.add(flag);
104 recentsAndUi.add(flag);
107 newTask.add(flag);
109 clearTask.add(flag);
111 rearrangeTask.add(flag);
113 other.add(flag);
202 flags.add(ActivityFlag.CLEAR_TASK_ON_LAUNCH);
205 flags.add(ActivityFlag.ALLOW_TASK_REPARENTING);
209 flags.add(ActivityFlag.LAUNCH_MODE_SINGLE_INSTANCE);
212 flags.add(ActivityFlag.LAUNCH_MODE_SINGLE_TASK);
[all …]
/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/MySampleRss/src/com/example/codelab/rssexample/
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()
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()
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/provider/
DTouristAttractions.java56 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/
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/graphics/
DShadowCardStack.java72 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/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/browseable/StorageProvider/src/com.example.android.storageprovider/
DMyCloudProvider.java124 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/
DModule.java179 implicitModulePathDependencies.add(moduleRoot); in findSourceFilesAndImplicitDependencies()
193 sourceFiles.add(src); in findSourceFilesAndImplicitDependencies()
214 explicitModuleNameDependencies.add(dependency); in parseDirectDependencies()
295 allDependencies.add(child.getDir().getCanonicalPath()); in buildDependentModules()
298 allDependentImlFiles.add(child.getImlFile()); in buildDependentModules()
311 allDependencies.add(child.getDir().getCanonicalPath()); in buildDependentModules()
314 allDependentImlFiles.add(child.getImlFile()); in buildDependentModules()
385 .add("name", getName()) in toString()
386 .add("allDependencies", allDependencies) in toString()
387 .add("iml files", allDependentImlFiles).add("imlFile", imlFile) in toString()
[all …]
/development/samples/browseable/GridViewPager/src/com.example.android.wearable.gridviewpager/
DSampleGridPagerAdapter.java60 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/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()
/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/apps/SdkSetup/
DCleanSpec.mk47 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/priv-app/SdkSetup)
48 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/priv-app/SdkSetup)
/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");

12345678910>>...16