Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/net/
DNetworkConfig.java65 String fragments[] = init.split(","); in NetworkConfig() local
66 name = fragments[0].trim().toLowerCase(Locale.ROOT); in NetworkConfig()
67 type = Integer.parseInt(fragments[1]); in NetworkConfig()
68 radio = Integer.parseInt(fragments[2]); in NetworkConfig()
69 priority = Integer.parseInt(fragments[3]); in NetworkConfig()
70 restoreTime = Integer.parseInt(fragments[4]); in NetworkConfig()
71 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.jd2 page.tags=fragments
19 <li><a href="{@docRoot}guide/components/fragments.html">Fragments</a></li>
37 fragments in different layout configurations to optimize the user experience based on the available
41 for a single-pane user interface. Conversely, you may want to set fragments side-by-side on a
44 <img src="{@docRoot}images/training/basics/fragments-screen-mock.png" alt="" />
45 <p class="img-caption"><strong>Figure 1.</strong> Two fragments, displayed in different
46 configurations for the same activity on different screen sizes. On a large screen, both fragments
47 fit side by side, but on a handset device, only one fragment fits at a time so the fragments must
51 remove, and replace fragments to an activity at runtime in order to create a dynamic experience.</p>
57 <p>Rather than defining the fragments for an activity in the layout file&mdash;as shown in the
[all …]
Dindex.jd2 page.tags=fragments,user interface,support library
26 <li><a href="{@docRoot}guide/components/fragments.html">Fragments</a></li>
50 other fragments inside an activity to modify your layout configuration for different screen
54 <p>This class shows you how to create a dynamic user experience with fragments and optimize your
69 fragments.</dd>
Dcreating.jd2 page.tags=fragments
20 <li><a href="{@docRoot}guide/components/fragments.html">Fragments</a></li>
88 android.app.Activity#onPause()} method is called, any fragments in the activity also receive a call
92 href="{@docRoot}guide/components/fragments.html">Fragments</a> developer guide.</p>
98 <p>While fragments are reusable, modular UI components, each instance of a {@link
104 special activity provided in the Support Library to handle fragments on system versions older than
108 <p>Here is an example layout file that adds two fragments to an activity when the device
119 &lt;fragment android:name="com.example.android.fragments.HeadlinesFragment"
125 &lt;fragment android:name="com.example.android.fragments.ArticleFragment"
162 to swap your fragments in and out during user interaction, you must add the fragment to the activity
Dcommunicating.jd2 page.tags=fragments
20 <li><a href="{@docRoot}guide/components/fragments.html">Fragments</a></li>
/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/base/docs/html/guide/components/
Dindex.jd20 <a href="http://android-developers.blogspot.com/2011/03/fragments-for-all.html">
22 …sses) so that applications compatible with Android 1.6 or later can use fragments to create tablet…
44 <a href="http://developer.android.com/training/basics/fragments/index.html">
46 <p>This class shows you how to create a dynamic user experience with fragments and optimize
Dfragments.jd42 …<li><a href="{@docRoot}training/basics/fragments/index.html">Building a Dynamic UI with Fragments<…
50 {@link android.app.Activity}. You can combine multiple fragments in a single activity to build a
58 fragments in it, and when the activity is destroyed, so are all fragments. However, while an
76 <p>This document describes how to build your application to use fragments, including
77 how fragments can maintain their state when added to the activity's back stack, share
78 events with the activity and other fragments in the activity, contribute to the activity's action
84 <p>Android introduced fragments in Android 3.0 (API level 11), primarily to support more
88 changes to the view hierarchy. By dividing the layout of an activity into fragments, you become able
93 left and another fragment to display an article on the right&mdash;both fragments appear in one
104 your application to support both tablets and handsets, you can reuse your fragments in different
[all …]
/frameworks/support/v4/java/android/support/v4/app/
DFragmentActivity.java123 List<Fragment> fragments; field in FragmentActivity.NonConfigurationInstances
251 mFragments.restoreAllState(p, nc != null ? nc.fragments : null); in onCreate()
467 List<Fragment> fragments = mFragments.retainNonConfig(); in onRetainNonConfigurationInstance() local
470 if (fragments == null && loaders == null && custom == null) { in onRetainNonConfigurationInstance()
476 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;
/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/base/docs/html/design/tv/
Dstyle.jd20 <p>If you are creating an app for browsing and playing content, use the prebuilt fragments in the
36 <li>Use <a href="{@docRoot}guide/components/fragments.html">fragments</a> to create UIs that are
/frameworks/base/docs/html/training/multiscreen/
Dindex.jd2 page.tags="tablet","tv","fragments","support"
19 <a href="http://developer.android.com/guide/components/fragments.html">Fragments</a></li>
/frameworks/base/services/core/java/com/android/server/
DLocationManagerService.java565 String fragments[] = testProviderString.split(","); in loadProvidersLocked() local
566 String name = fragments[0].trim(); in loadProvidersLocked()
571 Boolean.parseBoolean(fragments[1]) /* requiresNetwork */, in loadProvidersLocked()
572 Boolean.parseBoolean(fragments[2]) /* requiresSatellite */, in loadProvidersLocked()
573 Boolean.parseBoolean(fragments[3]) /* requiresCell */, in loadProvidersLocked()
574 Boolean.parseBoolean(fragments[4]) /* hasMonetaryCost */, in loadProvidersLocked()
575 Boolean.parseBoolean(fragments[5]) /* supportsAltitude */, in loadProvidersLocked()
576 Boolean.parseBoolean(fragments[6]) /* supportsSpeed */, in loadProvidersLocked()
577 Boolean.parseBoolean(fragments[7]) /* supportsBearing */, in loadProvidersLocked()
578 Integer.parseInt(fragments[8]) /* powerRequirement */, in loadProvidersLocked()
[all …]
/frameworks/base/docs/html-intl/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/intl/ru/training/multiscreen/
Dindex.jd18 …> (активность) и <a href="http://developer.android.com/guide/components/fragments.html">Fragment</…
/frameworks/base/docs/html-intl/intl/ja/training/multiscreen/
Dindex.jd18 …tml">アクティビティ</a>と<a href="http://developer.android.com/guide/components/fragments.html">フラグメント</a>…
/frameworks/base/docs/html-intl/intl/ko/training/multiscreen/
Dindex.jd18 …html">액티비티</a> 및 <a href="http://developer.android.com/guide/components/fragments.html">프래그먼트</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
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DPhotoPagerAdapter.java28 import com.android.ex.photo.fragments.PhotoViewFragment;
/frameworks/base/docs/html-intl/intl/zh-cn/training/basics/fragments/
Dfragment-ui.jd16 <li><a href="{@docRoot}guide/components/fragments.html"><code>fragment</code></a></li>
35 <img src="{@docRoot}images/training/basics/fragments-screen-mock.png" alt="" />

1234