Searched refs:to (Results 1 – 25 of 493) sorted by relevance
12345678910>>...20
5 WriteModifiers(FILE* to, int mod, int mask) in WriteModifiers() argument10 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() argument41 arguments[i]->Write(to); in WriteArgumentList()[all …]
31 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 …]
37 TextOutput& operator<<(TextOutput& to, bool val) in operator <<() argument39 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 <<() argument48 to.print(buf, strlen(buf)); in operator <<()49 return to; in operator <<()52 TextOutput& operator<<(TextOutput& to, long val) in operator <<() argument56 to.print(buf, strlen(buf)); in operator <<()57 return to; in operator <<()[all …]
39 inline Bundle(TextOutput& to) : mTO(to) { to.pushBundle(); } in Bundle() argument62 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 character68 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 …]
1 page.title=Using Text-to-Speech5 Text-to-Speech (TTS) capability. Also known as "speech synthesis", TTS enables6 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 few9 aspects of the engine that will be important to your TTS-enabled application. We10 will then show how to make your Android application talk and how to configure20 <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 the23 engine can start to speak.</p>27 language-specific resource files. If a user wants to install those resources,[all …]
4 <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 and8 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 coupled16 <p>This article describes a technique you can use to find out whether the system17 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. Your20 application can pass an intent to the method and then, for example, show or hide21 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 …]
6 … leaks can cause your application to waste this valuable resource without your knowledge. This art…11 …to ensure backwards compatibility. However, sometimes you want to use new features which aren't su…16 …to-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…31 …to 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…41 …to 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 …]
6 to 16 MB of heap. It's both a lot of memory for a phone and yet very7 little for what some developers want to achieve. Even if you do not9 to let other applications run without getting them killed. The more11 user to switch between his apps. As part of my job, I ran into memory13 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 and36 therefore to anything your activity is holding onto; usually the entire38 ("leak" meaning you keep a reference to it thus preventing the GC from[all …]
7 application enables Android to interact it more efficiently at run time and thus8 has the potential to make it and the overall system run faster. We strongly9 encourage you to use <code>zipalign</code> on both new and already published10 applications and to make the optimized version available — even if your12 <code>zipalign</code> helps performance and how to use it to optimize your16 multiple processes: the installer reads the manifest to handle the18 reads resources to get the application's name and icon; the system19 server reads resources for a variety of reasons (e.g. to display that26 apk), it has to fall back to explicitly reading them — which is slower and39 pressure, thus causing the system to thrash around by having to constantly start[all …]
4 <p>It's important to implement your application so that it will not break as new7 You can think of these as "anti-patterns" (that is, techniques to avoid) for13 <p><b>Technique to Avoid, #1: Using Internal APIs</b></p>17 have chosen to use unsupported or internal APIs. For instance, many20 fixed in Android 1.5 -- allowed apps to use those APIs without22 on 1.5. If you've used internal APIs in your apps, you need to update23 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 some36 previously had permission to do so. For instance, apps can no longer[all …]
8 to perform layout.14 ./layoutlib_create path/to/android.jar destination.jar21 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 is27 - some of the classes that need to be changed are final and/or we need access28 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 …]
7 to the degree where you can accurately describe them as a federation of11 possible (and quite common) to create multiple threads within that process,12 and it's also possible to create completely separate child processes if you13 need to. Such cases are pretty uncommon though, because Android tries very14 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 - some31 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 …]
2 parent.title=FAQs, Tips, and How-to12 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 not31 in your manifest file, to explicitly place a component (Activity/Service) in45 separate pool of transaction threads in each process to dispatch all47 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 …]
11 <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 to68 The document also highlights design decisions that are available to you82 Be sure to look at the <a href="#design_tips">Design Tips</a> section83 for guidelines, tips, and things to avoid. This document is a[all …]
58 #define pv_memset(to, c, n) memset(to, c, n) argument61 #define pv_memcpy(to, from, n) memcpy(to, from, n) argument62 #define pv_memmove(to, from, n) memmove(to, from, n) argument
41 #define pv_memset(to, c, n) memset(to, c, n) argument44 #define pv_memcpy(to, from, n) memcpy(to, from, n) argument45 #define pv_memmove(to, from, n) memmove(to, from, n) argument
64 #define pv_memset(to, c, n) memset(to, c, n) argument67 #define pv_memcpy(to, from, n) memcpy(to, from, n) argument68 #define pv_memmove(to, from, n) memmove(to, from, n) argument
2 parent.title=FAQs, Tips, and How-to12 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 not31 in your manifest file, to explicitly place a component (Activity/Service) in45 separate pool of transaction threads in each process to dispatch all47 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 …]
10 <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 the31 can choose to let the application continue, but the user won't appreciate having32 to act on this dialog every time he or she uses your application. It's critical33 to design responsiveness into your application, so that the system never has34 cause to display an ANR dialog to the user. </p>[all …]
6 <p class="img-caption"><strong>Figure 1.</strong> You can make your web content available to11 <p>There are essentially two ways to deliver an application on Android: as a14 browser—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 application21 <li>CSS and JavaScript features that allow you to provide different styles and images25 <p>Thus, your decision to develop a web application for Android can exclude consideration for26 screen support, because it's already easy to make your web pages look good on all types of screens29 <p>Another great feature of Android is that you don't have to build your application purely on32 application layout). Figure 1 visualizes how you can provide access to your web pages from either[all …]
26 <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 existing34 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 …]
11 …to 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 …36 …to be bound by this License Agreement on behalf of your employer or other entity, you represent an…42 …to the terms of this License Agreement, Google grants you a limited, worldwide, royalty-free, non-…45 …to the SDK, including any Intellectual Property Rights that subsist in the SDK. "Intellectual Prop…49 …to the extent required by applicable third party licenses, you may not copy (except for backup pur…55 …to 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 …]
27 counterpart to the Android 1.1 production system image, deployable to34 system to correctly determine whether an application is compatible with35 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 stored45 <p>If you use the Android 1.1 system image to build an application48 <code>android:minSdkVersion</code> attribute to "2" in order to specify that your application65 that users will only be able to install your application if their[all …]
6 Everyone is permitted to copy and distribute verbatim copies15 The licenses for most software are designed to take away your16 freedom to share and change it. By contrast, the GNU General Public17 Licenses are intended to guarantee your freedom to share and change18 free software--to make sure the software is free for all its users.20 This license, the Lesser General Public License, applies to some22 Free Software Foundation and other authors who decide to use it. You25 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 …]
32 ad-hoc access to specific pieces of data.</p>38 application, by default, has permission to perform any operations that would50 dynamically (at run-time) because it complicates the user experience to the65 the author of the application. The certificate does <em>not</em> need to be67 for Android applications to use self-signed certificates. The purpose of68 certificates in Android is to distinguish application authors. This allows69 the system to grant or deny applications access to <a71 permissions</a> and to grant or deny an application's <a72 href="/guide/topics/manifest/manifest-element.html#uid">request to be given85 run in the same process, since they need to run as different Linux users.[all …]