Home
last modified time | relevance | path

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

12345678910>>...162

/cts/tests/tests/security/src/android/security/cts/
DIBinderExchange.java22 public interface IBinderExchange extends android.os.IInterface {
24 public static abstract class Stub extends android.os.Binder
37 public static android.security.cts.IBinderExchange asInterface(android.os.IBinder obj) { in asInterface()
41 android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); in asInterface()
49 public android.os.IBinder asBinder() { in asBinder()
55 int code, android.os.Parcel data, android.os.Parcel reply, int flags) in onTransact()
56 throws android.os.RemoteException { in onTransact()
65 android.os.IBinder _arg0; in onTransact()
73 android.os.IBinder _result = this.getBinder(); in onTransact()
85 private android.os.IBinder mRemote;
[all …]
DDeviceIdleControllerTest.java19 import android.os.Bundle;
20 import android.os.Handler;
21 import android.os.IBinder;
22 import android.os.PowerManager;
23 import android.os.RemoteException;
24 import android.os.ResultReceiver;
25 import android.os.ServiceManager;
/cts/tests/tests/binder_ndk/src/android/binder/cts/
DILegacyBinder.java22 public interface ILegacyBinder extends android.os.IInterface {
23 public static class Stub extends android.os.Binder implements ILegacyBinder {
28 public static ILegacyBinder asInterface(android.os.IBinder obj) { in asInterface()
32 android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); in asInterface()
39 public int RepeatInt(int in) throws android.os.RemoteException { in RepeatInt()
43 public android.os.IBinder asBinder() { in asBinder()
47 public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) in onTransact()
48 throws android.os.RemoteException { in onTransact()
60 private android.os.IBinder mRemote;
61 Proxy(android.os.IBinder remote) { in Proxy()
[all …]
/cts/tests/tests/os/
DTEST_MAPPING10 "exclude-filter": "android.os.cts.BuildTest#testSdkInt"
13 "exclude-filter": "android.os.cts.StrictModeTest#testNonSdkApiUsage"
30 … "exclude-filter": "android.os.cts.AppHibernationIntegrationTest#testUnusedApp_getsForceStopped"
34 …"exclude-filter": "android.os.cts.AutoRevokeTest#testAppWithPermissionsChangedRecently_doesNotGetP…
38 …"exclude-filter": "android.os.cts.AutoRevokeTest#testAutoRevoke_goToUnusedAppsPage_removesSafetyCe…
42 "exclude-filter": "android.os.cts.AutoRevokeTest#testAutoRevoke_userAllowlisting"
46 …"exclude-filter": "android.os.cts.AutoRevokeTest#testPreMinAutoRevokeVersionUnusedApp_doesntGetPer…
50 "exclude-filter": "android.os.cts.AutoRevokeTest#testInstallGrants_notRevokedImmediately"
54 "exclude-filter": "android.os.cts.AutoRevokeTest#testUnusedApp_uninstallApp"
58 "exclude-filter": "android.os.cts.BuildTest#testSdkInt"
[all …]
DAndroid.bp44 "android.os.flags-aconfig-java",
57 "src/android/os/cts/IParcelFileDescriptorPeer.aidl",
58 "src/android/os/cts/IEmptyService.aidl",
59 "src/android/os/cts/ISeccompIsolatedService.aidl",
60 "src/android/os/cts/ISecondary.aidl",
61 "src/android/os/cts/ISharedMemoryService.aidl",
62 "src/android/os/cts/IParcelExceptionService.aidl",
92 "android.os.flags-aconfig-java",
97 "src/android/os/connectivity/cts/WifiActivityEnergyInfoTest.java",
98 "src/android/os/cts/BadParcelableExceptionTest.java",
[all …]
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DDeviceTestCompanion.java25 import android.os.ParcelFileDescriptor;
59 private String nextTest(@NonNull InputStream is, @NonNull OutputStream os, in nextTest() argument
71 os.write(lastTestSucceeded ? (byte) 1 : (byte) 0); in nextTest()
93 private boolean echoBytes(@NonNull InputStream is, @NonNull OutputStream os, int size) in echoBytes() argument
106 os.write(buffer); in echoBytes()
121 private boolean echoUntilStopSignal(@NonNull InputStream is, @NonNull OutputStream os) { in echoUntilStopSignal() argument
132 os.write(dataBytes); in echoUntilStopSignal()
148 private void helpToFigureOutIfCompanionZeroTerminates(@NonNull OutputStream os) in helpToFigureOutIfCompanionZeroTerminates() argument
151 os.write(new byte[1024]); in helpToFigureOutIfCompanionZeroTerminates()
152 os.write(new byte[1]); in helpToFigureOutIfCompanionZeroTerminates()
[all …]
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dallowlisted-methods.txt1os.Bundle> addAccount(String, String, String[], android.os.Bundle, android.app.Activity, android.a…
2 …roid.os.Bundle> removeAccount(android.accounts.Account, android.app.Activity, android.accounts.Acc…
4os.Bundle> updateCredentials(android.accounts.Account, String, android.os.Bundle, android.app.Acti…
/cts/hostsidetests/packagemanager/stats/device/src/com/android/cts/packagemanager/stats/device/
DUserInfoUtil.java19 import static android.os.UserManager.USER_TYPE_FULL_DEMO;
20 import static android.os.UserManager.USER_TYPE_FULL_GUEST;
21 import static android.os.UserManager.USER_TYPE_FULL_RESTRICTED;
22 import static android.os.UserManager.USER_TYPE_FULL_SECONDARY;
23 import static android.os.UserManager.USER_TYPE_FULL_SYSTEM;
24 import static android.os.UserManager.USER_TYPE_PROFILE_CLONE;
25 import static android.os.UserManager.USER_TYPE_PROFILE_MANAGED;
26 import static android.os.UserManager.USER_TYPE_PROFILE_PRIVATE;
27 import static android.os.UserManager.USER_TYPE_SYSTEM_HEADLESS;
/cts/hostsidetests/theme/
Dgenerate_images.py18 import os
134 out_file = os.path.join(out_path, os.path.join(version, "%s.zip" % density_bucket))
178 if 'ANDROID_SDK_ROOT' not in os.environ:
182 sdk_path = os.environ['ANDROID_SDK_ROOT']
183 if not os.path.isdir(sdk_path):
187 emu_path = os.path.join(os.path.join(sdk_path, 'tools'), 'emulator')
188 if not os.path.isfile(emu_path):
216 if 'ANDROID_BUILD_TOP' not in os.environ or 'ANDROID_HOST_OUT' not in os.environ:
220 theme_apk = os.path.join(os.environ['ANDROID_HOST_OUT'],
222 if not os.path.isfile(theme_apk):
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java32 import android.os.AsyncTask;
33 import android.os.Bundle;
34 import android.os.ParcelFileDescriptor;
35 import android.os.SystemClock;
161 try (OutputStream os = new ParcelFileDescriptor.AutoCloseOutputStream( in onAttached() argument
174 nextTest(is, os, "echo 32 bytes"); in onAttached()
176 os.write(origBuffer32); in onAttached()
183 nextTest(is, os, "echo 32 bytes"); in onAttached()
185 os.write(origBuffer32); in onAttached()
195 nextTest(is, os, "echo two 16 byte transfers as one"); in onAttached()
[all …]
/cts/hostsidetests/multidevices/tools/
Drun_all_tests.py17 import os
18 import os.path
31 CONFIG_FILE = os.path.join(os.getcwd(), 'config.yml')
32 TESTS_DIR = os.path.join(os.getcwd(), 'tests')
121 for root, _, files in os.walk(TESTS_DIR):
124 test_name = os.path.splitext(file)[0]
125 test_file_path = os.path.join(root, file)
135 summary_file_path = os.path.join(topdir, MOBLY_TEST_SUMMARY_TXT_FILE)
152 os.remove(os.path.join(topdir, MOBLY_TEST_SUMMARY_TXT_FILE))
/cts/tests/tests/os/src/android/os/cts/
DMessengerService.java18 package android.os.cts;
22 import android.os.Handler;
23 import android.os.IBinder;
24 import android.os.Message;
25 import android.os.Messenger;
26 import android.os.RemoteException;
DBuildExtTest.java17 package android.os.cts;
19 import static android.os.cts.BuildTest.runTestCpuAbi32;
20 import static android.os.cts.BuildTest.runTestCpuAbi64;
21 import static android.os.cts.BuildTest.runTestCpuAbiCommon;
23 import android.os.Build;
51 if (android.os.Process.is64Bit()) { in testCpuAbi()
DResultReceiverTest.java17 package android.os.cts;
19 import android.os.Bundle;
20 import android.os.Handler;
21 import android.os.Looper;
22 import android.os.Parcel;
23 import android.os.ResultReceiver;
/cts/apps/CameraITS/tools/
Drun_all_unit_tests.py17 import os
29 scene_path = os.path.join(os.environ['CAMERA_ITS_TOP'],
31 self.assertTrue(os.path.exists(scene_path),
38 test_path = os.path.join(os.environ['CAMERA_ITS_TOP'],
40 self.assertTrue(os.path.exists(test_path),
Drun_sensor_fusion.py17 import os
18 import os.path
134 os.mkdir(os.path.join(topdir, camera_id))
137 mobly_output_logs_path = os.path.join(topdir, camera_id)
138 mobly_scene_output_logs_path = os.path.join(
156 os.path.join(os.environ['CAMERA_ITS_TOP'], 'tests',
180 os.remove(run_all_tests.MOBLY_TEST_SUMMARY_TXT_FILE)
181 file_name = os.path.join(root_output_path, 'test_log.DEBUG')
199 tmp_yml_file = os.path.join(run_all_tests.YAML_FILE_DIR, tmp_yml_file_name)
200 os.remove(tmp_yml_file)
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DEphemeralService.java23 import android.os.Binder;
24 import android.os.IBinder;
25 import android.os.IInterface;
26 import android.os.Parcel;
27 import android.os.RemoteException;
28 import android.os.ResultReceiver;
29 import android.os.ShellCallback;
/cts/tests/process/src/android/os/cts/process/
DProcessTest2.java16 package android.os.cts.process;
18 import static android.os.cts.process.common.Consts.HELPER1_RECEIVER0;
19 import static android.os.cts.process.common.Consts.HELPER1_RECEIVER1;
20 import static android.os.cts.process.common.Consts.HELPER1_RECEIVER2;
21 import static android.os.cts.process.common.Consts.HELPER2_RECEIVER0;
22 import static android.os.cts.process.common.Consts.HELPER2_RECEIVER1;
23 import static android.os.cts.process.common.Consts.HELPER2_RECEIVER2;
24 import static android.os.cts.process.common.Consts.HELPER3_RECEIVER0;
25 import static android.os.cts.process.common.Consts.HELPER3_RECEIVER1;
26 import static android.os.cts.process.common.Consts.HELPER3_RECEIVER2;
[all …]
/cts/hostsidetests/os/test-apps/PowerManagerTestApp/src/android/os/powermanagertests/
DWakeLockTest.java17 package android.os.powermanagertests;
19 import static android.os.PowerManager.PARTIAL_WAKE_LOCK;
22 import android.os.Bundle;
23 import android.os.PowerManager.WakeLock;
24 import android.os.PowerManager;
/cts/hostsidetests/os/test-apps/StaticSharedLibProviderApp1/src/android/os/lib/provider/
DStaticSharedLib.java17 package android.os.lib.provider;
20 import android.os.lib.provider.recursive.StaticSharedLibRecursive;
21 import android.os.lib.provider.recursive.R;
26 context.getResources().getInteger(android.os.lib.provider.R.integer.version)); in getVersion()
30 .getInteger(android.os.lib.provider.recursive.R.integer.version); in getRecursiveVersion()
/cts/hostsidetests/appsecurity/test-apps/UseEmbeddedDexApp/src/com/android/cts/useembeddeddex/
DIsolatedService.java21 import android.os.Binder;
22 import android.os.IBinder;
31 Log.i("IsolatedService", "Service created in pid " + android.os.Process.myPid()); in onCreate()
36 Log.i("IsolatedService", "Service bound with pid " + android.os.Process.myPid()); in onBind()
43 Log.i("IsolatedService", "Service destroyed in pid " + android.os.Process.myPid()); in onDestroy()
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/
DIsolatedService.java20 import android.os.Handler;
21 import android.os.IBinder;
22 import android.os.Message;
23 import android.os.Messenger;
24 import android.os.Process;
25 import android.os.RemoteException;
/cts/hostsidetests/seccomp/app/
Dgen_blocklist.py17 import os
108 kernel_uapi_path = os.path.join(os.getenv('ANDROID_BUILD_TOP'),
113 '-I' + os.path.join(kernel_uapi_path,
115 '-I' + os.path.join(kernel_uapi_path)
151 candidates = sorted(glob.glob(os.path.join(os.getenv('ANDROID_BUILD_TOP'),
154 clang_exe = os.path.join(clang_dir, 'bin/clang')
155 if os.path.exists(clang_exe):
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/os/
DSharedMemoryTestService.java17 package android.car.cts.builtin.os;
21 import android.os.IBinder;
22 import android.os.ParcelFileDescriptor;
23 import android.os.RemoteException;
24 import android.os.SharedMemory;
/cts/tests/framework/base/windowmanager/backgroundactivity/common/src/android/server/wm/backgroundactivity/common/
DEventReceiver.java19 import android.os.Bundle;
20 import android.os.ConditionVariable;
21 import android.os.Handler;
22 import android.os.Looper;
23 import android.os.ResultReceiver;

12345678910>>...162