Home
last modified time | relevance | path

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

12345678910>>...218

/packages/modules/NeuralNetworks/common/types/src/
DTypeUtils.cpp50 std::ostream& operator<<(std::ostream& os, const std::vector<Type>& vec) { in operator <<() argument
52 os << "["; in operator <<()
56 os << ", "; in operator <<()
58 os << element; in operator <<()
61 return os << "...]"; in operator <<()
64 return os << "]"; in operator <<()
247 std::ostringstream os; in combineDimensions() local
248 os << "Incompatible ranks: " << lhs << " and " << rhs; in combineDimensions()
249 return NN_ERROR() << os.str(); in combineDimensions()
256 std::ostringstream os; in combineDimensions() local
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dencodings.h102 static void Encode(OutputStream& os, unsigned codepoint) { in Encode()
104 os.Put(static_cast<Ch>(codepoint & 0xFF)); in Encode()
106 os.Put(static_cast<Ch>(0xC0 | ((codepoint >> 6) & 0xFF))); in Encode()
107 os.Put(static_cast<Ch>(0x80 | ((codepoint & 0x3F)))); in Encode()
110 os.Put(static_cast<Ch>(0xE0 | ((codepoint >> 12) & 0xFF))); in Encode()
111 os.Put(static_cast<Ch>(0x80 | ((codepoint >> 6) & 0x3F))); in Encode()
112 os.Put(static_cast<Ch>(0x80 | (codepoint & 0x3F))); in Encode()
116 os.Put(static_cast<Ch>(0xF0 | ((codepoint >> 18) & 0xFF))); in Encode()
117 os.Put(static_cast<Ch>(0x80 | ((codepoint >> 12) & 0x3F))); in Encode()
118 os.Put(static_cast<Ch>(0x80 | ((codepoint >> 6) & 0x3F))); in Encode()
[all …]
/packages/modules/Bluetooth/
Dbuild.py32 import os
188 self.bootstrap_dir = os.path.abspath(self.args.bootstrap_dir)
189 os.makedirs(self.bootstrap_dir, exist_ok=True)
192 self.output_dir = os.path.join(self.bootstrap_dir, 'output')
193 self.platform_dir = os.path.join(self.bootstrap_dir, 'staging')
196 self.install_dir = os.path.join(self.output_dir, 'install')
212 assert os.path.isdir(self.platform_dir), 'Platform dir does not exist'
213 …assert os.path.isfile(os.path.join(self.platform_dir, '.gn')), 'Platform dir does not have .gn at …
216 os.makedirs(self.output_dir, exist_ok=True)
238 self.env = os.environ.copy()
[all …]
/packages/modules/Bluetooth/system/test/
Drun_host_unit_tests.py18 import os
47 if not os.path.isdir(dir):
62 value = os.environ.get('ANDROID_BUILD_TOP')
65 current_path = os.path.abspath(os.getcwd())
66 while current_path and os.path.isdir(current_path):
67 soong_ui_bash_path = os.path.join(current_path, SOONG_UI_BASH)
68 if os.path.isfile(soong_ui_bash_path):
73 parent_path = os.path.abspath(os.path.join(current_path, os.pardir))
86 value = os.environ.get('ANDROID_HOST_OUT')
89 …value = get_output_from_command((os.path.join(ANDROID_BUILD_TOP, SOONG_UI_BASH), '--dumpvar-mode',…
[all …]
Dgen_coverage.py21 import os
156 …f.write("<tr class='light-row'><td><pre><a href=\'" + os.path.join(test_name, "index.html") + "\'>…
181 source_file = os.path.join(os.path.join(WORKING_DIR, tests[0]['test_name']), "style.css")
182 dest_file = os.path.join(WORKING_DIR, "style.css")
186 f = open(os.path.join(WORKING_DIR, "index.html"), "w")
194 test_cmd = os.path.join(os.path.join(test_root, test_name), test_name)
195 if not os.path.isfile(test_cmd):
200 profraw_path = os.path.join(WORKING_DIR, os.path.join(test_name, profraw_file_name))
210 if not os.path.isfile(profraw_path):
220 cmd.append(os.path.join(get_android_root_or_die(), LLVM_MERGE + " merge "))
[all …]
/packages/services/Car/car_product/car_ui_portrait/tools/
Dexport_emulator.py4 import os
12 return os.path.join(os.environ['ANDROID_BUILD_TOP'], path)
15 return os.path.join(os.environ['ANDROID_PRODUCT_OUT'], path)
18 outputDir = os.path.join(outputDir, abi)
19 os.mkdir(outputDir)
22 copy2(fromProductOut('system-qemu.img'), os.path.join(outputDir, 'system.img'))
23 copy2(fromProductOut('vendor-qemu.img'), os.path.join(outputDir, 'vendor.img'))
24 if os.path.isfile(fromProductOut('kernel-ranchu-64')):
28 copy2(fromProductOut('ramdisk-qemu.img'), os.path.join(outputDir, 'ramdisk.img'))
33 copytree(fromProductOut('data'), os.path.join(outputDir, 'data'), dirs_exist_ok=True)
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_stats_test_utils.cpp141 void PrintTo(const DnsQueryEvents& event, std::ostream* os) { in PrintTo() argument
142 *os << "query events: {\n"; in PrintTo()
143 *os << " dns_query_event_size: " << event.dns_query_event_size() << "\n"; in PrintTo()
144 *os << "}"; in PrintTo()
147 void PrintTo(const DnsQueryEvent& event, std::ostream* os) { in PrintTo() argument
148 *os << "dns query event: {\n"; in PrintTo()
149 *os << " rcode: " << event.rcode() << "\n"; in PrintTo()
150 *os << " ns_type: " << event.type() << "\n"; in PrintTo()
151 *os << " cache_hit: " << event.cache_hit() << "\n"; in PrintTo()
152 *os << " ip_version: " << event.ip_version() << "\n"; in PrintTo()
[all …]
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DTypeUtils.h89 std::ostream& operator<<(std::ostream& os, const DeviceStatus& deviceStatus);
90 std::ostream& operator<<(std::ostream& os, const ExecutionPreference& executionPreference);
91 std::ostream& operator<<(std::ostream& os, const DeviceType& deviceType);
92 std::ostream& operator<<(std::ostream& os, const MeasureTiming& measureTiming);
93 std::ostream& operator<<(std::ostream& os, const OperandType& operandType);
94 std::ostream& operator<<(std::ostream& os, const Operand::LifeTime& lifetime);
95 std::ostream& operator<<(std::ostream& os, const OperationType& operationType);
96 std::ostream& operator<<(std::ostream& os, const Request::Argument::LifeTime& lifetime);
97 std::ostream& operator<<(std::ostream& os, const Priority& priority);
98 std::ostream& operator<<(std::ostream& os, const ErrorStatus& errorStatus);
[all …]
/packages/modules/Bluetooth/system/gd/cert/
Drun_topshim19 import os
30 if not os.path.isdir(dir):
43 value = os.environ.get('ANDROID_BUILD_TOP')
46 current_path = os.path.abspath(os.getcwd())
47 while current_path and os.path.isdir(current_path):
48 soong_ui_bash_path = os.path.join(current_path, SOONG_UI_BASH)
49 if os.path.isfile(soong_ui_bash_path):
54 parent_path = os.path.abspath(os.path.join(current_path, os.pardir))
66 value = os.environ.get('ANDROID_HOST_OUT')
69 …value = get_output_from_command((os.path.join(ANDROID_BUILD_TOP, SOONG_UI_BASH), '--dumpvar-mode',…
[all …]
Dbluetooth_packets_python3_setup.py27 import os
31 ANDROID_BUILD_TOP = os.getenv("ANDROID_BUILD_TOP")
32 PYBIND11_INCLUDE_DIR = os.path.join(ANDROID_BUILD_TOP, "external/python/pybind11/include")
33 GD_DIR = os.path.join(ANDROID_BUILD_TOP, "packages/modules/Bluetooth/system/gd")
34 BT_PACKETS_GEN_DIR = os.path.join(ANDROID_BUILD_TOP,
36 BT_PACKETS_PY3_GEN_DIR = os.path.join(ANDROID_BUILD_TOP,
40 os.path.join(GD_DIR, "l2cap/fcs.cc"),
41 os.path.join(GD_DIR, "packet/bit_inserter.cc"),
42 os.path.join(GD_DIR, "packet/byte_inserter.cc"),
43 os.path.join(GD_DIR, "packet/byte_observer.cc"),
[all …]
/packages/modules/Uwb/framework/api/
Dsystem-current.txt4 public final class AngleMeasurement implements android.os.Parcelable {
10 method public void writeToParcel(@NonNull android.os.Parcel, int);
11 …field @NonNull public static final android.os.Parcelable.Creator<android.uwb.AngleMeasurement> CRE…
14 public final class AngleOfArrivalMeasurement implements android.os.Parcelable {
18 method public void writeToParcel(@NonNull android.os.Parcel, int);
19 …field @NonNull public static final android.os.Parcelable.Creator<android.uwb.AngleOfArrivalMeasure…
28 public final class DistanceMeasurement implements android.os.Parcelable {
33 method public void writeToParcel(@NonNull android.os.Parcel, int);
34 …field @NonNull public static final android.os.Parcelable.Creator<android.uwb.DistanceMeasurement> …
45 public final class RangingMeasurement implements android.os.Parcelable {
[all …]
/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/
Dstate_machine.cc622 std::ostream& operator<<(std::ostream& os, in operator <<() argument
626 os << char_value_[static_cast<uint8_t>(msg)]; in operator <<()
627 return os; in operator <<()
630 std::ostream& operator<<(std::ostream& os, in operator <<() argument
634 os << char_value_[static_cast<uint8_t>(state)]; in operator <<()
635 return os; in operator <<()
638 std::ostream& operator<<(std::ostream& os, in operator <<() argument
640 os << "\n"; in operator <<()
641 os << " Status: 0x" << std::hex << +config.status << std::dec << "\n"; in operator <<()
642 os << " BIG ID: " << +config.big_id << "\n"; in operator <<()
[all …]
Dmock_state_machine.cc38 std::ostream& operator<<(std::ostream& os, in operator <<() argument
42 os << char_value_[static_cast<uint8_t>(state)]; in operator <<()
43 return os; in operator <<()
46 std::ostream& operator<<(std::ostream& os, in operator <<() argument
50 os << char_value_[static_cast<uint8_t>(state)]; in operator <<()
51 return os; in operator <<()
54 std::ostream& operator<<(std::ostream& os, const BigConfig& config) { in operator <<() argument
55 return os; in operator <<()
58 std::ostream& operator<<(std::ostream& os, in operator <<() argument
60 return os; in operator <<()
[all …]
/packages/modules/Bluetooth/system/bta/has/
Dhas_types.h125 void Dump(std::ostream& os) const { in Dump() argument
126 os << "\"addr\": \"" << addr << "\""; in Dump()
127 os << ", \"conn_id\": " << conn_id; in Dump()
128 os << ", \"is_gatt_service_valid\": " in Dump()
131 os << ", \"is_connecting_actively\": " in Dump()
363 friend std::ostream& operator<<(std::ostream& os, const HasDevice& b);
365 void Dump(std::ostream& os) const { in Dump() argument
366 GattServiceDevice::Dump(os); in Dump()
367 os << ", \"features\": \"" << loghex(features) << "\""; in Dump()
368 os << ", \"features_notifications_enabled\": " in Dump()
[all …]
/packages/services/Car/tools/emulator/
Dvhal_const_generate.py60 import os, os.path
63 script_directory = os.path.join(os.path.dirname(os.path.abspath(__file__)))
64 parent_location = os.path.abspath(os.path.join(script_directory, '..'))
86 android_build_top = os.environ.get("ANDROID_BUILD_TOP", None)
88 vhal_location = os.path.join(android_build_top, 'hardware','interfaces','automotive','vehicle')
90 vhal_location = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)),
93 if not(os.path.exists(vhal_location) and os.path.isdir(vhal_location)):
98 vhal_20_file = os.path.join(vhal_location, '2.0', 'types.hal')
99 if not(os.path.exists(vhal_20_file)):
106 vhal_20_file = open(os.path.join(script_directory, 'vhal_consts_2_0.py'), 'w')
/packages/modules/StatsD/apex/
DAndroid.bp20 name: "com.android.os.statsd",
21 defaults: ["com.android.os.statsd-defaults"],
26 bootclasspath_fragments: ["com.android.os.statsd-bootclasspath-fragment"],
27 systemserverclasspath_fragments: ["com.android.os.statsd-systemserverclasspath-fragment"],
38 "com.android.os.statsd.init.rc",
41 name: "com.android.os.statsd-defaults",
43 key: "com.android.os.statsd.key",
44 certificate: ":com.android.os.statsd.certificate",
48 name: "com.android.os.statsd.key",
49 public_key: "com.android.os.statsd.avbpubkey",
[all …]
/packages/modules/Bluetooth/system/include/hardware/avrcp/
Davrcp_logging_helper.h50 inline std::ostream& operator<<(std::ostream& os, const CType& type) {
51 return os << CTypeText(type);
65 inline std::ostream& operator<<(std::ostream& os, const Opcode& opcode) {
66 return os << OpcodeText(opcode);
84 inline std::ostream& operator<<(std::ostream& os, const CommandPdu& pdu) {
85 return os << CommandPduText(pdu);
96 inline std::ostream& operator<<(std::ostream& os, const PacketType& type) {
97 return os << PacketTypeText(type);
109 inline std::ostream& operator<<(std::ostream& os, const Capability& cap) {
110 return os << CapabilityText(cap);
[all …]
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DRandomGraphGeneratorUtils.h64 os.open(filename); in init()
67 bool enabled() { return os.is_open(); } in enabled()
69 if (os.is_open()) os.close(); in close()
72 if (os.is_open()) os << getElapsedTime() << str << std::flush; in log()
80 std::ofstream os; variable
193 inline std::ostream& operator<<(std::ostream& os, const RandomVariableType& type) {
195 return os << typeNames[static_cast<int>(type)];
204 inline std::ostream& operator<<(std::ostream& os, const RandomVariableRange& range) {
205 return os << "[" + joinStr(", ", 20, range.getChoices()) + "]";
208 inline std::ostream& operator<<(std::ostream& os, const RandomOperandType& type) {
[all …]
/packages/modules/Bluetooth/system/embdrv/lc3/test/
Dsetup.py19 import os, sys, glob
23 'build', '--build-base', os.getcwd() + os.sep + 'build',
24 'install', '--install-lib', os.getcwd() + os.sep + 'build' ]
26 INC_DIR = '..' + os.sep + 'include'
27 SRC_DIR = '..' + os.sep + 'src'
30 [ SRC_DIR + os.sep + 'tables.c',
31 SRC_DIR + os.sep + 'bits.c',
32 SRC_DIR + os.sep + 'plc.c' ]
35 glob.glob(INC_DIR + os.sep + '*.h') + \
36 glob.glob(SRC_DIR + os.sep + '*.[c,h]')
/packages/services/Car/car-builtin-lib/api/
Dsystem-lint-baseline.txt2 ConcreteCollection: android.car.builtin.os.ParcelHelper#readArraySet(android.os.Parcel, ClassLoader…
4 ConcreteCollection: android.car.builtin.os.ParcelHelper#writeArraySet(android.os.Parcel, android.ut…
8 NullableCollection: android.car.builtin.os.ParcelHelper#readArraySet(android.os.Parcel, ClassLoader…
9 …Return type of method android.car.builtin.os.ParcelHelper.readArraySet(android.os.Parcel,ClassLoad…
10 NullableCollection: android.car.builtin.os.ParcelHelper#readStringArray(android.os.Parcel):
11 …Return type of method android.car.builtin.os.ParcelHelper.readStringArray(android.os.Parcel) is a …
14 UserHandleName: android.car.builtin.app.ActivityManagerHelper#startUserInForeground(android.os.User…
/packages/modules/StatsD/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt3 Landroid/app/StatsManager;->getIStatsManagerLocked()Landroid/os/IStatsManager;
5 Landroid/app/StatsManager;->mService:Landroid/os/IStatsManager;
7 Landroid/os/IStatsCompanionService$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
8 Landroid/os/IStatsCompanionService$Stub$Proxy;->cancelAlarmForSubscriberTriggering()V
9 Landroid/os/IStatsCompanionService$Stub$Proxy;->cancelAnomalyAlarm()V
10 Landroid/os/IStatsCompanionService$Stub$Proxy;->cancelPullingAlarm()V
11 Landroid/os/IStatsCompanionService$Stub$Proxy;->getInterfaceDescriptor()Ljava/lang/String;
12 Landroid/os/IStatsCompanionService$Stub$Proxy;->mRemote:Landroid/os/IBinder;
13 Landroid/os/IStatsCompanionService$Stub$Proxy;->pullData(I)[Landroid/os/StatsLogEventWrapper;
14 Landroid/os/IStatsCompanionService$Stub$Proxy;->sendDataBroadcast(Landroid/os/IBinder;J)V
[all …]
/packages/modules/Bluetooth/system/bta/le_audio/
Dle_audio_types.cc611 std::ostream& operator<<(std::ostream& os, in operator <<() argument
617 os << char_value_[static_cast<uint8_t>(state)] << " (" in operator <<()
620 return os; in operator <<()
622 std::ostream& operator<<(std::ostream& os, const types::CigState& state) { in operator <<() argument
626 os << char_value_[static_cast<uint8_t>(state)] << " (" in operator <<()
629 return os; in operator <<()
631 std::ostream& operator<<(std::ostream& os, const types::AseState& state) { in operator <<() argument
637 os << char_value_[static_cast<uint8_t>(state)] << " (" in operator <<()
640 return os; in operator <<()
643 std::ostream& operator<<(std::ostream& os, in operator <<() argument
[all …]
/packages/modules/Bluetooth/system/tools/scripts/
Ddump_metrics_ascii.py18 import os
31 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']):
32 protoc = os.environ['PROTOC']
43 if not os.path.exists(proto_path):
47 if not os.path.exists(output_dir):
48 os.mkdirs(output_dir)
49 elif not os.path.isdir(output_dir):
52 input_dir = os.path.dirname(proto_path)
53 output_filename = os.path.basename(proto_path).replace('.proto', '_pb2.py')
54 output_path = os.path.join(output_dir, output_filename)
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/
Dtest.py25 import os
53 cwd = os.getcwd()
55 os.chdir(cwd)
80 if not os.path.isfile(actual):
84 if not os.path.isfile(expect):
140 return os.path.abspath(os.path.join(OrigFile.OrigDir, "../"))
169 os.remove('stdout.txt')
170 os.remove('stderr.txt')
220 os.chdir(dir_name)
275 OrigFile.OrigDir = os.path.dirname(os.path.abspath(__file__))
[all …]
/packages/modules/StatsD/apex/tests/libstatspull/src/com/android/internal/os/statsd/libstats/
DStatsConfigUtils.java16 package com.android.internal.os.statsd.libstats;
23 import com.android.internal.os.StatsdConfigProto.AtomMatcher;
24 import com.android.internal.os.StatsdConfigProto.FieldValueMatcher;
25 import com.android.internal.os.StatsdConfigProto.SimpleAtomMatcher;
26 import com.android.internal.os.StatsdConfigProto.StatsdConfig;
27 import com.android.os.AtomsProto.AppBreadcrumbReported;
28 import com.android.os.AtomsProto.Atom;
29 import com.android.os.StatsLog;
30 import com.android.os.StatsLog.ConfigMetricsReport;
31 import com.android.os.StatsLog.ConfigMetricsReportList;
[all …]

12345678910>>...218