Home
last modified time | relevance | path

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

12345678910>>...208

/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/apps/Car/libs/car-ui-lib/tests/tools/
Dquick_rro.py18 import os
52 for root, dirs, files in os.walk(args.dir):
54 path = os.path.join(root, file)
107 if os.path.isfile(path):
112 framework_res_path = os.path.join(os.environ['OUT'], 'system/framework/framework-res.apk')
113 if os.path.isfile(framework_res_path):
116 sdk_dir = os.path.expanduser('~/Android/Sdk/platforms')
118 for dir in os.listdir(sdk_dir):
119 if os.path.isdir(os.path.join(sdk_dir, dir)):
126 android_jar_path = os.path.join(sdk_dir, best_dir, 'android.jar')
[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/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/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapMessage.java6 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/apps/Messaging/src/com/android/messaging/util/
DOsUtil.java22 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/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDebugActivity.java23 import android.os.AsyncTask;
24 import android.os.Bundle;
25 import android.os.Environment;
114 ZipOutputStream os = null; in doInBackground() local
125 os = new ZipOutputStream(new FileOutputStream(outFile)); in doInBackground()
126 os.putNextEntry(new ZipEntry(inFile.getName())); in doInBackground()
135 os.write(buf, 0, len); in doInBackground()
138 os.closeEntry(); in doInBackground()
141 os.flush(); in doInBackground()
142 os.close(); in doInBackground()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dencodingstest.cpp287 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/services/Car/car-lib/api/
Dsystem-current.txt8 method public android.os.IBinder onBind(android.content.Intent);
60 …quiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION) public android.os.Bundle getProjection…
198 method @Deprecated public void onClusterActivityStateChanged(String, android.os.Bundle);
220 method @CallSuper public android.os.IBinder onBind(android.content.Intent);
230 method public void onNavigationStateChanged(@Nullable android.os.Bundle);
237 public final class AppBlockingPackageInfo implements android.os.Parcelable {
239 ctor public AppBlockingPackageInfo(android.os.Parcel);
241 method public void writeToParcel(android.os.Parcel, int);
242 …field public static final android.os.Parcelable.Creator<android.car.content.pm.AppBlockingPackageI…
253 public final class CarAppBlockingPolicy implements android.os.Parcelable {
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DXmpUtil.java164 FileOutputStream os = null; in writeXMPMeta() local
167 os = new FileOutputStream(filename); in writeXMPMeta()
168 writeJpegFile(os, sections); in writeXMPMeta()
173 if (os != null) { in writeXMPMeta()
175 os.close(); in writeXMPMeta()
215 private static void writeJpegFile(OutputStream os, List<Section> sections) in writeJpegFile() argument
218 os.write(0xff); in writeJpegFile()
219 os.write(M_SOI); in writeJpegFile()
221 os.write(0xff); in writeJpegFile()
222 os.write(section.marker); in writeJpegFile()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DDataExporter.java65 try (ZipOutputStream os = new ZipOutputStream(new FileOutputStream(outFile))) { in exportData() argument
66 os.setLevel(Deflater.BEST_COMPRESSION); in exportData()
67 addDirectory(context, os, context.getFilesDir().getParentFile(), "contacts-files"); in exportData()
140 private static void addDirectory(Context context, ZipOutputStream os, File current, in addDirectory() argument
155 addDirectory(context, os, child, childStoredPath); in addDirectory()
157 addFile(os, child, childStoredPath); in addDirectory()
168 private static void addFile(ZipOutputStream os, File current, String storedPath) in addFile() argument
172 os.putNextEntry(new ZipEntry(storedPath)); in addFile()
181 os.write(buf, 0, len); in addFile()
184 os.closeEntry(); in addFile()
/packages/apps/Car/libs/car-ui-lib/tests/apitest/
Dresource_utils.py17 import os
63 allResDirs = [f for f in os.listdir(resDir) if os.path.isdir(os.path.join(resDir, f))]
72 for file in os.listdir(os.path.join(resDir, dir)):
76 ResourceLocation(os.path.join(resDir, dir, file))))
79 for file in os.listdir(os.path.join(resDir, dir)):
81 for resource in get_resources_from_single_file(os.path.join(resDir, dir, file)):
/packages/providers/MediaProvider/src/com/android/providers/media/
DMtpService.java28 import android.os.Build;
29 import android.os.Environment;
30 import android.os.IBinder;
31 import android.os.ParcelFileDescriptor;
32 import android.os.RemoteException;
33 import android.os.ServiceManager;
34 import android.os.UserHandle;
35 import android.os.storage.StorageEventListener;
36 import android.os.storage.StorageManager;
37 import android.os.storage.StorageVolume;
/packages/services/Car/service/src/com/android/car/
DCarService.java19 import static android.os.SystemClock.elapsedRealtime;
25 import android.os.Build;
26 import android.os.IBinder;
27 import android.os.IHwBinder.DeathRecipient;
28 import android.os.Process;
29 import android.os.RemoteException;
30 import android.os.ServiceManager;
31 import android.os.SystemClock;
32 import android.os.SystemProperties;
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DUserNoiticeDemoUiService.java24 import android.os.Binder;
25 import android.os.Handler;
26 import android.os.IBinder;
27 import android.os.Looper;
28 import android.os.Parcel;
29 import android.os.RemoteException;
47 android.os.IBinder.FIRST_CALL_TRANSACTION;
52 android.os.IBinder.FIRST_CALL_TRANSACTION;
/packages/apps/Settings/tests/robotests/src/com/android/settings/system/
DSystemUpdatePreferenceControllerTest.java18 import static android.os.SystemUpdateManager.KEY_STATUS;
19 import static android.os.SystemUpdateManager.KEY_TITLE;
20 import static android.os.SystemUpdateManager.STATUS_IDLE;
21 import static android.os.SystemUpdateManager.STATUS_UNKNOWN;
22 import static android.os.SystemUpdateManager.STATUS_WAITING_DOWNLOAD;
29 import android.os.Build;
30 import android.os.Bundle;
31 import android.os.SystemUpdateManager;
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageWizardFormatProgress.java19 import static android.os.storage.VolumeInfo.TYPE_PRIVATE;
25 import android.os.AsyncTask;
26 import android.os.Bundle;
27 import android.os.IVoldTaskListener;
28 import android.os.PersistableBundle;
29 import android.os.SystemProperties;
30 import android.os.storage.StorageManager;
31 import android.os.storage.VolumeInfo;
/packages/apps/Car/libs/
Dresource_generator.py19 import os
88 directory = resource_dir + os.path.sep + dir_prefix
92 if not os.path.exists(directory):
95 os.mkdir(directory)
97 filename = directory + os.path.sep + resource_type + file_extension
98 if not os.path.exists(filename):
150 reformatted_xml += " " * leading_spaces + line + os.linesep
261 if not os.path.isfile(csv):
263 if not os.path.isdir(resource_dir):
/packages/services/Car/tests/CarDeveloperOptions/
Dwrap_alpha.py3 import os
6 for root, dirs, files in os.walk('.'):
14 os.rename(os.path.join(root, before), os.path.join(root, after))
17 for root, dirs, files in os.walk('.'):
/packages/apps/Settings/
Dwrap_alpha.py3 import os
6 for root, dirs, files in os.walk('.'):
14 os.rename(os.path.join(root, before), os.path.join(root, after))
17 for root, dirs, files in os.walk('.'):
/packages/apps/Dialer/java/com/android/dialer/strictmode/impl/
DSystemDialerStrictMode.java20 import android.os.Build;
21 import android.os.Build.VERSION_CODES;
22 import android.os.Handler;
23 import android.os.Looper;
24 import android.os.StrictMode;
25 import android.os.StrictMode.ThreadPolicy;
26 import android.os.StrictMode.VmPolicy;
/packages/apps/Settings/src/com/android/settings/
DFallbackHome.java28 import android.os.AsyncTask;
29 import android.os.Bundle;
30 import android.os.Handler;
31 import android.os.Message;
32 import android.os.PowerManager;
33 import android.os.SystemClock;
34 import android.os.UserHandle;
35 import android.os.UserManager;
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardFormatProgress.java19 import static android.os.storage.VolumeInfo.TYPE_PRIVATE;
25 import android.os.AsyncTask;
26 import android.os.Bundle;
27 import android.os.IVoldTaskListener;
28 import android.os.PersistableBundle;
29 import android.os.SystemProperties;
30 import android.os.storage.StorageManager;
31 import android.os.storage.VolumeInfo;
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java19 import static android.os.Environment.buildExternalStorageAppDataDirs;
20 import static android.os.Environment.buildExternalStorageAppMediaDirs;
21 import static android.os.Environment.buildExternalStorageAppObbDirs;
22 import static android.os.Environment.buildExternalStoragePublicDirs;
40 import android.os.Bundle;
41 import android.os.Environment;
42 import android.os.FileUtils;
43 import android.os.Handler;
44 import android.os.HandlerThread;
45 import android.os.Process;
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Dmisctest.cpp361 Writer1(OutputStream& os) : os_(&os) {} in Writer1() argument
363 void Reset(OutputStream& os) { in Reset() argument
364 os_ = &os; in Reset()
440 Writer2(OutputStream& os) : os_(&os) {} in Writer2() argument
442 void Reset(OutputStream& os) { in Reset() argument
443 os_ = &os; in Reset()
520 Writer3(OutputStream& os) : os_(&os) {} in Writer3() argument
522 void Reset(OutputStream& os) { in Reset() argument
523 os_ = &os; in Reset()
624 Writer4(OutputStream& os) : os_(&os) {} in Writer4() argument
[all …]

12345678910>>...208