HomeSort by relevance Sort by last modified time
    Searched defs:Os (Results 1 - 25 of 28) sorted by null

1 2

  /external/llvm/include/llvm/Passes/
PassBuilder.h 112 Os,
  /cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
ReadMultiViewTest.java 25 import android.system.Os;
54 assertEquals(Os.getuid(), Os.stat(ourCache.getAbsolutePath()).st_uid);
55 assertEquals(Os.getuid(), Os.stat(ourTestDir.getAbsolutePath()).st_uid);
56 assertEquals(Os.getuid(), Os.stat(testFile.getAbsolutePath()).st_uid);
70 assertNotEqual(Os.getuid(), Os.stat(testFile.getAbsolutePath()).st_uid);
71 assertNotEqual(Os.getuid(), Os.stat(otherCache.getAbsolutePath()).st_uid)
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
WriteMultiViewTest.java 24 import android.os.SystemClock;
25 import android.system.Os;
48 Os.rename(otherTestDir.getAbsolutePath(), ourTestDir.getAbsolutePath());
50 assertEquals(Os.getuid(), Os.stat(ourCache.getAbsolutePath()).st_uid);
51 assertEquals(Os.getuid(), Os.stat(ourTestDir.getAbsolutePath()).st_uid);
52 assertEquals(Os.getuid(), Os.stat(afterFile.getAbsolutePath()).st_uid);
67 Os.rename(ourTestDir.getAbsolutePath(), otherTestDir.getAbsolutePath())
    [all...]
WriteExternalStorageTest.java 36 import android.os.Environment;
37 import android.os.SystemClock;
39 import android.system.Os;
302 final String userId = Integer.toString(android.os.Process.myUid() / 100000);
332 assertEquals(Os.getuid(), Os.stat(before.getAbsolutePath()).st_uid);
333 assertEquals(Os.getuid(), Os.stat(beforeFile.getAbsolutePath()).st_uid);
341 Os.rename(before.getAbsolutePath(), after.getAbsolutePath());
347 assertNotEqual(Os.getuid(), Os.stat(after.getAbsolutePath()).st_uid)
    [all...]
  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/net/
SocketFacade.java 21 import android.system.Os;
44 * android.system.Os socket used for UDP and TCP sockets
405 * The following APIs are used to open, close, send and receive data over Os.socket
406 * This uses android.system.Os class and can be used for UDP and TCP traffic
410 * Open socket using android.system.Os class.
420 FileDescriptor fd = Os.socket(domain, type, 0);
422 Os.bind(fd, localAddr, port.intValue());
433 * Close socket of android.system.Os class
441 Os.close(fd);
464 int bytes = Os.sendto(fd, data, 0, data.length, 0, remote, remotePort.intValue())
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
Hoarder.java 22 import android.os.SystemClock;
24 import android.system.Os;
68 final StructStatVfs stat = Os.statvfs(dir.getAbsolutePath());
75 fd = Os.open(target.getAbsolutePath(),
77 Os.posix_fallocate(fd, 0, size);
93 if (fd != null) Os.close(fd);
108 Os.mkdir(a.getAbsolutePath(), 0700);
111 Os.mkdir(b.getAbsolutePath(), 0700);
Utils.java 20 import android.system.Os;
75 Os.mkdir(subdir.getAbsolutePath(), 0700);
84 + " [" + android.os.Process.myUserHandle() + "]");
95 + " [" + android.os.Process.myUserHandle() + "]");
104 try (FileOutputStream os = new FileOutputStream(file)) {
107 os.write(buf, 0, (int) Math.min(buf.length, size));
121 final FileDescriptor fd = Os.open(file.getAbsolutePath(),
124 Os.posix_fallocate(fd, 0, length);
126 Os.close(fd);
155 return Os.lstat(f.getAbsolutePath()).st_blocks * 512
    [all...]
  /cts/tests/tests/net/src/android/net/cts/
IpSecBaseTest.java 27 import android.system.Os;
107 return ((InetSocketAddress) Os.getsockname(sock)).getPort();
140 Os.write(mFd, data, 0, data.length);
152 bytesRead.set(Os.recvfrom(mFd, in, 0, DATA_BUFFER_LEN, 0, null));
176 Os.close(mFd);
204 Os.sendto(mFd, data, 0, data.length, 0, dstAddr, port);
343 Os.socket(domain, OsConstants.SOCK_DGRAM, OsConstants.IPPROTO_UDP));
345 Os.socket(domain, OsConstants.SOCK_DGRAM, OsConstants.IPPROTO_UDP));
349 Os.bind(sock.mFd, localAddr, 0);
353 Os.connect(leftSock.mFd, localAddr, rightSock.getPort())
    [all...]
IpSecManagerTest.java 41 import android.system.Os;
119 Os.socket(getDomain(address), OsConstants.SOCK_DGRAM, OsConstants.IPPROTO_UDP);
124 Os.bind(sock, address, port);
328 uidTxDelta = TrafficStats.getUidTxPackets(Os.getuid()) - uidTxPackets;
329 uidRxDelta = TrafficStats.getUidRxPackets(Os.getuid()) - uidRxPackets;
354 long newUidTxBytes = TrafficStats.getUidTxBytes(Os.getuid());
355 long newUidRxBytes = TrafficStats.getUidRxBytes(Os.getuid());
356 long newUidTxPackets = TrafficStats.getUidTxPackets(Os.getuid());
357 long newUidRxPackets = TrafficStats.getUidRxPackets(Os.getuid());
397 uidTxBytes = TrafficStats.getUidTxBytes(Os.getuid())
    [all...]
  /cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
PingReflector.java 20 import android.system.Os;
92 Os.write(mFd, buf, 0, buf.length);
100 return Os.read(mFd, buf, 0, buf.length);
  /cts/tests/tests/net/src/android/net/ipv6/cts/
PingTest.java 23 import android.system.Os;
90 FileDescriptor s = Os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6);
91 Os.setsockoptTimeval(s, SOL_SOCKET, SO_RCVTIMEO, StructTimeval.fromMillis(100));
104 int ret = Os.sendto(s, ByteBuffer.wrap(packet), 0, address, port);
119 bytesRead = Os.recvfrom(s, responseBuffer, 0, from);
128 bytesRead = Os.read(s, responseBuffer);
141 int id = ((InetSocketAddress) Os.getsockname(s)).getPort();
169 Os.close(s);
  /external/ant-glob/src/org/apache/tools/ant/taskdefs/condition/
Os.java 26 * Condition that tests the OS type.
30 public class Os implements Condition {
32 System.getProperty("os.name").toLowerCase(Locale.ENGLISH);
34 System.getProperty("os.arch").toLowerCase(Locale.ENGLISH);
36 System.getProperty("os.version").toLowerCase(Locale.ENGLISH);
41 * OS family to look for
45 * Name of OS
49 * version of OS
53 * OS architecture
57 * OS family that can be tested for. {@value
    [all...]
  /external/swiftshader/third_party/subzero/src/
IceCompileServer.cpp 130 llvm::raw_svector_ostream OS(Buffer);
131 OS << "LLVM ERROR: " << Reason << "\n";
132 llvm::StringRef MessageStr = OS.str();
196 std::unique_ptr<Ostream> Os;
212 Os.reset(FdOs.release());
215 Os->SetBufferSize(1 << 14);
219 Os = makeStream(Flags.getOutputFilename(), EC);
225 Os->SetUnbuffered();
246 dumpBuildAttributes(*Os.get());
250 Ctx.reset(new GlobalContext(Ls.get(), Os.get(), Ls.get(), ELFStr.get()))
    [all...]
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/
VpnTestHelper.java 41 import android.os.Build.VERSION_CODES;
43 import android.system.Os;
184 FileDescriptor socket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP);
193 Os.connect(socket, InetAddress.getByName(host), port);
194 Os.write(socket, echo, 0, echo.length);
200 int ret = Os.poll(new StructPollfd[] { pollfd }, SOCKET_TIMEOUT_MS);
204 int read = Os.read(socket, reply, 0, echo.length);
214 InetSocketAddress local = (InetSocketAddress) Os.getsockname(socket);
228 Os.close(socket);
234 socket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP)
    [all...]
  /cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
PacketReflector.java 25 import android.system.Os;
188 Os.write(mFd, buf, 0, len);
197 len = Os.read(mFd, buf, 0, buf.length);
VpnTest.java 19 import static android.os.Process.INVALID_UID;
36 import android.os.ParcelFileDescriptor;
37 import android.os.Process;
38 import android.os.SystemProperties;
43 import android.system.Os;
310 s = Os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6);
314 s = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP);
321 Os.connect(s, address, port);
322 Os.write(s, packet, 0, packet.length);
328 int ret = Os.poll(new StructPollfd[] { pollfd }, SOCKET_TIMEOUT_MS)
    [all...]
  /cts/tests/tests/selinux/common/src/android/security/
SELinuxTargetSdkTestBase.java 3 import android.system.Os;
147 Os.chmod(path, 0700);
  /external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Passes/
PassBuilder.h 162 Os,
  /cts/tests/tests/provider/src/android/provider/cts/
ProviderTestUtils.java 28 import android.os.Environment;
29 import android.os.FileUtils;
30 import android.os.ParcelFileDescriptor;
36 import android.system.Os;
301 Os.access(path, OsConstants.F_OK);
  /cts/tests/tests/net/util/java/android/net/cts/util/
CtsNetUtils.java 39 import android.system.Os;
168 assertEquals(Os.strerror(OsConstants.ECONNABORTED), expected.getMessage());
  /build/soong/android/
module.go 64 Os() OsType
255 // whether this module provides services owned by the OS provider to the core platform. When set
347 // the host OS. E.g. benchmarks are supported on Linux but not Darwin.
549 func (a *ModuleBase) Os() OsType {
550 return a.Target().Os
554 return a.Os().Class == Host || a.Os().Class == HostCross
619 return !a.Os().DefaultDisabled
817 if ctx.Os().Class != Device && ctx.Os().Class != Generic
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
ExifInterfaceTest.java 22 import android.os.Environment;
23 import android.os.FileUtils;
26 import android.system.Os;
388 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDONLY, 0600);
430 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDWR, 0600);
433 Os.lseek(fd, 0, OsConstants.SEEK_SET);
441 Os.lseek(fd, 0, OsConstants.SEEK_SET);
447 Os.lseek(fd, 0, OsConstants.SEEK_SET);
  /cts/tests/tests/os/src/android/os/cts/
MessageQueueTest.java 17 package android.os.cts;
19 import android.os.Handler;
20 import android.os.HandlerThread;
21 import android.os.Looper;
22 import android.os.Message;
23 import android.os.MessageQueue;
24 import android.os.MessageQueue.OnFileDescriptorEventListener;
25 import android.os.ParcelFileDescriptor;
26 import android.os.ParcelFileDescriptor.AutoCloseInputStream;
27 import android.os.ParcelFileDescriptor.AutoCloseOutputStream
    [all...]
  /cts/tests/tests/permission/src/android/permission/cts/
FileSystemPermissionTest.java 29 import android.os.Environment;
31 import android.system.Os;
80 * TODO: Combine this file with {@link android.os.cts.FileAccessPermissionTest}
89 dumpable = Os.prctl(OsConstants.PR_GET_DUMPABLE, 0, 0, 0, 0);
90 Os.prctl(OsConstants.PR_SET_DUMPABLE, 1, 0, 0, 0);
95 Os.prctl(OsConstants.PR_SET_DUMPABLE, dumpable, 0, 0, 0);
362 try (FileOutputStream os = new FileOutputStream(f)) {
364 os.write(Integer.toString(value).getBytes());
437 // Note: reads from /proc/self/pagemap *must* be 64-bit aligned. Use low-level android.system.Os routines to
445 long seek = Os.lseek(pagemap, offset, OsConstants.SEEK_SET)
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapFactoryTest.java 37 import android.os.Parcel;
38 import android.os.ParcelFileDescriptor;
40 import android.system.Os;
    [all...]

Completed in 2911 milliseconds

1 2