Home
last modified time | relevance | path

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

12345678910>>...77

/packages/apps/Mms/src/com/android/mms/ui/
DUriImage.java294 ByteArrayOutputStream os = null; in getResizedImageData() local
346 (os != null && os.size() > byteLimit)) { in getResizedImageData()
370 if (os != null) { in getResizedImageData()
372 os.close(); in getResizedImageData()
377 os = new ByteArrayOutputStream(); in getResizedImageData()
378 b.compress(CompressFormat.JPEG, quality, os); in getResizedImageData()
379 int jpgFileSize = os.size(); in getResizedImageData()
390 if (os != null) { in getResizedImageData()
392 os.close(); in getResizedImageData()
397 os = new ByteArrayOutputStream(); in getResizedImageData()
[all …]
/packages/apps/Browser/tools/
Dget_search_engines.py28 import os
65 self.resdir = os.path.normpath(os.path.join(sys.path[0], '../res'))
178 all_search_engines_path = os.path.join(self.resdir, 'values/all_search_engines.xml')
190 self.generateXmlFromTemplate(os.path.join(sys.path[0], 'all_search_engines.template.xml'),
194 self.writeEngineList(os.path.join(self.resdir, 'values'), "default")
211 dir_path = os.path.join(self.resdir, 'values-' + language + '-r' + country)
216 if os.path.exists(dir_path) and not os.path.isdir(dir_path):
238 self.generateXmlFromTemplate(os.path.join(sys.path[0], 'search_engines.template.xml'),
239 os.path.join(dir_path, 'donottranslate-search_engines.xml'),
252 dir_path = os.path.dirname(out_path)
[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/experimental/procstatlog/
Dprocstatreport.py21 import os
156 "user": cgi.escape(os.environ.get("USER", "unknown")),
160 files_dir = "%s_files" % os.path.splitext(filename)[0]
161 files_url = os.path.basename(files_dir)
162 if not os.path.isdir(files_dir): os.makedirs(files_dir)
197 os.path.join(files_dir, "total_cpu.csv"))
239 os.path.join(files_dir, "cpu_speed.csv"))
270 os.path.join(files_dir, "context_switches.csv"))
335 os.path.join(files_dir, "total_faults.csv"))
366 os.path.join(files_dir, "binder_calls.csv"))
[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 final ZipOutputStream os = new ZipOutputStream(new FileOutputStream(outFile)); in exportData() local
66 os.setLevel(Deflater.BEST_COMPRESSION); in exportData()
68 addDirectory(context, os, context.getFilesDir().getParentFile(), "contacts-files"); in exportData()
70 Closeables.closeQuietly(os); in exportData()
143 private static void addDirectory(Context context, ZipOutputStream os, File current, in addDirectory() argument
158 addDirectory(context, os, child, childStoredPath); in addDirectory()
160 addFile(os, child, childStoredPath); in addDirectory()
171 private static void addFile(ZipOutputStream os, File current, String storedPath) in addFile() argument
175 os.putNextEntry(new ZipEntry(storedPath)); in addFile()
184 os.write(buf, 0, len); in addFile()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaScannerService.java30 import android.os.Bundle;
31 import android.os.Environment;
32 import android.os.FileUtils;
33 import android.os.Handler;
34 import android.os.IBinder;
35 import android.os.Looper;
36 import android.os.Message;
37 import android.os.PowerManager;
38 import android.os.Process;
39 import android.os.SystemProperties;
[all …]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/service/
DSearchParams.java19 import android.os.Parcel;
20 import android.os.Parcelable;
92 SearchParams os = (SearchParams) o; in equals() local
93 return mMailboxId == os.mMailboxId in equals()
94 && mIncludeChildren == os.mIncludeChildren in equals()
95 && mFilter.equals(os.mFilter) in equals()
96 && Objects.equal(mStartDate, os.mStartDate) in equals()
97 && Objects.equal(mEndDate, os.mEndDate) in equals()
98 && mLimit == os.mLimit in equals()
99 && mOffset == os.mOffset; in equals()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java26 import android.os.Binder;
27 import android.os.ParcelUuid;
28 import android.os.Process;
29 import android.os.UserHandle;
30 import android.os.UserManager;
165 public static void copyStream(InputStream is, OutputStream os, int bufferSize) in copyStream() argument
167 if (is != null && os != null) { in copyStream()
171 os.write(buffer, 0, bytesRead); in copyStream()
186 public static void safeCloseStream(OutputStream os) { in safeCloseStream() argument
187 if (os != null) { in safeCloseStream()
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DStorageTest.java28 import android.os.Environment;
29 import android.os.StatFs;
77 mOriginal = libcore.io.Libcore.os; in setUp()
78 libcore.io.Libcore.os = new ForwardingOs(mOriginal) { in setUp()
81 return stealBytes(os.statvfs(path)); in setUp()
86 return stealBytes(os.fstatvfs(fd)); in setUp()
106 libcore.io.Libcore.os = mOriginal; in tearDown()
196 final FileOutputStream os = new FileOutputStream(dirtyFile); in prepareAndRunDownload() local
198 Os.posix_fallocate(os.getFD(), 0, dirtySize); in prepareAndRunDownload()
199 IoUtils.closeQuietly(os); in prepareAndRunDownload()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DUninstallAppProgress.java29 import android.os.Bundle;
30 import android.os.Handler;
31 import android.os.IBinder;
32 import android.os.Message;
33 import android.os.RemoteException;
34 import android.os.ServiceManager;
35 import android.os.UserHandle;
36 import android.os.UserManager;
181 mUser = android.os.Process.myUserHandle(); in onCreate()
186 throw new SecurityException("User " + android.os.Process.myUserHandle() + " can't " in onCreate()
DUninstallerActivity.java36 import android.os.Bundle;
37 import android.os.IBinder;
38 import android.os.RemoteException;
39 import android.os.ServiceManager;
40 import android.os.UserHandle;
41 import android.os.UserManager;
83 } else if (!dialogInfo.user.equals(android.os.Process.myUserHandle())) { in onCreateDialog()
173 mDialogInfo.user = android.os.Process.myUserHandle(); in onCreate()
/packages/apps/Settings/src/com/android/settings/
DDeviceInfoSettings.java25 import android.os.Binder;
26 import android.os.Build;
27 import android.os.Bundle;
28 import android.os.Parcel;
29 import android.os.RemoteException;
30 import android.os.SELinux;
31 import android.os.SystemClock;
32 import android.os.SystemProperties;
33 import android.os.UserHandle;
34 import android.os.UserManager;
[all …]
DBatteryInfo.java24 import android.os.BatteryManager;
25 import android.os.BatteryStats;
26 import android.os.Bundle;
27 import android.os.Handler;
28 import android.os.IPowerManager;
29 import android.os.Message;
30 import android.os.ServiceManager;
31 import android.os.SystemClock;
DCryptKeeper.java28 import android.os.AsyncTask;
29 import android.os.Bundle;
30 import android.os.Handler;
31 import android.os.IBinder;
32 import android.os.Message;
33 import android.os.PowerManager;
34 import android.os.RemoteException;
35 import android.os.ServiceManager;
36 import android.os.SystemProperties;
37 import android.os.UserHandle;
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageSummary.java25 import android.os.BatteryStats;
26 import android.os.Build;
27 import android.os.Bundle;
28 import android.os.Handler;
29 import android.os.Message;
30 import android.os.UserHandle;
31 import android.os.UserManager;
41 import com.android.internal.os.BatterySipper;
42 import com.android.internal.os.BatteryStatsHelper;
43 import com.android.internal.os.PowerProfile;
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DFileSystemUtils.java68 int os = OTHER;
77 os = WINDOWS;
88 os = UNIX;
91 os = POSIX_UNIX;
93 os = OTHER;
97 os = INIT_PROBLEM;
99 OS = os;
189 long freeSpaceOS(String path, int os, boolean kb) throws IOException { in freeSpaceOS() argument
193 switch (os) { in freeSpaceOS()
/packages/services/Telephony/src/com/android/phone/
DPhoneGlobals.java36 import android.os.AsyncResult;
37 import android.os.Handler;
38 import android.os.IBinder;
39 import android.os.IPowerManager;
40 import android.os.Message;
41 import android.os.PowerManager;
42 import android.os.RemoteException;
43 import android.os.ServiceManager;
44 import android.os.SystemClock;
45 import android.os.SystemProperties;
[all …]
DNetworkQueryService.java23 import android.os.AsyncResult;
24 import android.os.Binder;
25 import android.os.Handler;
26 import android.os.IBinder;
27 import android.os.Message;
28 import android.os.RemoteCallbackList;
29 import android.os.RemoteException;
DEmergencyCallbackModeExitDialog.java32 import android.os.AsyncResult;
33 import android.os.Bundle;
34 import android.os.CountDownTimer;
35 import android.os.Handler;
36 import android.os.IBinder;
37 import android.os.Looper;
38 import android.os.Message;
39 import android.os.SystemProperties;
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DProfileOwnerProvisioningService.java44 import android.os.AsyncTask;
45 import android.os.IBinder;
46 import android.os.Parcelable;
47 import android.os.PersistableBundle;
48 import android.os.Process;
49 import android.os.RemoteException;
50 import android.os.ServiceManager;
51 import android.os.UserHandle;
52 import android.os.UserManager;
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/
DProviderPerfActivity.java41 import android.os.Binder;
42 import android.os.Bundle;
43 import android.os.Debug;
44 import android.os.Handler;
45 import android.os.IBinder;
46 import android.os.Parcel;
47 import android.os.RemoteException;
48 import android.os.ServiceManager;
49 import android.os.SystemClock;
50 import android.os.StrictMode;
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DStorageMeasurement.java29 import android.os.Environment;
30 import android.os.Environment.UserEnvironment;
31 import android.os.Handler;
32 import android.os.HandlerThread;
33 import android.os.IBinder;
34 import android.os.Looper;
35 import android.os.Message;
36 import android.os.UserHandle;
37 import android.os.UserManager;
38 import android.os.storage.StorageVolume;
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageMeasurement.java29 import android.os.Environment;
30 import android.os.Environment.UserEnvironment;
31 import android.os.Handler;
32 import android.os.HandlerThread;
33 import android.os.IBinder;
34 import android.os.Looper;
35 import android.os.Message;
36 import android.os.UserHandle;
37 import android.os.UserManager;
38 import android.os.storage.StorageVolume;
DMemory.java32 import android.os.Bundle;
33 import android.os.Environment;
34 import android.os.IBinder;
35 import android.os.RemoteException;
36 import android.os.ServiceManager;
37 import android.os.UserManager;
38 import android.os.storage.IMountService;
39 import android.os.storage.StorageEventListener;
40 import android.os.storage.StorageManager;
41 import android.os.storage.StorageVolume;

12345678910>>...77