Home
last modified time | relevance | path

Searched refs:to (Results 1 – 25 of 493) sorted by relevance

12345678910>>...20

/frameworks/base/tools/aidl/
DAST.cpp5 WriteModifiers(FILE* to, int mod, int mask) in WriteModifiers() argument
10 fprintf(to, "@Override "); in WriteModifiers()
14 fprintf(to, "public "); in WriteModifiers()
17 fprintf(to, "private "); in WriteModifiers()
20 fprintf(to, "protected "); in WriteModifiers()
24 fprintf(to, "static "); in WriteModifiers()
28 fprintf(to, "final "); in WriteModifiers()
32 fprintf(to, "abstract "); in WriteModifiers()
37 WriteArgumentList(FILE* to, const vector<Expression*>& arguments) in WriteArgumentList() argument
41 arguments[i]->Write(to); in WriteArgumentList()
[all …]
DAST.h31 void WriteModifiers(FILE* to, int mod, int mask);
39 virtual void Write(FILE* to) = 0;
45 virtual void Write(FILE* to) = 0;
54 virtual void Write(FILE* to);
69 void WriteDeclaration(FILE* to);
70 void Write(FILE* to);
83 void Write(FILE* to);
98 virtual void Write(FILE* to);
104 virtual void Write(FILE* to) = 0;
113 virtual void Write(FILE* to);
[all …]
/frameworks/base/libs/utils/
DTextOutput.cpp37 TextOutput& operator<<(TextOutput& to, bool val) in operator <<() argument
39 if (val) to.print("true", 4); in operator <<()
40 else to.print("false", 5); in operator <<()
41 return to; in operator <<()
44 TextOutput& operator<<(TextOutput& to, int val) in operator <<() argument
48 to.print(buf, strlen(buf)); in operator <<()
49 return to; in operator <<()
52 TextOutput& operator<<(TextOutput& to, long val) in operator <<() argument
56 to.print(buf, strlen(buf)); in operator <<()
57 return to; in operator <<()
[all …]
/frameworks/base/include/utils/
DTextOutput.h39 inline Bundle(TextOutput& to) : mTO(to) { to.pushBundle(); } in Bundle() argument
62 TextOutput& endl(TextOutput& to);
63 TextOutput& indent(TextOutput& to);
64 TextOutput& dedent(TextOutput& to);
66 TextOutput& operator<<(TextOutput& to, const char* str);
67 TextOutput& operator<<(TextOutput& to, char); // writes raw character
68 TextOutput& operator<<(TextOutput& to, bool);
69 TextOutput& operator<<(TextOutput& to, int);
70 TextOutput& operator<<(TextOutput& to, long);
71 TextOutput& operator<<(TextOutput& to, unsigned int);
[all …]
/frameworks/base/docs/html/resources/articles/
Dtts.jd1 page.title=Using Text-to-Speech
5 Text-to-Speech (TTS) capability. Also known as "speech synthesis", TTS enables
6 your Android device to "speak" text of different languages.</p>
8 <p>Before we explain how to use the TTS API itself, let's first review a few
9 aspects of the engine that will be important to your TTS-enabled application. We
10 will then show how to make your Android application talk and how to configure
20 <p>The TTS engine needs to know which language to speak, as a word like "Paris",
22 dictionary are language-specific resources that need to be loaded before the
23 engine can start to speak.</p>
27 language-specific resource files. If a user wants to install those resources,
[all …]
Dcan-i-use-this-intent.jd4 <p>Android offers a very powerful and yet easy-to-use message type called
6 You can use intents to turn applications into high-level libraries and
8 applications, for instance, use intents extensively to create shortcuts. </p>
10 <p>While it is nice to be able to make use of a loosely coupled
16 <p>This article describes a technique you can use to find out whether the system
17 contains any application capable of responding to the intent you want to use.
19 to determine whether there's an app that can respond to a specified intent. Your
20 application can pass an intent to the method and then, for example, show or hide
21 user options that the user would normally use to trigger the intent. </p>
26 * respond to an intent with the specified action. If no suitable package is
[all …]
Dindex.jd6 … leaks can cause your application to waste this valuable resource without your knowledge. This art…
11to ensure backwards compatibility. However, sometimes you want to use new features which aren't su…
16to-use message type called an intent. You can use intents to turn applications into high-level lib…
26 …g containers that allow applications to display graphics. This article explains some common pitfal…
31to automatically restart the current activity with a new configuration. However, this can become a…
36 …<dd>A collection of common sense advice to help you ensure that your applications don't break when…
41to perform gestures, such as tapping, dragging, flinging, or sliding, to perform various actions. …
46 …<dd>This article provides an overview of GLSurfaceView, a class that makes it easy to implement 2D…
51 …<dd>Learn how to combine multiple standard UI widgets into a single high-level component, which ca…
56 …<dd>Learn how to optimize application layouts as this article walks you through converting a Linea…
[all …]
Davoiding-memory-leaks.jd6 to 16 MB of heap. It's both a lot of memory for a phone and yet very
7 little for what some developers want to achieve. Even if you do not
9 to let other applications run without getting them killed. The more
11 user to switch between his apps. As part of my job, I ran into memory
13 to the same mistake: keeping a long-lived reference to a
17 but mostly to load and access resources. This is why all the widgets
22 the developer passes to classes and methods that need a <code>Context</code>:</p>
35 <p>This means that views have a reference to the entire activity and
36 therefore to anything your activity is holding onto; usually the entire
38 ("leak" meaning you keep a reference to it thus preventing the GC from
[all …]
Dzipalign.jd7 application enables Android to interact it more efficiently at run time and thus
8 has the potential to make it and the overall system run faster. We strongly
9 encourage you to use <code>zipalign</code> on both new and already published
10 applications and to make the optimized version available &mdash; even if your
12 <code>zipalign</code> helps performance and how to use it to optimize your
16 multiple processes: the installer reads the manifest to handle the
18 reads resources to get the application's name and icon; the system
19 server reads resources for a variety of reasons (e.g. to display that
26 apk), it has to fall back to explicitly reading them &mdash; which is slower and
39 pressure, thus causing the system to thrash around by having to constantly start
[all …]
Dfuture-proofing.jd4 <p>It's important to implement your application so that it will not break as new
7 You can think of these as "anti-patterns" (that is, techniques to avoid) for
13 <p><b>Technique to Avoid, #1: Using Internal APIs</b></p>
17 have chosen to use unsupported or internal APIs. For instance, many
20 fixed in Android 1.5 -- allowed apps to use those APIs without
22 on 1.5. If you've used internal APIs in your apps, you need to update
23 your apps to stop doing so. </p>
25 <p><b>Technique to Avoid, #2: Directly Manipulating Settings</b></p>
28 behavior that we made to Android itself. But we made it because some
36 previously had permission to do so. For instance, apps can no longer
[all …]
/frameworks/base/tools/layoutlib/create/
DREADME.txt8 to perform layout.
14 ./layoutlib_create path/to/android.jar destination.jar
21 as generated by the Android build, right before the classes are converted to a DEX format.
24 - it contains references to native code (which we want to avoid in Eclipse),
25 - some classes need to be overridden, for example all the drawing code that is
27 - some of the classes that need to be changed are final and/or we need access
28 to their private internal state.
33 - filters some packages and removes some that we don't want to end in the output JAR,
36 for Eclipse to perform rendering.
38 The ASM library is used to do the bytecode modification using its visitor pattern API.
[all …]
/frameworks/base/docs/html/guide/basics/
Dbuilding-blocks.jd7 to the degree where you can accurately describe them as a federation of
11 possible (and quite common) to create multiple threads within that process,
12 and it's also possible to create completely separate child processes if you
13 need to. Such cases are pretty uncommon though, because Android tries very
14 hard to make processes transparent to your code.</p>
21 what to do with all the top-level components (specifically activities,
29 can include displaying a UI to the user. It doesn't have to, though - some
31 application's Activities as the entry point to your application. </dd>
35 <dd>A View is an object that knows how to draw itself to the screen.
36 Android user interfaces are comprised of trees of Views. If you want to
[all …]
/frameworks/base/docs/html/guide/appendix/faq/
Dframework.jd2 parent.title=FAQs, Tips, and How-to
12 from one Activity/Service to another?</a></li>
16 there any way for the Service to pass a message back to the Activity?</a></li>
17 <li><a href="#6">How to avoid getting the Application not
31 in your manifest file, to explicitly place a component (Activity/Service) in
45 separate pool of transaction threads in each process to dispatch all
47 long-running code, to avoid blocking the main UI thread.</p>
56 <p>It depends on the type of data that you want to share:</p>
62 needs to persist use the
72 <p>The android.app.Application is a base class for those who need to
[all …]
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dactivity_task_design.jd11 <li>In addition to writing your own activities, you are free to re-use activities from many other a…
12 <li>You can enable activities in your application to be started from intents in other applications.…
14 …In a couple of cases you might need to ensure the right thing happens by setting a string or flag.…
39 <li><a href=#activity_launching_tip>Consider how to launch your activities</a></li>
40 <li><a href=#activities_added_to_task_tip>Allow activities to add to current task</a></li>
43 … <li><a href=#taking_over_back_key>Don't take over BACK key unless you absolutely need to</a></li>
59 framework, from a high-level, user-centric perspective useful to
68 The document also highlights design decisions that are available to you
82 Be sure to look at the <a href="#design_tips">Design Tips</a> section
83 for guidelines, tips, and things to avoid. This document is a
[all …]
/frameworks/base/media/libstagefright/codecs/amrwb/src/
Dpvamrwbdecoder_mem_funcs.h58 #define pv_memset(to, c, n) memset(to, c, n) argument
61 #define pv_memcpy(to, from, n) memcpy(to, from, n) argument
62 #define pv_memmove(to, from, n) memmove(to, from, n) argument
/frameworks/base/media/libstagefright/codecs/aacdec/
Daac_mem_funcs.h41 #define pv_memset(to, c, n) memset(to, c, n) argument
44 #define pv_memcpy(to, from, n) memcpy(to, from, n) argument
45 #define pv_memmove(to, from, n) memmove(to, from, n) argument
/frameworks/base/media/libstagefright/codecs/mp3dec/src/
Dmp3_mem_funcs.h64 #define pv_memset(to, c, n) memset(to, c, n) argument
67 #define pv_memcpy(to, from, n) memcpy(to, from, n) argument
68 #define pv_memmove(to, from, n) memmove(to, from, n) argument
/frameworks/base/docs/html/resources/faq/
Dframework.jd2 parent.title=FAQs, Tips, and How-to
12 from one Activity/Service to another?</a></li>
16 there any way for the Service to pass a message back to the Activity?</a></li>
17 <li><a href="#6">How to avoid getting the Application not
31 in your manifest file, to explicitly place a component (Activity/Service) in
45 separate pool of transaction threads in each process to dispatch all
47 long-running code, to avoid blocking the main UI thread.</p>
56 <p>It depends on the type of data that you want to share:</p>
62 needs to persist use the
74 This is a class that is designed to have only one instance. It
[all …]
/frameworks/base/docs/html/guide/practices/design/
Dresponsiveness.jd10 <li><a href="#avoiding">How to Avoid ANR</a></li>
19 <p><strong>Figure 1.</strong> An ANR dialog displayed to the user.</p>
22 <p>It's possible to write code that wins every performance test in the world,
23 but still sends users in a fiery rage when they try to use the application.
26 long to process input. </p>
29 responsive for a period of time by displaying a dialog to the user, called the
31 can choose to let the application continue, but the user won't appreciate having
32 to act on this dialog every time he or she uses your application. It's critical
33 to design responsiveness into your application, so that the system never has
34 cause to display an ANR dialog to the user. </p>
[all …]
/frameworks/base/docs/html/guide/webapps/
Dindex.jd6 <p class="img-caption"><strong>Figure 1.</strong> You can make your web content available to
11 <p>There are essentially two ways to deliver an application on Android: as a
14 browser&mdash;there's nothing to install on user devices).</p>
17 the decision to develop a web application easier by providing:</p>
19 <li>Support for viewport properties that allow you to properly size your web application
21 <li>CSS and JavaScript features that allow you to provide different styles and images
25 <p>Thus, your decision to develop a web application for Android can exclude consideration for
26 screen support, because it's already easy to make your web pages look good on all types of screens
29 <p>Another great feature of Android is that you don't have to build your application purely on
32 application layout). Figure 1 visualizes how you can provide access to your web pages from either
[all …]
/frameworks/base/docs/html/sdk/1.1_r1/
Dupgrading.jd26 <p>If you think you may have found a bug, use the issue tracker to report it.</p></li>
33 <p>This document describes how to move your development environment and existing
34 Android applications from an Android 1.0 SDK to the Android 1.1, Release 1 SDK.
40 on mobile devices, you need to install the Android 1.1 SDK and port your existing Android
41 applications to it. The sections below will guide you through the process.</p>
52 and navigate to the <code>/tools</code> directory of your new SDK. Launch the
58 PATH variable to point to the SDK tools directory, then you'll need to update it to
59 point to the new SDK. For example, for a <code>.bashrc</code> or <code>.bash_profile</code> file:
62 <li>If (and only if) you are developing using Ant, you will also need to modify
63 your build.xml properties to point to the new SDK.
[all …]
/frameworks/base/docs/html/sdk/
Dterms.jd11to in this License Agreement as the "SDK" and specifically including the Android system files, pac…
21 …2.1 In order to use the SDK, you must first agree to this License Agreement. You may not use the S…
27 …(A) clicking to accept or agree to this License Agreement, where this option is made available to
36to be bound by this License Agreement on behalf of your employer or other entity, you represent an…
42to the terms of this License Agreement, Google grants you a limited, worldwide, royalty-free, non-…
45to the SDK, including any Intellectual Property Rights that subsist in the SDK. "Intellectual Prop…
49to the extent required by applicable third party licenses, you may not copy (except for backup pur…
55to you and that future versions of the SDK may be incompatible with applications developed on prev…
58 …3.6 Nothing in this License Agreement gives you a right to use any of Google's trade names, tradem…
61 …ts notices (including copyright and trademark notices) that may be affixed to or contained within …
[all …]
Dandroid-1.1.jd27 counterpart to the Android 1.1 production system image, deployable to
34 system to correctly determine whether an application is compatible with
35 the system, prior to installing the application. </p>
38 a value to the <code>android:minSdkVersion</code> attribute.
39 The value of the attribute is an integer corresponding to an API Level
40 identifier. Prior to installing an application, the system checks the value of
42 if the referenced integer is less than or equal to the API Level integer stored
45 <p>If you use the Android 1.1 system image to build an application
48 <code>android:minSdkVersion</code> attribute to "2" in order to specify that your application
65 that users will only be able to install your application if their
[all …]
/frameworks/base/opengl/tests/angeles/
Dlicense-LGPL.txt6 Everyone is permitted to copy and distribute verbatim copies
15 The licenses for most software are designed to take away your
16 freedom to share and change it. By contrast, the GNU General Public
17 Licenses are intended to guarantee your freedom to share and change
18 free software--to make sure the software is free for all its users.
20 This license, the Lesser General Public License, applies to some
22 Free Software Foundation and other authors who decide to use it. You
25 strategy to use in any particular case, based on the explanations below.
27 When we speak of free software, we are referring to freedom of use,
28 not price. Our General Public Licenses are designed to make sure that
[all …]
/frameworks/base/docs/html/guide/topics/security/
Dsecurity.jd32 ad-hoc access to specific pieces of data.</p>
38 application, by default, has permission to perform any operations that would
50 dynamically (at run-time) because it complicates the user experience to the
65 the author of the application. The certificate does <em>not</em> need to be
67 for Android applications to use self-signed certificates. The purpose of
68 certificates in Android is to distinguish application authors. This allows
69 the system to grant or deny applications access to <a
71 permissions</a> and to grant or deny an application's <a
72 href="/guide/topics/manifest/manifest-element.html#uid">request to be given
85 run in the same process, since they need to run as different Linux users.
[all …]

12345678910>>...20