Home
last modified time | relevance | path

Searched refs:is (Results 1 – 25 of 200) sorted by relevance

12345678

/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DAssetUtils.java36 InputStream is = context.getAssets().open(asset); in loadAsset() local
37 int size = is.available(); in loadAsset()
39 is.read(buffer); in loadAsset()
40 is.close(); in loadAsset()
59 InputStream is = null; in loadBitmapAsset() local
62 is = context.getAssets().open(asset); in loadBitmapAsset()
63 if (is != null) { in loadBitmapAsset()
64 bitmap = BitmapFactory.decodeStream(is); in loadBitmapAsset()
69 if (is != null) { in loadBitmapAsset()
71 is.close(); in loadBitmapAsset()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DBitmapDecode.java51 private static byte[] streamToBytes(InputStream is) { in streamToBytes() argument
56 while ((len = is.read(buffer)) >= 0) { in streamToBytes()
68 java.io.InputStream is; in SampleView() local
69 is = context.getResources().openRawResource(R.drawable.beach); in SampleView()
75 bm = BitmapFactory.decodeStream(is, null, opts); in SampleView()
82 bm = BitmapFactory.decodeStream(is, null, opts); in SampleView()
87 is = context.getResources().openRawResource(R.drawable.frog); in SampleView()
88 mBitmap2 = BitmapFactory.decodeStream(is); in SampleView()
103 is = context.getResources().openRawResource(R.drawable.animated_gif); in SampleView()
106 mMovie = Movie.decodeStream(is); in SampleView()
[all …]
/development/samples/TicTacToeMain/
DREADME.txt10 Build is supported both via Ant (command-line tools) or via ADT (the Android
17 TicTacToeMain is the main project. It defines a main activity that is first
18 displayed to the user. When one of the start buttons is selected, an
19 activity defined in TicTacToeLib is started.
26 TicTacToeLib is the "project library". It can contain both source code (.java)
28 APK. To define this is a library, the file TicTacToeLib/default.project
33 One important thing to realize is that the library is not a separately-compiled
35 the main project and the result is used to generate the APK. This means that
/development/perftests/panorama/feature_mos/doc/
Dfeature_mos_API_doxyfile6 # All text after a hash (#) is considered a comment and will be ignored
7 # The format is:
18 # that follow. The default is UTF-8 which is also the encoding used for all
25 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded
32 # if some version control system is used.
36 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
38 # If a relative path is entered, it will be relative to the location
43 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
52 # The OUTPUT_LANGUAGE tag is used to specify the language in which all
53 # documentation generated by doxygen is written. Doxygen will use this
[all …]
/development/perftests/panorama/feature_stab/doc/
Ddbreg_API_doxyfile6 # All text after a hash (#) is considered a comment and will be ignored
7 # The format is:
18 # that follow. The default is UTF-8 which is also the encoding used for all
25 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded
32 # if some version control system is used.
36 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
38 # If a relative path is entered, it will be relative to the location
43 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
52 # The OUTPUT_LANGUAGE tag is used to specify the language in which all
53 # documentation generated by doxygen is written. Doxygen will use this
[all …]
/development/samples/browseable/BatchStepSensor/
D_index.jd12 event when a step is detected, while the step counter returns the total number of
14 … Both sensors only count steps while a listener is registered. This sample only covers the
15 basic case, where a listener is only registered while the app is running. Likewise,
16 batched sensors can be used in the background (when the CPU is suspended), which
17 requires manually flushing the sensor event queue before it overflows, which is not
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/
DJsonUtils.java39 InputStream is = context.getAssets().open(fileName); in loadJsonFile() local
40 int size = is.available(); in loadJsonFile()
42 is.read(buffer); in loadJsonFile()
43 is.close(); in loadJsonFile()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DReadAsset.java49 InputStream is = getAssets().open("read_asset.txt"); in onCreate() local
54 int size = is.available(); in onCreate()
58 is.read(buffer); in onCreate()
59 is.close(); in onCreate()
DExternalStorage.java198 InputStream is = getResources().openRawResource(R.drawable.balloons); in createExternalStoragePublicPicture() local
200 byte[] data = new byte[is.available()]; in createExternalStoragePublicPicture()
201 is.read(data); in createExternalStoragePublicPicture()
203 is.close(); in createExternalStoragePublicPicture()
262 InputStream is = getResources().openRawResource(R.drawable.balloons); in createExternalStoragePrivatePicture() local
264 byte[] data = new byte[is.available()]; in createExternalStoragePrivatePicture()
265 is.read(data); in createExternalStoragePrivatePicture()
267 is.close(); in createExternalStoragePrivatePicture()
324 InputStream is = getResources().openRawResource(R.drawable.balloons); in createExternalStoragePrivateFile() local
326 byte[] data = new byte[is.available()]; in createExternalStoragePrivateFile()
[all …]
/development/ide/xcode/ports/
Dskia_mac.cp21 // argv[0] is set to the execution path of the application, e.g.
23 // the desired directory path is :
25 // the variable (client-specific) part is :
61 // Once the nib reference is created, set the menu bar. "MainMenu" is the name of the menu bar
62 // object. This name is set in InterfaceBuilder when the nib is created.
66 // Then create a window. "MainWindow" is the name of the window object. This name is set in
67 // InterfaceBuilder when the nib is created.
/development/samples/SkeletonApp/
Dreadme.txt8 list in the app launcher (it is named Skeleton App) or by selecting it from
17 It is a required file, and is the mechanism you use to show your application
23 Under this directory is the Java source for for your application.
28 This is the implementation of the "activity" feature described in
29 AndroidManifest.xml. The path each class implementation is
42 view hierarchies. The skeleton_activity.xml file here is used by
44 (all text before a '.' character) is taken as the resource name;
53 here is used as the image to display in one of the views in
54 skeleton_activity.xml. Like layout files, the base name is used for the
/development/tools/mkstubs/
DREADME.txt7 MkStub is small tool that takes a given JAR and filters all the private stuff we don't want to
13 Each method body is replaced by the bytecode for 'throw new RuntimeException("stub");'.
22 +foo => accepts all items which signature is exactly "foo"
24 -bar => rejects all items which signature is exactly "bar"
52 To invoke MkStub, the syntax is:
71 Suggestion: if type x.y.z is excluded, then any field, annotation, generic type,
76 This is not orthogonal to the fact that private fields and methods are automatically
79 - Private fields and methods are automatically excluded. There is no command line
82 - The stubbed source is always generated. For example if the output jar name is
85 There is not command line switch to prevent that.
[all …]
/development/samples/browseable/BasicNetworking/
D_index.jd8 a network connection, and if so, what type of connection it is.
9 … \n\nA "NetworkInfo" object is retrieved from the ConnectivityManager, which contains information
10 … on the active connection, and then the connection type is printed to an on-screen console.
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DBitmapHelper.java36 public static final Bitmap scaleBitmap(int scaleFactor, InputStream is) { in scaleBitmap() argument
44 Bitmap bitmap = BitmapFactory.decodeStream(is, null, bmOptions); in scaleBitmap()
48 public static final int findScaleFactor(int targetW, int targetH, InputStream is) { in findScaleFactor() argument
52 BitmapFactory.decodeStream(is, null, bmOptions); in findScaleFactor()
/development/ndk/platforms/android-4/samples/san-angeles/jni/
Dlicense-LGPL.txt6 Everyone is permitted to copy and distribute verbatim copies
7 of this license document, but changing it is not allowed.
9 [This is the first released version of the Lesser GPL. It also counts
18 free software--to make sure the software is free for all its users.
24 this license or the ordinary General Public License is the better
53 there is no warranty for the free library. Also, if the library is
55 that what they have is not the original version, so that the original
66 Most GNU software, including some libraries, is covered by the
69 is quite different from the ordinary General Public License. We use
73 When a program is linked with a library, whether statically or using
[all …]
Dlicense.txt6 This source is free software; you can redistribute it and/or
11 General Public License is included with this source in the
13 (2) The BSD-style license that is included with this source in
16 This source is distributed in the hope that it will be useful,
DREADME.txt8 This is an OpenGL ES port of the small self-running demonstration
14 having many different kind of buildings and items. Everything is
19 limit. For this OpenGL ES version example much of the code is
20 cleaned up and the sound is removed. Also detail level is lowered,
23 The Win32 (2000/XP) binary package of original version is
33 and a separate source is included for Linux with X11.
35 shared object, so that the library is not needed at
62 The demo application is briefly tested with a few other OpenGL ES
73 is not featured in this OpenGL ES port.
/development/tools/labpretest/
DREADME3 The labpretest.sh script is designed to emulate a typical automated test lab
9 It will detect if it is in a low battery situation and wait for it to charge
12 The goal is to see if a device is ready for deployment to automated lab testing
13 and can also be used to verify that lab infrastructure is ready for devices.
14 The idea is to run this script at the same time for multiple devices, typically
20 If there is only one device attached to the host you can simply just run the
47 file that is read in before the main loop starts. It allows you to add any non
49 the variable "bootpart" which is not defined by default. Also, use this file to
/development/ndk/platforms/
DREADME.CRT.TXT17 that is linked into every Android _static_ executable. These binaries can
21 launches such an executable. The _start stub is used to call the
26 This is equivalent to crtbegin_static.[cS] but for _dynamic_ executables.
35 This is equivalent to crtbegin_dynamic.[cS], but shall be used for
36 shared libraries. One major difference is that there is no _start
44 This source file is _strictly_ equivalent to crtend_android.S.
48 (the naming difference for this source file is purely historical, it
100 This is used to implement static C++ object initialization in a shared
112 Where '__cxa_atexit' is a special C++ support function provided by the
114 automatically called when the shared library containing this code is
[all …]
/development/ndk/samples/module-exports/jni/foo/
Dfoo.c6 #error FOO is not defined here !
10 #error FOO is incorrectly defined here !
/development/ndk/platforms/android-9/samples/native-audio/assets/
DREADME.txt1 File background.mp3 ("Background for talking but don't") is
2 copyright 2008 by Glenn Kasten and is licensed under a
/development/tools/apkcheck/
DREADME.txt8 frameworks/base/api/. The tip-of-tree version is in "current.xml",
16 beyond the name (e.g. whether a class is a static or non-static inner
17 class), so while the output from dexdeps is similar in structure to the
27 public API XML file is generally much larger than the time required to
37 Load additional public API list. This is intended for APKs that
46 XML API data is not available.
92 the enumeration values. This makes it look like an APK is referring
96 class appears to be an Enum (the superclass is java.lang.Enum), we emit
103 and "implements java.lang.annotation.Annotation". It is not possible
104 to verify that a method call on an annotation is valid.
[all …]
/development/samples/training/network-usage/
DREADME.txt11 when any network connection is available, or only when a Wi-Fi connection is available.
13 -- Detects when there is a change in the device's connection status and responds accordingly. For e…
/development/samples/browseable/DrawableTinting/
D_index.jd9 … \n\nTinting is set on a nine-patch drawable through the "tint" and "tintMode" parameters.
10 A color state list is referenced as the tint color, which defines colors for different
12 … \n\nProgrammatically, tinting is applied to a Drawable through its "setColorFilter" method,
/development/tutorials/ReverseDebug/
DREADME.txt1 This is a tutorial/unittest for gdb's reverse debugging feature. It is a new
4 state and execute again. An ideal usage case is to help track down the reason
5 why a memory location is clobbered.
9 line 42 when "p" is being dereferenced.
57 This is free software: you are free to change and redistribute it.
58 There is NO WARRANTY, to the extent permitted by law. Type "show copying"
119 And here it is:
130 That said, reverse debugging on ARM is still in the infant stage. Currently

12345678