Searched defs:os (Results 1 - 25 of 37) sorted by relevance

12

/development/samples/ApiDemos/src/com/example/android/apis/os/
H A DMorseCode.java17 package com.example.android.apis.os;
24 import android.os.Bundle;
25 import android.os.Vibrator;
33 <p>This demonstrates the {@link android.os.Vibrator android.os.Vibrator} class.
41 * <td >src/com.example.android.apis/os/MorseCode.java</td>
85 // android.os.Vibrator for more info about the format of this array
H A DSmsMessageReceiver.java17 package com.example.android.apis.os;
24 import android.os.Bundle;
H A DSmsMessagingDemo.java17 package com.example.android.apis.os;
30 import android.os.Bundle;
50 public static final String SMS_RECIPIENT_EXTRA = "com.example.android.apis.os.SMS_RECIPIENT";
52 public static final String ACTION_SMS_SENT = "com.example.android.apis.os.SMS_SENT_ACTION";
72 "com.example.android.apis.os.SmsMessageReceiver");
H A DMorseCodeConverter.java17 package com.example.android.apis.os;
H A DSmsReceivedDialog.java17 package com.example.android.apis.os;
26 import android.os.Bundle;
38 public static final String SMS_FROM_ADDRESS_EXTRA = "com.example.android.apis.os.SMS_FROM_ADDRESS";
39 public static final String SMS_FROM_DISPLAY_NAME_EXTRA = "com.example.android.apis.os.SMS_FROM_DISPLAY_NAME";
40 public static final String SMS_MESSAGE_EXTRA = "com.example.android.apis.os.SMS_MESSAGE";
H A DRotationVectorDemo.java17 package com.example.android.apis.os;
30 import android.os.Bundle;
/development/samples/ApiDemos/tests/src/com/example/android/apis/os/
H A DMorseCodeConverterTest.java17 package com.example.android.apis.os;
/development/scripts/
H A Dsymbol.py10 import os namespace
14 ANDROID_BUILD_TOP = os.environ["ANDROID_BUILD_TOP"]
19 saveddir = os.getcwd()
20 os.chdir(ANDROID_BUILD_TOP)
26 return os.path.join(ANDROID_BUILD_TOP, stream.read().strip())
28 os.chdir(saveddir)
34 uname = os.uname()[0]
36 proc = os.uname()[-1]
49 return os.path.join(ANDROID_BUILD_TOP, "prebuilt", Uname(), "toolchain", label, "bin",
74 if os
[all...]
H A Ddivide_and_compress.py40 import os namespace
149 self.index_fp = open(os.path.join(self.output_dir, 'main.py'), 'w')
151 os.path.walk(self.base_path, self.CompressDirectory, 1)
170 archive_path = os.path.join(self.output_dir, self.current_archive)
173 root, ext = os.path.splitext(archive_path)
175 os.rename(archive_path, old_archive)
193 os.unlink(old_archive)
198 if os.path.exists(path):
217 unused_id: A numeric identifier passed by the os.path.walk method, this
228 zip_queue.append(os
[all...]
H A Dstack10 import os namespace
54 if not os.path.exists(self.name):
55 user = os.environ["USER"]
71 if os.path.exists(self.name):
72 os.chmod(self.name, 0600)
80 os.remove(self.name)
124 if not os.path.exists(symdir):
125 os.makedirs(symdir)
150 if not os.path.exists(localsyms):
191 if not os
[all...]
H A Ddivide_and_compress_test.py25 import os namespace
70 self.my_mox.StubOutWithMock(os, 'stat')
71 os.stat('/foo/0.zip').AndReturn([test_file_size])
74 os.stat('/baz/0.zip').AndReturn([test_file_size])
75 mox.Replay(os.stat)
97 source_path = ''.join([os.getcwd(), '/0-old.zip'])
98 dest_path = ''.join([os.getcwd(), '/0.zip'])
100 ''.join([os.getcwd(), '/']), 'dummy', 1024*1024, True)
106 self.my_mox.StubOutWithMock(os, 'rename')
107 os
[all...]
/development/testrunner/
H A Dandroid_build.py21 import os namespace
43 root_path = os.getenv("ANDROID_BUILD_TOP")
52 """Identify the host os and arch.
58 AbortError: If the os and/or arch could not be found.
90 path = os.path.join(GetTop(), "out", "host", os_arch, "bin")
91 if not os.path.exists(path):
111 path = os.getenv("ANDROID_PRODUCT_OUT")
133 path = os.path.join(GetProductOut(), "system", "bin")
134 if not os.path.exists(path):
154 path = os
[all...]
H A Dandroid_manifest.py25 import os namespace
64 self._manifest_path = os.path.join(app_path, self.FILENAME)
121 manifest_path = os.path.join(path, AndroidManifest.FILENAME)
122 if os.path.isfile(manifest_path):
H A Dmake_tree.py18 import os namespace
34 self._path = os.path.join(parent._GetPath(), name)
63 path = os.path.join(android_build.GetTop(), self._path)
75 make_list.append(os.path.join(self._path, "Android.mk"))
98 path = os.path.normpath(path)
99 mk_path = os.path.join(android_build.GetTop(), path, "Android.mk")
100 if not os.path.isfile(mk_path):
102 path_segs = path.split(os.sep)
H A Drun_command.py19 import os namespace
132 os.kill(pid[0], signal.SIGKILL)
196 return os.path.exists("/usr/bin/valgrind")
H A Dcreate_test.py23 import os namespace
103 if os.path.exists(tests_manifest_path):
114 if not os.path.exists(tests_path):
115 os.mkdir(tests_path)
140 if os.path.exists(tests_mk_path):
164 if not os.path.exists(tests_path):
165 os.mkdir(tests_path)
223 if not os.path.exists(app_path):
241 if not os.path.exists(src_path):
242 os
[all...]
H A Dandroid_mk.py24 import os namespace
169 mk_path = os.path.join(path, filename)
170 if os.path.isfile(mk_path):
/development/testrunner/test_defs/
H A Dgtest.py21 import os namespace
81 if os.path.isfile(sub_tests_path):
82 self._EvaluateFile(test_file_list, os.path.basename(sub_tests_path))
84 os.path.walk(sub_tests_path, self._CollectTestSources, test_file_list)
86 target_root_path = os.path.join('/data', 'nativetest')
92 suite.SetTargetExecPath(os.path.join(target_root_path, test_file))
104 This method is a callback for os.path.walk.
115 (name, ext) = os.path.splitext(file)
H A Dnative_test.py21 import os namespace
55 build_path = os.path.join(android_build.GetTop(), self.GetBuildPath())
56 os.path.walk(build_path, self._CollectTestSources, source_list)
59 # Host tests are under out/host/<os>-<arch>/bin.
85 full_path = os.path.join(os.sep, "system", "bin", f)
110 This method is a callback for os.path.walk.
118 (name, ext) = os.path.splitext(f)
122 test_list.append(str(os.path.join(dirname, f)))
139 binary = os
[all...]
H A Dtest_walker.py21 import os namespace
71 if not os.path.exists(path):
74 realpath = os.path.realpath(path)
76 self._build_top = os.path.realpath(android_build.GetTop())
99 return os.path.commonprefix([self._build_top, path]) == self._build_top
131 if not os.path.isdir(path):
161 for filename in os.listdir(path):
162 self._FindSubTests(os.path.join(path, filename), tests,
239 dirpath = os.path.dirname(path)
H A Dhost_test.py21 import os namespace
38 _JUNIT_BUILD_PATH = os.path.join("external", "junit")
39 _HOSTTESTLIB_BUILD_PATH = os.path.join("development", "tools", "hosttestlib")
94 path = os.path.join(options.host_lib_path, lib)
96 if not os.path.exists(path):
/development/build/tools/
H A Dmk_sources_zip.py19 import os namespace
119 if not os.path.isfile(p.PROPS):
121 if not os.path.isdir(p.SRC):
133 if not os.path.exists(srcdir):
137 for filename in os.listdir(srcdir):
138 filepath = os.path.join(srcdir, filename)
139 if filename.endswith(".java") and os.path.isfile(filepath):
155 pkg = pkg.replace(".", os.path.sep) # e.g. android.view => android/view
160 elif os.path.isdir(filepath):
188 arc_path = os
[all...]
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
H A Ddashboard.py24 import os namespace
62 path = os.path.join(os.path.dirname(__file__), 'templates', 'simple_form.html')
149 path = os.path.join(os.path.dirname(__file__), 'templates', 'edit_avatar.html')
191 path = os.path.join(os.path.dirname(__file__), 'templates', 'contacts.html')
/development/testrunner/coverage/
H A Dcoverage_targets.py19 import os namespace
118 target.AddPath(os.path.join(target.GetBuildPath(), "src"))
121 target.AddPath(os.path.join(target.GetBuildPath(), rel_path))
/development/scripts/app_engine_server/gae_shell/
H A Dshell.py26 The logging, os, sys, db, and users modules are imported automatically.
41 import os namespace
71 'import os',
184 template_file = os.path.join(os.path.dirname(__file__), 'templates',
187 vars = { 'server_software': os.environ['SERVER_SOFTWARE'],

Completed in 161 milliseconds

12