Home
last modified time | relevance | path

Searched refs:need (Results 1 – 25 of 435) sorted by relevance

12345678910>>...18

/frameworks/base/core/java/com/android/internal/util/
DArrayUtils.java37 public static int idealByteArraySize(int need) { in idealByteArraySize() argument
39 if (need <= (1 << i) - 12) in idealByteArraySize()
42 return need; in idealByteArraySize()
45 public static int idealBooleanArraySize(int need) { in idealBooleanArraySize() argument
46 return idealByteArraySize(need); in idealBooleanArraySize()
49 public static int idealShortArraySize(int need) { in idealShortArraySize() argument
50 return idealByteArraySize(need * 2) / 2; in idealShortArraySize()
53 public static int idealCharArraySize(int need) { in idealCharArraySize() argument
54 return idealByteArraySize(need * 2) / 2; in idealCharArraySize()
57 public static int idealIntArraySize(int need) { in idealIntArraySize() argument
[all …]
/frameworks/support/v4/java/android/support/v4/util/
DContainerHelpers.java24 public static int idealIntArraySize(int need) { in idealIntArraySize() argument
25 return idealByteArraySize(need * 4) / 4; in idealIntArraySize()
28 public static int idealLongArraySize(int need) { in idealLongArraySize() argument
29 return idealByteArraySize(need * 8) / 8; in idealLongArraySize()
32 public static int idealByteArraySize(int need) { in idealByteArraySize() argument
34 if (need <= (1 << i) - 12) in idealByteArraySize()
37 return need; in idealByteArraySize()
/frameworks/base/core/java/android/text/style/
DIconMarginSpan.java61 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight() local
62 if (need > 0) in chooseHeight()
63 fm.descent += need; in chooseHeight()
65 need = ht - (v + fm.bottom - fm.top - istartv); in chooseHeight()
66 if (need > 0) in chooseHeight()
67 fm.bottom += need; in chooseHeight()
DDrawableMarginSpan.java64 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight() local
65 if (need > 0) in chooseHeight()
66 fm.descent += need; in chooseHeight()
68 need = ht - (v + fm.bottom - fm.top - istartv); in chooseHeight()
69 if (need > 0) in chooseHeight()
70 fm.bottom += need; in chooseHeight()
/frameworks/base/docs/html/about/
Dstart.jd7 <p>Everything you need to start developing apps for Android is available here on
12 <p>No two apps are built in the same way, but we've structured the information you need to build an
30 <p>Before you write a single line of code, you need to design the user interface and make it fit
41 <p>Once your design is finalized, all you need are the tools to turn your app ideas into reality.
46 <p>Everything you need to learn about the app framework and developer tools is in the <a
58 types of devices your app supports. Everything you need to get started with this process is
/frameworks/base/docs/html/sdk/installing/
Dbundle.jd6 <p>The ADT Bundle provides everything you need to start developing apps, including
30 need to manually update the ADT preferences.</p>
34 <p>As you continue developing apps, you may need to install additional versions
39 <p>Everything you need to develop Android apps is on this web site, including <a
Dindex.jd23 …ake a note of the name and location in which it saves the SDK on your system&mdash;you will need to
49 <p>Make a note of the name and location of the SDK directory on your system&mdash;you will need to
73 <p>Make a note of the name and location of the SDK directory on your system&mdash;you will need to
90 <li>If you need help installing and configuring Java on your
101 machine, you need to install the <code>ia32-libs</code> package using
/frameworks/ex/common/java/com/android/common/widget/
DGroupingListAdapter.java218 private int idealLongArraySize(int need) { in idealLongArraySize() argument
219 return idealByteArraySize(need * 8) / 8; in idealLongArraySize()
223 private int idealByteArraySize(int need) { in idealByteArraySize() argument
225 if (need <= (1 << i) - 12) in idealByteArraySize()
228 return need; in idealByteArraySize()
/frameworks/av/media/libnbaio/
DNBLog.cpp180 size_t need = entry->mLength + 3; // mEvent, mLength, data[length], mLength in log() local
182 if (written > need) { in log()
183 written = need; in log()
191 if (rear + written == mSize && (need -= written) > 0) { in log()
192 for (i = 0; i < need; ++i) { in log()
195 written += need; in log()
/frameworks/base/docs/html/training/improving-layouts/
Dsmooth-scrolling.jd44 behavior is global to a particular process and means you don’t need to worry about creating your
88 android.widget.Adapter} returns an inflated view for recycling, you still need to look up the
94 Layout, so you can immediately access them without the need to look them up repeatedly. First, you
95 need to create a class to hold your exact set of views. For example:</p>
118 <p>Now you can easily access each view without the need for the look-up, saving valuable processor
/frameworks/base/docs/html/tools/publishing/
Dpublishing_overview.jd62 <p>At a minimum you need to remove {@link android.util.Log} calls and remove the
73 with the Android SDK tools provide everything you need to build and sign a release version of
81 <p>You need to be sure that all application resources such as multimedia files and graphics
85 <p>If your application depends on external servers or services, you need to be sure they
91 will need to get a private key for signing your application, and you may need to get a Maps API
94 library</a>. You will also need to create an icon for your application, and you may want to prepare
140 <p>To fully leverage the marketing and publicity capabilities of Google Play, you need to
196 application for release in the normal way. Then all you need to do is host the
232 the installation of applications from other sources, users need to enable the
233 Unknown sources setting on their devices, and they need to make this
/frameworks/base/docs/html/training/id-auth/
Dauthenticate.jd26 <p>In order to securely access an online service, users need to authenticate to
27 the service&mdash;they need to provide proof of their identity. For an
29 more complicated. Not only does the user need to be authenticated to access the
52 <p>To begin using OAuth2, you need to know a few things about the API you're trying
63 strings that identify your app to the service. You need to obtain these strings
80 <p>To get an auth token you first need to request the
83 token, you'll also need to add the {@link android.Manifest.permission#INTERNET}
102 your auth work in one function, you need to implement it as a series of callbacks. For example:</p>
172 and they need to log in again, or perhaps their stored credentials are incorrect. Maybe the account
252 and spare yourself the need to request an auth token twice.</p>
Dcustom_auth.jd41 <p>The first thing you'll need is a way to get credentials from the user. This
55 <p>Because they need to interact with the {@link android.accounts.AccountManager} system,
63 were only one way to do it, there'd be no need for "custom" account types, after
103 need a class that implements the interfaces that {@link android.accounts.AccountManager} expects.
116 methods that you must override. Second, you need to add an
139 <p>Now that you have an authenticator class, you need a place for it to live.
140 Account authenticators need to be available to multiple applications and work in
/frameworks/base/docs/html/training/in-app-billing/
Dpreparing-iab-app.jd33need to add the library that contains the In-app Billing Version 3 API to your Android project. Yo…
47need this key to establish a trusted connection from your application to the Google Play servers. …
50 …og in. You will need to register for a new developer account, if you have not registered previousl…
59 …lay generated for your application. This is a Base64 string that you will need to include in your …
/frameworks/base/docs/html/training/scheduling/
Dindex.jd37 <li>Apps such as games or movie apps may need to keep the screen turned on.</p>
39 <li>Other applications may not need the screen to remain on, but they may require the CPU
/frameworks/base/docs/html/google/play/licensing/
Dsetting-up.jd34 <p>Before you start adding license verification to your application, you need to set up your Google
41 <p>If you don't already have a publisher account for Google Play, you need to register for one
106 <p>To get started, you need to set up a proper runtime environment on which
118 licensing in your application, you need to set up a runtime environment that
155 not</em> include Google Play, you need to download the Google APIs Add-On
157 the add-on, you need to create an AVD configuration that uses that system image.
211 <p>You do not need to make any changes to your application's
217 the Android 1.5 library, you do not need to make any changes to your
224 runtime environment, there is no need to change your application's build
235 greatly simplify the work that you need to do to add licensing to your
[all …]
/frameworks/wilhelm/tools/mphtogen/
DREADME.txt2 You need to do this after modifying any of the MPH-related files.
/frameworks/support/v7/gridlayout/
DREADME.txt23 To know which attributes need the application namespace, look at
60 …<android.support.v7.widget.Space <=== space widgets also need the full support …
/frameworks/base/docs/html/training/basics/data-storage/
Dindex.jd28 <p>Most Android apps need to save data, even if only to save information about the app state
30 non-trivial apps also need to save user settings, and some apps must manage large
Dshared-preferences.jd51 getSharedPreferences()} &mdash; Use this if you need multiple shared preference files identified
55 {@link android.app.Activity} if you need
57 preference file that belongs to the activity, you don't need to supply a name.</li>
74 <p>Alternatively, if you need just one shared preference file for your activity, you can use the
/frameworks/base/docs/html/guide/topics/providers/
Dcontent-providers.jd66 You don't need to develop your own provider if you don't intend to share your data with
67 other applications. However, you do need your own provider to provide custom search
68 suggestions in your own application. You also need your own provider if you want to copy and
/frameworks/base/docs/html/training/basics/activity-lifecycle/
Dstopping.jd60 instance in system memory when it is stopped, it's possible that you don't need to implement the
63 activity will stop and restart just fine and you might only need to use {@link
117 and is recalled when the activity resumes. You don’t need to re-initialize components that were
121 need to save and restore it.</p>
145 method should essentially clean up all your activity's resources, you'll need to re-instantiate them
146 when the activity restarts. Yet, you also need to instantiate them when your activity is created
189 android.app.Activity#onDestroy()}, there's not much that most apps need to do. This method is your
/frameworks/testing/uiautomator/library/
Dapicheck_msg_current.txt13 you will need approval.
/frameworks/base/docs/html/training/custom-views/
Dcustom-drawing.jd79 <p>So, before you draw anything, you need to create one or more {@link android.graphics.Paint Paint}
115 <p>In order to properly draw your custom view, you need to know what size it is. Complex custom
116 views often need to
125 need to be
126 overridden. If your view doesn't need special control over its size, you only need to override one
163 <p>If you need finer control over your view's layout parameters, implement {@link
/frameworks/base/docs/html/tools/testing/
Dwhat_to_test.jd55 is gone, the device is useless until it is recharged. You need to write your application to
56 minimize battery usage, you need to test its battery performance, and you need to test the

12345678910>>...18