/packages/modules/NeuralNetworks/common/ |
D | TypeUtils.cpp | 45 std::ostream& operator<<(std::ostream& os, const std::vector<Type>& vec) { in operator <<() argument 47 os << "["; in operator <<() 51 os << ", "; in operator <<() 53 os << element; in operator <<() 56 return os << "...]"; in operator <<() 59 return os << "]"; in operator <<() 187 std::ostringstream os; in combineDimensions() local 188 os << "Incompatible ranks: " << lhs << " and " << rhs; in combineDimensions() 189 return NN_ERROR() << os.str(); in combineDimensions() 196 std::ostringstream os; in combineDimensions() local [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | encodings.h | 102 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/apps/Car/libs/car-ui-lib/tests/tools/ |
D | quick_rro.py | 18 import os 58 for root, dirs, files in os.walk(args.dir): 60 path = os.path.join(root, file) 113 if os.path.isfile(path): 118 framework_res_path = os.path.join(os.environ['OUT'], 'system/framework/framework-res.apk') 119 if os.path.isfile(framework_res_path): 122 sdk_dir = os.path.expanduser('~/Android/Sdk/platforms') 124 for dir in os.listdir(sdk_dir): 125 if os.path.isdir(os.path.join(sdk_dir, dir)): 132 android_jar_path = os.path.join(sdk_dir, best_dir, 'android.jar') [all …]
|
/packages/modules/NeuralNetworks/common/include/nnapi/ |
D | TypeUtils.h | 89 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/DnsResolver/tests/ |
D | resolv_stats_test_utils.cpp | 141 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/services/Car/tools/emulator/ |
D | vhal_const_generate.py | 60 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/NeuralNetworks/runtime/test/fuzzing/ |
D | RandomGraphGeneratorUtils.h | 64 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/StatsD/apex/ |
D | Android.bp | 27 name: "com.android.os.statsd", 28 defaults: ["com.android.os.statsd-defaults"], 39 bootclasspath_fragments: ["com.android.os.statsd-bootclasspath-fragment"], 53 "com.android.os.statsd.init.rc", 56 name: "com.android.os.statsd-defaults", 59 key: "com.android.os.statsd.key", 60 certificate: ":com.android.os.statsd.certificate", 64 name: "com.android.os.statsd.key", 65 public_key: "com.android.os.statsd.avbpubkey", 66 private_key: "com.android.os.statsd.pem", [all …]
|
/packages/modules/StatsD/apex/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority.txt | 3 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/apps/Bluetooth/src/com/android/bluetooth/sap/ |
D | SapMessage.java | 6 import android.os.RemoteException; 626 private static void writeParameter(OutputStream os, int id, int value, int length) in writeParameter() argument 630 os.write(id); in writeParameter() 631 os.write(0); in writeParameter() 632 os.write(0); in writeParameter() 633 os.write(length); in writeParameter() 637 os.write(value & 0xff); in writeParameter() 638 os.write(0); // Padding in writeParameter() 639 os.write(0); // Padding in writeParameter() 640 os.write(0); // padding in writeParameter() [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/ |
D | test.py | 25 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/ |
D | StatsConfigUtils.java | 16 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.ConfigMetricsReport; 30 import com.android.os.StatsLog.ConfigMetricsReportList; 31 import com.android.os.StatsLog.GaugeBucketInfo; [all …]
|
/packages/apps/Car/tests/tools/rro/ |
D | resource_utils.py | 16 import os 57 excluded_resource_files = [os.path.abspath(file) for file in excluded_resource_files] 58 allResDirs = [f for f in os.listdir(resDir) if os.path.isdir(os.path.join(resDir, f))] 65 for file in os.listdir(os.path.join(resDir, dir)): 66 filePath = os.path.abspath(os.path.join(resDir, dir, file)) 70 ResourceLocation(os.path.join(resDir, dir, file)))) 72 for resource in get_ids_from_layout_file(os.path.join(resDir, dir, file)): 75 for file in os.listdir(os.path.join(resDir, dir)): 76 filePath = os.path.abspath(os.path.join(resDir, dir, file)) 78 for resource in get_resources_from_single_file(os.path.join(resDir, dir, file),
|
/packages/modules/Gki/ |
D | download_boot_prebuilt.py | 24 import os 41 ANDROID_BUILD_TOP = os.environ["ANDROID_BUILD_TOP"] 70 url = os.path.join(url_base, filename) 71 dest_filename = os.path.join(dest_dir, filename) 77 arch_dir = os.path.join(boot_prebuilt, ver, arch) 78 variant_dir = os.path.join(arch_dir, variant) 84 os.makedirs(variant_dir) 90 shutil.move(os.path.join(variant_dir, boot_img_name), os.path.join(arch_dir, stored_img_name)) 110 boot_prebuilt = os.path.join(ANDROID_BUILD_TOP, BOOT_PREBUILT_REL_DIR) 111 for ver in os.listdir(boot_prebuilt): [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | OsUtil.java | 22 import android.os.Build; 23 import android.os.UserHandle; 24 import android.os.UserManager; 25 import androidx.core.os.BuildCompat; 51 sIsAtLeastICS_MR1 = v >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1; 52 sIsAtLeastJB = v >= android.os.Build.VERSION_CODES.JELLY_BEAN; 53 sIsAtLeastJB_MR1 = v >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1; 54 sIsAtLeastJB_MR2 = v >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2; 55 sIsAtLeastKLP = v >= android.os.Build.VERSION_CODES.KITKAT; 56 sIsAtLeastL = v >= android.os.Build.VERSION_CODES.LOLLIPOP; [all …]
|
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/ |
D | GaugeMetricsTests.java | 22 import com.android.internal.os.StatsdConfigProto; 23 import com.android.internal.os.StatsdConfigProto.ActivationType; 24 import com.android.internal.os.StatsdConfigProto.AtomMatcher; 25 import com.android.internal.os.StatsdConfigProto.EventActivation; 26 import com.android.internal.os.StatsdConfigProto.FieldFilter; 27 import com.android.internal.os.StatsdConfigProto.FieldMatcher; 28 import com.android.internal.os.StatsdConfigProto.FieldValueMatcher; 29 import com.android.internal.os.StatsdConfigProto.GaugeMetric; 30 import com.android.internal.os.StatsdConfigProto.MetricActivation; 31 import com.android.internal.os.StatsdConfigProto.Predicate; [all …]
|
D | ValueMetricsTests.java | 22 import com.android.internal.os.StatsdConfigProto.ActivationType; 23 import com.android.internal.os.StatsdConfigProto.AtomMatcher; 24 import com.android.internal.os.StatsdConfigProto.EventActivation; 25 import com.android.internal.os.StatsdConfigProto.FieldFilter; 26 import com.android.internal.os.StatsdConfigProto.FieldMatcher; 27 import com.android.internal.os.StatsdConfigProto.FieldValueMatcher; 28 import com.android.internal.os.StatsdConfigProto.MetricActivation; 29 import com.android.internal.os.StatsdConfigProto.Predicate; 30 import com.android.internal.os.StatsdConfigProto.SimpleAtomMatcher; 31 import com.android.internal.os.StatsdConfigProto.SimplePredicate; [all …]
|
/packages/modules/adb/ |
D | test_device.py | 22 import os 386 if self.device.has_shell_protocol() and os.isatty(sys.stdin.fileno()): 465 os.kill(sleep_proc.pid, signal.SIGINT) 627 os.remove(tf.name) 711 self.base_name = os.path.basename(self.full_path) 730 rand_str = os.urandom(size) 766 self.previous_env = os.environ.get("ADB_COMPRESSION") 767 os.environ["ADB_COMPRESSION"] = self.compression 771 del os.environ["ADB_COMPRESSION"] 773 os.environ["ADB_COMPRESSION"] = self.previous_env [all …]
|
/packages/modules/Connectivity/framework/api/ |
D | current.txt | 4 public class CaptivePortal implements android.os.Parcelable { 8 method public void writeToParcel(android.os.Parcel, int); 9 …field @NonNull public static final android.os.Parcelable.Creator<android.net.CaptivePortal> CREATO… 24 …public static final class ConnectivityDiagnosticsManager.ConnectivityReport implements android.os.… 25 …t.LinkProperties, @NonNull android.net.NetworkCapabilities, @NonNull android.os.PersistableBundle); 27 method @NonNull public android.os.PersistableBundle getAdditionalInfo(); 32 method public void writeToParcel(@NonNull android.os.Parcel, int); 33 …field @NonNull public static final android.os.Parcelable.Creator<android.net.ConnectivityDiagnosti… 48 …public static final class ConnectivityDiagnosticsManager.DataStallReport implements android.os.Par… 49 …t.LinkProperties, @NonNull android.net.NetworkCapabilities, @NonNull android.os.PersistableBundle); [all …]
|
/packages/modules/StatsD/tests/src/android/cts/statsd/validation/ |
D | ValidationTests.java | 22 import android.os.BatteryPluggedStateEnum; 23 import android.os.BatteryStatsProto; 24 import android.os.UidProto; 25 import android.os.UidProto.Wakelock; 26 import android.os.WakeLockLevelEnum; 30 import com.android.internal.os.StatsdConfigProto.AtomMatcher; 31 import com.android.internal.os.StatsdConfigProto.DurationMetric; 32 import com.android.internal.os.StatsdConfigProto.FieldMatcher; 33 import com.android.internal.os.StatsdConfigProto.FieldValueMatcher; 34 import com.android.internal.os.StatsdConfigProto.LogicalOperation; [all …]
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarDebugActivity.java | 23 import android.os.AsyncTask; 24 import android.os.Bundle; 25 import android.os.Environment; 121 ZipOutputStream os = null; in doInBackground() local 132 os = new ZipOutputStream(new FileOutputStream(outFile)); in doInBackground() 133 os.putNextEntry(new ZipEntry(inFile.getName())); in doInBackground() 142 os.write(buf, 0, len); in doInBackground() 145 os.closeEntry(); in doInBackground() 148 os.flush(); in doInBackground() 149 os.close(); in doInBackground() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | encodingstest.cpp | 287 StringBuffer os, os2; in TEST() local 290 os.Clear(); in TEST() 291 UTF8<>::Encode(os, codepoint); in TEST() 292 const char* encodedStr = os.GetString(); in TEST() 338 GenericStringBuffer<UTF16<> > os, os2; in TEST() local 342 os.Clear(); in TEST() 343 UTF16<>::Encode(os, codepoint); in TEST() 344 const UTF16<>::Ch* encodedStr = os.GetString(); in TEST() 398 GenericStringBuffer<UTF32<> > os, os2; in TEST() local 401 os.Clear(); in TEST() [all …]
|
/packages/modules/StatsD/tests/src/android/cts/statsd/metadata/ |
D | MetadataTests.java | 22 import com.android.internal.os.StatsdConfigProto; 23 import com.android.internal.os.StatsdConfigProto.StatsdConfig; 24 import com.android.internal.os.StatsdConfigProto.Subscription; 25 import com.android.internal.os.StatsdConfigProto.TimeUnit; 26 import com.android.internal.os.StatsdConfigProto.ValueMetric; 27 import com.android.os.AtomsProto.AnomalyDetected; 28 import com.android.os.AtomsProto.AppBreadcrumbReported; 29 import com.android.os.AtomsProto.Atom; 30 import com.android.os.StatsLog.EventMetricData; 31 import com.android.os.StatsLog.StatsdStatsReport; [all …]
|
/packages/modules/ArtPrebuilt/ |
D | update-art-module-prebuilts.py | 21 import os 67 os.path.join(arch, apex_name + ".apex"), 68 os.path.join(PACKAGE_PATH, apex_name + "-" + arch + ".apex"), 76 os.path.join("mainline-sdks", 78 os.path.join(SDK_PATH, SDK_VERSION, sdk_dir), 228 with os.fdopen(msg_fd, "w") as f: 235 os.unlink(msg_path) 241 install_dir, install_file = os.path.split(entry.install_path) 242 if install_dir and not os.path.exists(install_dir): 243 os.makedirs(install_dir) [all …]
|
/packages/modules/common/tools/ |
D | finalize_sdk.py | 4 import os 33 os.mkdir(tmpdir) 52 for dir in os.listdir('prebuilts/module_sdk/'): 65 return os.path.join(base, 'test-exports') 67 return os.path.join(base, 'host-exports') 70 if not os.path.isdir('build/soong'): 88 for f in os.listdir(tmpdir): 91 target_dir = os.path.join(repo, dir) 92 if os.path.isfile(target_dir): 95 with zipfile.ZipFile(os.path.join(tmpdir, f)) as zipFile:
|