Home
last modified time | relevance | path

Searched refs:fragments (Results 1 – 25 of 74) sorted by relevance

123

/frameworks/base/core/java/android/net/
DNetworkConfig.java66 String fragments[] = init.split(","); in NetworkConfig() local
67 name = fragments[0].trim().toLowerCase(Locale.ROOT); in NetworkConfig()
68 type = Integer.parseInt(fragments[1]); in NetworkConfig()
69 radio = Integer.parseInt(fragments[2]); in NetworkConfig()
70 priority = Integer.parseInt(fragments[3]); in NetworkConfig()
71 restoreTime = Integer.parseInt(fragments[4]); in NetworkConfig()
72 dependencyMet = Boolean.parseBoolean(fragments[5]); in NetworkConfig()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmSmsTest.java253 ArrayList<String> fragments = android.telephony.SmsMessage.fragmentText(text); in testFragmentText() local
254 assertEquals(1, fragments.size()); in testFragmentText()
268 ArrayList<String> fragments = android.telephony.SmsMessage.fragmentText(text); in testFragmentText() local
269 assertEquals(2, fragments.size()); in testFragmentText()
270 assertEquals(text, fragments.get(0) + fragments.get(1)); in testFragmentText()
271 assertEquals(153, fragments.get(0).length()); in testFragmentText()
272 assertEquals(8, fragments.get(1).length()); in testFragmentText()
295 ArrayList<String> fragments = android.telephony.SmsMessage.fragmentText(text); in testFragmentTurkishText() local
296 assertEquals(1, fragments.size()); in testFragmentTurkishText()
297 assertEquals(text, fragments.get(0)); in testFragmentTurkishText()
[all …]
/frameworks/base/docs/html/training/basics/fragments/
Dfragment-ui.jd17 <li><a href="{@docRoot}guide/components/fragments.html">Fragments</a></li>
35 fragments in different layout configurations to optimize the user experience based on the available
39 for a single-pane user interface. Conversely, you may want to set fragments side-by-side on a
42 <img src="{@docRoot}images/training/basics/fragments-screen-mock.png" alt="" />
43 <p class="img-caption"><strong>Figure 1.</strong> Two fragments, displayed in different
44 configurations for the same activity on different screen sizes. On a large screen, both fragments
45 fit side by side, but on a handset device, only one fragment fits at a time so the fragments must
49 remove, and replace fragments to an activity at runtime in order to create a dynamic experience.</p>
55 <p>Rather than defining the fragments for an activity in the layout file&mdash;as shown in the
58 if you plan to change fragments during the life of the activity.</p>
[all …]
Dindex.jd2 page.tags="fragments", "user interface", "support library"
25 <li><a href="{@docRoot}guide/components/fragments.html">Fragments</a></li>
49 other fragments inside an activity to modify your layout configuration for different screen
53 <p>This class shows you how to create a dynamic user experience with fragments and optimize your
68 fragments.</dd>
Dcreating.jd18 <li><a href="{@docRoot}guide/components/fragments.html">Fragments</a></li>
86 android.app.Activity#onPause()} method is called, any fragments in the activity also receive a call
90 href="{@docRoot}guide/components/fragments.html">Fragments</a> developer guide.</p>
96 <p>While fragments are reusable, modular UI components, each instance of a {@link
102 special activity provided in the Support Library to handle fragments on system versions older than
106 <p>Here is an example layout file that adds two fragments to an activity when the device
117 &lt;fragment android:name="com.example.android.fragments.HeadlinesFragment"
123 &lt;fragment android:name="com.example.android.fragments.ArticleFragment"
160 to swap your fragments in and out during user interaction, you must add the fragment to the activity
Dsupport-lib.jd28 <p>This lesson shows how to set up your app to use the Support Library in order to use fragments
78 <p>When creating an activity that hosts fragments while using the Support Library, you must also
/frameworks/base/docs/html/guide/components/
Dindex.jd18 <a href="http://android-developers.blogspot.com/2011/03/fragments-for-all.html">
20 …sses) so that applications compatible with Android 1.6 or later can use fragments to create tablet…
42 <a href="http://developer.android.com/training/basics/fragments/index.html">
44 <p>This class shows you how to create a dynamic user experience with fragments and optimize
Dfragments.jd12 <li>Add multiple fragments to a screen to avoid switching activities</li>
51 …<li><a href="{@docRoot}training/basics/fragments/index.html">Building a Dynamic UI with Fragments<…
59 {@link android.app.Activity}. You can combine multiple fragments in a single activity to build a
67 fragments in it, and when the activity is destroyed, so are all fragments. However, while an
85 <p>This document describes how to build your application to use fragments, including
86 how fragments can maintain their state when added to the activity's back stack, share
87 events with the activity and other fragments in the activity, contribute to the activity's action
93 <p>Android introduced fragments in Android 3.0 (API level 11), primarily to support more
97 changes to the view hierarchy. By dividing the layout of an activity into fragments, you become able
102 left and another fragment to display an article on the right&mdash;both fragments appear in one
[all …]
/frameworks/base/docs/html/guide/practices/
Dtablets-and-handsets.jd29 <li><a href="{@docRoot}guide/components/fragments.html">Fragments</a></li>
62 optimized user experience on both handsets and tablets, using fragments and the action bar.</p>
79 <li><strong>Build your activity designs based on fragments</strong> that you can reuse in
87 <p>If you haven't used fragments yet, start by reading the <a
88 href="{@docRoot}guide/components/fragments.html">Fragments</a> developer guide.</p>
142 <p>If you want to use fragments in your application <em>and</em> remain compatible with
147 href="{@docRoot}guide/components/fragments.html">fragments</a>, <a
167 layouts with different combinations of fragments, such that you can design "multi-pane" layouts for
173 fragments:</p>
177 <li><em>Multiple fragments, one activity</em>: Use one activity regardless of the device size,
[all …]
/frameworks/support/v4/java/android/support/v4/app/
DFragmentActivity.java130 ArrayList<Fragment> fragments; field in FragmentActivity.NonConfigurationInstances
213 mFragments.restoreAllState(p, nc != null ? nc.fragments : null); in onCreate()
507 ArrayList<Fragment> fragments = mFragments.retainNonConfig(); in onRetainNonConfigurationInstance() local
527 if (fragments == null && !retainLoaders && custom == null) { in onRetainNonConfigurationInstance()
535 nci.fragments = fragments; in onRetainNonConfigurationInstance()
/frameworks/base/docs/html/training/implementing-navigation/
Dtemporal.jd14 <li><a href="#back-fragments">Implement Back Navigation for Fragments</a></li>
53 href="{@docRoot}guide/components/fragments.html">fragments</a>.</li>
175 <h2 id="back-fragments">Implement Back Navigation for Fragments</h2>
177 <p>When using fragments in your app, individual {@link android.app.FragmentTransaction}
180 swapping out fragments, you should ensure that pressing the <em>Back</em> button on a detail
207 fragments, such as the action bar, remember to update the UI when you commit the transaction. You
Dindex.jd15 <li>Understanding of fragments and Android layouts</li>
24 <li><a href="{@docRoot}guide/components/fragments.html">Fragments</a></li>
Dlateral.jd88 fragments as the user navigates to other pages, minimizing memory usage.</dd>
106 // fragments, so use getSupportFragmentManager.
143 // Instances of this class are fragments representing a single
215 depends on how you've constructed your content. But if you're using fragments for each tab with
/frameworks/opt/photoviewer/src/com/android/ex/photo/
DPhotoViewCallbacks.java9 import com.android.ex.photo.fragments.PhotoViewFragment;
DIntents.java25 import com.android.ex.photo.fragments.PhotoViewFragment;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
DCdmaSmsTest.java925 ArrayList<String> fragments = android.telephony.SmsMessage.fragmentText(text1); in testFragmentText() local
926 assertEquals(fragments.size(), 1); in testFragmentText()
961 ArrayList<String> fragments = android.telephony.SmsMessage.fragmentText(text2); in testFragmentText() local
962 assertEquals(3, fragments.size()); in testFragmentText()
967 encodeDecodeAssertEquals(fragments.get(i), header, -1); in testFragmentText()
968 encodeDecodeAssertEquals(fragments.get(i), header2, -1); in testFragmentText()
979 ArrayList<String> fragments = android.telephony.SmsMessage.fragmentText(text3); in testFragmentText() local
980 assertEquals(3, fragments.size()); in testFragmentText()
985 encodeDecodeAssertEquals(fragments.get(i), header, -1); in testFragmentText()
986 encodeDecodeAssertEquals(fragments.get(i), header2, -1); in testFragmentText()
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DPhotoPagerAdapter.java27 import com.android.ex.photo.fragments.PhotoViewFragment;
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
DPhotoBitmapLoader.java27 import com.android.ex.photo.fragments.PhotoViewFragment;
/frameworks/base/docs/html/training/multiscreen/
Dindex.jd2 page.tags="tablet","tv","fragments","support"
18 <a href="http://developer.android.com/guide/components/fragments.html">Fragments</a></li>
/frameworks/base/docs/html-intl/ru/training/multiscreen/
Dindex.jd18 …> (активность) и <a href="http://developer.android.com/guide/components/fragments.html">Fragment</…
/frameworks/base/docs/html-intl/ja/training/multiscreen/
Dindex.jd18 …tml">アクティビティ</a>と<a href="http://developer.android.com/guide/components/fragments.html">フラグメント</a>…
/frameworks/base/docs/html-intl/zh-cn/training/multiscreen/
Dindex.jd18 …ies.html">活动</a>和<a href="http://developer.android.com/guide/components/fragments.html">片段</a>的基本知…
/frameworks/base/docs/html-intl/ko/training/multiscreen/
Dindex.jd18 …html">액티비티</a> 및 <a href="http://developer.android.com/guide/components/fragments.html">프래그먼트</a>에…
/frameworks/base/docs/html/tools/help/
Dsdk-manager.jd53 Android APIs (such as <a href="{@docRoot}guide/components/fragments.html">fragments</a>,
/frameworks/base/docs/html/training/animation/
Dcardflip.jd203 use the two layouts in the fragments that you'll later animate. The following layouts
286 <p> Now, you'll need to display the fragments inside of a parent activity.
289 can add fragments to at runtime:</p>
363 // Replace any fragments currently in the container view with a fragment

123