Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 62) sorted by relevance

123

/system/update_engine/payload_generator/
Dannotated_operation.cc31 void OutputExtents(std::ostream* os, in OutputExtents() argument
34 *os << " (" << extent.start_block() << ", " << extent.num_blocks() << ")"; in OutputExtents()
53 std::ostream& operator<<(std::ostream& os, const AnnotatedOperation& aop) { in operator <<() argument
58 os << InstallOperationTypeName(aop.op.type()) << " " << aop.op.data_length(); in operator <<()
60 os << " @" << aop.op.data_offset(); in operator <<()
62 os << std::endl << " name: " << aop.name; in operator <<()
65 os << std::endl << " src:"; in operator <<()
66 OutputExtents(&os, aop.op.src_extents()); in operator <<()
69 os << std::endl << " dst:"; in operator <<()
70 OutputExtents(&os, aop.op.dst_extents()); in operator <<()
[all …]
Dannotated_operation.h45 std::ostream& operator<<(std::ostream& os, const AnnotatedOperation& aop);
/system/ca-certificates/google/
Dextract_from_pem.py18 import os
35 file_path = os.path.join(output_dir, '%s.%d' % (base_name, i))
36 while os.path.exists(file_path):
42 file_path = os.path.join(output_dir, '%s.%d' % (base_name, i))
66 assert os.path.isdir(args.output_dir) and os.path.isfile(args.pem_file)
71 for existing_file in os.listdir(args.output_dir):
72 os.remove(os.path.join(args.output_dir, existing_file))
/system/extras/verity/fec/tests/
Dfec.py16 import os
28 f = os.open(image, os.O_WRONLY)
29 os.lseek(f, offset, os.SEEK_SET)
30 os.write(f, os.urandom(length))
31 os.close(f)
34 size = os.stat(image).st_size
/system/extras/systrace_analysis/
Danalyze_trace.py19 import os
30 this_script_path = os.path.dirname(os.path.realpath(__file__))
33 chromium_trace_path = os.path.normpath(this_script_path + '/../../../external/chromium-trace')
34 if not os.path.exists(chromium_trace_path):
38 if not os.path.exists(vinn_path):
/system/core/adb/
Dtest_device.py22 import os
80 self.android_serial = os.getenv('ANDROID_SERIAL')
81 if 'ANDROID_SERIAL' in os.environ:
82 del os.environ['ANDROID_SERIAL']
86 os.environ['ANDROID_SERIAL'] = self.android_serial
88 if 'ANDROID_SERIAL' in os.environ:
89 del os.environ['ANDROID_SERIAL']
100 os.environ['ANDROID_SERIAL'] = 'foo'
107 os.environ['ANDROID_SERIAL'] = 'bar'
116 os.environ['ANDROID_SERIAL'] = 'baz'
[all …]
Dtest_adb.py25 import os
149 linger_format = 'hh' if os.name == 'nt' else 'ii'
/system/update_engine/
Dbinder_service_android.h36 class BinderUpdateEngineAndroidService : public android::os::BnUpdateEngine,
65 const android::sp<android::os::IUpdateEngineCallback>& callback,
75 void UnbindCallback(android::os::IUpdateEngineCallback* callback);
78 std::vector<android::sp<android::os::IUpdateEngineCallback>> callbacks_;
Dupdate_engine_client_android.cc59 class UECallback : public android::os::BnUpdateEngineCallback {
80 android::sp<android::os::IUpdateEngine> service_;
81 android::sp<android::os::BnUpdateEngineCallback> callback_;
216 android::os::IUpdateEngine::asBinder(service_), in OnInit()
/system/extras/tests/net_test/
Dnet_test.py18 import os
86 version = os.uname()[2].split("-")[0]
110 fcntl.fcntl(fd, fcntl.F_SETFL, flags | os.O_NONBLOCK)
326 self.saved_uid = os.geteuid()
327 self.saved_groups = os.getgroups()
329 os.setgroups(self.saved_groups + [AID_INET])
330 os.seteuid(self.uid)
334 os.seteuid(self.saved_uid)
335 os.setgroups(self.saved_groups)
341 msg = os.strerror(err_num)
Danycast_test.py17 import os
89 addr = addr[:8] + os.urandom(8)
Dcsocket.py19 import os
51 raise socket.error(errno, os.strerror(errno))
/system/update_engine/update_manager/
Dumtest_utils.cc25 void PrintTo(const EvalStatus& status, ::std::ostream* os) { in PrintTo() argument
26 *os << ToString(status); in PrintTo()
/system/update_engine/binder_bindings/android/os/
DIUpdateEngine.aidl17 package android.os;
19 import android.os.IUpdateEngineCallback;
DIUpdateEngineCallback.aidl17 package android.os;
/system/core/metricsd/uploader/proto/
DREADME28 A: The standalone metrics uploader needs chromium os fields that are not defined
29 by the chromium protobufs. Instead of pushing chromium os specific changes to
30 chromium, we can add them only to chromium os (and to the backend of course).
37 * performance profiling protobuffers (not used in chromium os).
/system/sepolicy/tools/
Dinsertkeys.py9 import os
32 if not os.path.isfile(path):
137 tag_path = os.path.expandvars(self.get(tag, option))
138 path = os.path.join(key_directory, tag_path)
232 parser.add_option("-c", "--cwd", default=os.getcwd(), dest="root",
253 os.chdir(options.root)
Dpost_process_mac_perms25 import os
62 for dirpath, _, files in os.walk(args.dir):
63 transform = lambda x: os.path.join(dirpath, x)
/system/keymaster/
Dandroid_keymaster_test_utils.cpp37 std::ostream& operator<<(std::ostream& os, const keymaster_key_param_t& param) { in operator <<() argument
38 os << "Tag: " << keymaster::StringifyTag(param.tag); in operator <<()
41 os << " Invalid"; in operator <<()
44 os << " (Rep)"; in operator <<()
47 os << " Int: " << param.integer; in operator <<()
50 os << " (Rep)"; in operator <<()
53 os << " Enum: " << param.enumerated; in operator <<()
56 os << " (Rep)"; in operator <<()
59 os << " Long: " << param.long_integer; in operator <<()
62 os << " Date: " << param.date_time; in operator <<()
[all …]
/system/update_engine/common/
Derror_code.h130 inline std::ostream& operator<<(std::ostream& os, ErrorCode val) {
131 return os << static_cast<int>(val);
Dtest_utils.cc53 void PrintTo(const Extent& extent, ::std::ostream* os) { in PrintTo() argument
54 *os << "(" << extent.start_block() << ", " << extent.num_blocks() << ")"; in PrintTo()
57 void PrintTo(const ErrorCode& error_code, ::std::ostream* os) { in PrintTo() argument
58 *os << utils::ErrorCodeToString(error_code); in PrintTo()
/system/tools/aidl/tests/java_app/src/android/aidl/tests/
DSimpleParcelable.java19 import android.os.Parcel;
20 import android.os.Parcelable;
/system/core/init/
Dperfboot.py47 import os
54 sys.path.append(os.path.dirname(os.path.dirname(__file__)))
407 parser.add_argument('-s', '--serial', default=os.getenv('ANDROID_SERIAL'),
422 for apk in glob.glob(os.path.join(apk_dir, '*.apk')):
/system/tools/aidl/tests/
Dtest_data_ping_responder.cpp85 IMPLEMENT_META_INTERFACE(PingResponder, "android.os.IPingResponder");
/system/connectivity/shill/binder/android/system/connectivity/shill/
DIManager.aidl19 import android.os.PersistableBundle;

123