Home
last modified time | relevance | path

Searched refs:ip (Results 1 – 25 of 172) sorted by relevance

1234567

/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dvr.rscript119 int3 ip = convert_int3(p);
120 ip = clamp(ip, 4, 500);
121 short pix = rsGetElementAt_short(volume, ip.x, ip.y, ip.z);
135 int3 ip = convert_int3(p);
137 if (isInBrick(ip)) { // isInBrick(ip)) {
139 float3 delta = p - convert_float3(ip);
141 // short2 tmps = rsAllocationVLoadX_short2(volume, ip.x + 0, ip.y + 0, ip.z + 0);
143 float v_0_0_0 = (float) rsGetElementAt_short(volume, ip.x + 0, ip.y + 0, ip.z + 0);
144 float v_0_0_1 = (float) rsGetElementAt_short(volume, ip.x + 1, ip.y + 0, ip.z + 0);
146 float v_0_1_0 = (float) rsGetElementAt_short(volume, ip.x + 0, ip.y + 1, ip.z + 0);
[all …]
/frameworks/base/core/java/android/os/
DPatternMatcher.java221 int ip = 0, im = 0; in matchGlobPattern() local
223 while ((ip<NP) && (im<NM)) { in matchGlobPattern()
225 ip++; in matchGlobPattern()
226 nextChar = ip < NP ? pattern.charAt(ip) : 0; in matchGlobPattern()
230 ip++; in matchGlobPattern()
231 nextChar = ip < NP ? pattern.charAt(ip) : 0; in matchGlobPattern()
235 if (ip >= (NP-1)) { in matchGlobPattern()
240 ip++; in matchGlobPattern()
241 nextChar = pattern.charAt(ip); in matchGlobPattern()
245 ip++; in matchGlobPattern()
[all …]
/frameworks/libs/net/common/netd/libnetdutils/
DInternetAddresses.cpp40 const in_addr v4 = mData.ip.v4; in toString()
45 const in6_addr v6 = mData.ip.v6; in toString()
60 bool IPAddress::forString(const std::string& repr, IPAddress* ip) { in forString() argument
75 if (ip) *ip = IPAddress(sin->sin_addr); in forString()
80 if (ip) *ip = IPAddress(sin6->sin6_addr, sin6->sin6_scope_id); in forString()
91 IPPrefix::IPPrefix(const IPAddress& ip, int length) : IPPrefix(ip) { in IPPrefix() argument
102 mData.ip.v4.s_addr &= htonl(mask); in IPPrefix()
110 mData.ip.v6.s6_addr[which] &= mask; in IPPrefix()
112 mData.ip.v6.s6_addr[i] = 0U; in IPPrefix()
133 IPAddress ip; in forString() local
[all …]
DInternetAddressesTest.cpp154 IPAddress ip; in TEST() local
156 EXPECT_FALSE(IPAddress::forString("not_an_ip", &ip)); in TEST()
410 const char* ip; in TEST() member
425 IPAddress ip; in TEST() local
426 EXPECT_TRUE(IPAddress::forString(expectation.ip, &ip)) in TEST()
427 << "Failed to parse IP address " << expectation.ip; in TEST()
433 IPPrefix prefix(ip, expectation.cidrLen); in TEST()
437 EXPECT_EQ(ipTruncated, prefix.ip()) in TEST()
438 << "Unexpected IP truncation: " << prefix.ip() << ", expected: " << ipTruncated; in TEST()
717 EXPECT_EQ(IPAddress(FE80_2, idx), linkLocalNtpSockaddr.ip()); in TEST()
[all …]
/frameworks/libs/net/common/netd/libnetdutils/include/netdutils/
DInternetAddresses.h43 } ip{.v6 = IN6ADDR_ANY_INIT}; // written and read in network-byte order
58 const in_addr v4a = a.ip.v4;
59 const in_addr v4b = b.ip.v4;
63 const in6_addr v6a = a.ip.v6;
64 const in6_addr v6b = b.ip.v6;
81 const in_addr v4a = a.ip.v4;
82 const in_addr v4b = b.ip.v4;
87 const in6_addr v6a = a.ip.v6;
88 const in6_addr v6b = b.ip.v6;
126 static bool forString(const std::string& repr, IPAddress* ip);
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/SettingsNoInput/
Ddevice_for_input_source.pfw28 ip = 0
51 ip = 0
74 ip = 0
97 ip = 0
120 ip = 0
143 ip = 0
166 ip = 0
189 ip = 0
212 ip = 0
235 ip = 0
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/SettingsNoOutput/
Ddevice_for_strategies.pfw28 ip = 0
56 ip = 0
84 ip = 0
112 ip = 0
140 ip = 0
168 ip = 0
196 ip = 0
224 ip = 0
252 ip = 0
/frameworks/libs/net/common/device/com/android/net/module/util/ip/
DIpNeighborMonitor.java17 package com.android.net.module.util.ip;
62 public static int startKernelNeighborProbe(int ifIndex, InetAddress ip) { in startKernelNeighborProbe() argument
63 final String msgSnippet = "probing ip=" + ip.getHostAddress() + "%" + ifIndex; in startKernelNeighborProbe()
67 1, ip, StructNdMsg.NUD_PROBE, ifIndex, null); in startKernelNeighborProbe()
86 final InetAddress ip; field in IpNeighborMonitor.NeighborEvent
90 public NeighborEvent(long elapsedMs, short msgType, int ifindex, InetAddress ip, in NeighborEvent() argument
95 this.ip = ip; in NeighborEvent()
114 .add(ip.getHostAddress()) in toString()
DInterfaceController.java17 package com.android.net.module.util.ip;
172 public boolean addAddress(InetAddress ip, int prefixLen) { in addAddress() argument
174 mNetd.interfaceAddAddress(mIfName, ip.getHostAddress(), prefixLen); in addAddress()
176 logError("failed to add %s/%d: %s", ip, prefixLen, e); in addAddress()
185 public boolean removeAddress(InetAddress ip, int prefixLen) { in removeAddress() argument
187 mNetd.interfaceDelAddress(mIfName, ip.getHostAddress(), prefixLen); in removeAddress()
189 logError("failed to remove %s/%d: %s", ip, prefixLen, e); in removeAddress()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessStats.java297 for (int ip=0; ip<pkgMap.size(); ip++) { in add()
298 final String pkgName = pkgMap.keyAt(ip); in add()
299 final SparseArray<LongSparseArray<PackageState>> uids = pkgMap.valueAt(ip); in add()
349 for (int ip = 0, size = uidStates.size(); ip < size; ip++) { in add()
350 final int uid = uidStates.keyAt(ip); in add()
353 uidState = uidStates.valueAt(ip).clone(); in add()
356 uidState.add(uidStates.valueAt(ip)); in add()
361 for (int ip=0; ip<procMap.size(); ip++) { in add()
362 SparseArray<ProcessState> uids = procMap.valueAt(ip); in add()
390 for (int ip = 0, size = mUidStates.size(); ip < size; ip++) { in add()
[all …]
DProcessState.java307 for (int ip = mCommonSources.size() - 1; ip >= 0; ip--) { in resetSafely()
308 final SourceState state = mCommonSources.valueAt(ip); in resetSafely()
312 mCommonSources.removeAt(ip); in resetSafely()
451 for (int ip=pkgList.size()-1; ip>=0; ip--) { in setState()
452 pullFixedProc(pkgList, ip).setCombinedState(state, now); in setState()
498 for (int ip = mCommonSources.size() - 1; ip >= 0; ip--) { in commitStateTime()
499 final SourceState src = mCommonSources.valueAt(ip); in commitStateTime()
618 for (int ip=pkgList.size()-1; ip>=0; ip--) { in addPss()
619 ProcessState fixedProc = pullFixedProc(pkgList, ip); in addPss()
636 for (int ip=pkgList.size()-1; ip>=0; ip--) { in reportExcessiveCpu()
[all …]
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dgrain.rscript17 #include "ip.rsh"
79 float4 ip = convert_float4(in);
82 float energy_level = ip.r + ip.g + ip.b;
86 ip += pnoise * gNoiseStrength;
87 ip = clamp(ip, 0.f, 255.f);
89 uchar4 p = convert_uchar4(ip);
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dgrain.rscript17 #include "ip.rsh"
79 float4 ip = convert_float4(in);
82 float energy_level = ip.r + ip.g + ip.b;
86 ip += pnoise * gNoiseStrength;
87 ip = clamp(ip, 0.f, 255.f);
89 uchar4 p = convert_uchar4(ip);
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dgrain.rscript17 #include "ip.rsh"
79 float4 ip = convert_float4(in);
82 float energy_level = ip.r + ip.g + ip.b;
86 ip += pnoise * gNoiseStrength;
87 ip = clamp(ip, 0.f, 255.f);
89 uchar4 p = convert_uchar4(ip);
/frameworks/base/tests/Internal/src/com/android/internal/protolog/
DProtoLogImplTest.java292 private ProtoLogData readProtoLogSingle(ProtoInputStream ip) throws IOException { in readProtoLogSingle() argument
293 while (ip.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readProtoLogSingle()
294 if (ip.getFieldNumber() == (int) ProtoLogFileProto.VERSION) { in readProtoLogSingle()
295 assertEquals(PROTOLOG_VERSION, ip.readString(ProtoLogFileProto.VERSION)); in readProtoLogSingle()
298 if (ip.getFieldNumber() != (int) ProtoLogFileProto.LOG) { in readProtoLogSingle()
301 long token = ip.start(ProtoLogFileProto.LOG); in readProtoLogSingle()
303 while (ip.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readProtoLogSingle()
304 switch (ip.getFieldNumber()) { in readProtoLogSingle()
306 data.mMessageHash = ip.readInt(ProtoLogMessage.MESSAGE_HASH); in readProtoLogSingle()
310 data.mElapsedTime = ip.readLong(ProtoLogMessage.ELAPSED_REALTIME_NANOS); in readProtoLogSingle()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/
DPackageManagerTests.java712 private void installFromRawResource(InstallParams ip, int flags, boolean cleanUp, boolean fail, in installFromRawResource() argument
715 ParsingPackage pkg = ip.pkg; in installFromRawResource()
716 Uri packageURI = ip.packageURI; in installFromRawResource()
741 cleanUpInstall(ip); in installFromRawResource()
753 InstallParams ip = new InstallParams(outFileName, rawResId); in installFromRawResource() local
754 installFromRawResource(ip, flags, cleanUp, fail, result, expInstallLocation); in installFromRawResource()
755 return ip; in installFromRawResource()
830 InstallParams ip = sampleInstallFromRawResource(flags, false); in sampleReplaceFromRawResource() local
835 receiver = new ReplaceReceiver(ip.pkg.getPackageName()); in sampleReplaceFromRawResource()
838 receiver = new InstallReceiver(ip.pkg.getPackageName()); in sampleReplaceFromRawResource()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DAppErrors.java180 for (int ip = 0; ip < processCount; ip++) { in dumpDebugLPr()
182 final String pname = pmap.keyAt(ip); in dumpDebugLPr()
183 final SparseArray<BadProcessInfo> uids = pmap.valueAt(ip); in dumpDebugLPr()
211 for (int ip = 0; ip < procCount; ip++) { in dumpDebugLPr()
213 final String pname = pmap.keyAt(ip); in dumpDebugLPr()
214 final SparseArray<Long> uids = pmap.valueAt(ip); in dumpDebugLPr()
247 for (int ip = 0; ip < processCount; ip++) { in dumpLPr()
248 final String pname = pmap.keyAt(ip); in dumpLPr()
249 final SparseArray<Long> uids = pmap.valueAt(ip); in dumpLPr()
278 for (int ip = 0; ip < processCount; ip++) { in dumpLPr()
[all …]
/frameworks/base/core/java/android/hardware/display/
DWifiDisplaySessionInfo.java47 String ip = in.readString();
49 return new WifiDisplaySessionInfo(client, session, group, pp, ip);
63 boolean client, int session, String group, String pp, String ip) { in WifiDisplaySessionInfo() argument
68 mIP = ip; in WifiDisplaySessionInfo()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicColorMatrix.cpp177 int16_t ip[16]; member in android::renderscript::RsdCpuScriptIntrinsicColorMatrix
239 if (ip[i] != 0) { in computeKey()
250 if ((ip[0] == ip[1]) && (ip[0] == ip[2]) && in computeKey()
251 (ip[4] == ip[5]) && (ip[4] == ip[6]) && in computeKey()
252 (ip[8] == ip[9]) && (ip[8] == ip[10]) && in computeKey()
253 (ip[12] == ip[13]) && (ip[12] == ip[14])) { in computeKey()
259 if (!(key.u.coeffMask & 0x0888) && (ip[15] == 256) && !(key.u.addMask & 0x8)) { in computeKey()
747 ip[ct] = (int16_t)(fp[ct] * 256.f + 0.5f); in updateCoeffCache()
907 cp->mOptKernel(out, in, cp->ip, len >> 2); in kernel()
924 rsdIntrinsicColorMatrix_int_K(out, in, len, &cp->mFnTab, cp->ip, cp->ipa); in kernel()
/frameworks/libs/net/common/native/ip_checksum/
Dchecksum.c111 uint32_t ipv4_pseudo_header_checksum(const struct iphdr* ip, uint16_t len) { in ipv4_pseudo_header_checksum() argument
114 temp_protocol = htons(ip->protocol); in ipv4_pseudo_header_checksum()
119 current = ip_checksum_add(current, &(ip->saddr), sizeof(uint32_t)); in ipv4_pseudo_header_checksum()
120 current = ip_checksum_add(current, &(ip->daddr), sizeof(uint32_t)); in ipv4_pseudo_header_checksum()
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/CarEmu/Settings/
Ddevice_for_product_strategies.pfw29 ip = 0
74 ip = 0
121 ip = 0
168 ip = 0
213 ip = 0
260 ip = 0
306 ip = 0
352 ip = 0
399 ip = 0
445 ip = 0
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Car/Settings/
Ddevice_for_product_strategies.pfw29 ip = 0
74 ip = 0
121 ip = 0
167 ip = 0
220 ip = 0
266 ip = 0
319 ip = 0
372 ip = 0
426 ip = 0
479 ip = 0
[all …]
/frameworks/av/media/codecs/amrwb/enc/src/
Daz_isp.c66 Word32 i, j, nf, ip, order; in Az_isp() local
109 ip = 0; /* indicator for f1 or f2 */ in Az_isp()
167 if (ip == 0) in Az_isp()
169 ip = 1; in Az_isp()
174 ip = 0; in Az_isp()
/frameworks/base/services/core/jni/gnss/
DAGnssCallback.cpp108 jbyteArray AGnssCallback_V1_0::convertToIpV4(uint32_t ip) { in convertToIpV4() argument
109 if (INADDR_NONE == ip) { in convertToIpV4()
121 ALOGV("Converting IPv4 address byte array (net_order) %x", ip); in convertToIpV4()
122 memcpy(ipv4, &ip, sizeof(ipv4)); in convertToIpV4()
/frameworks/av/media/codecs/amrnb/common/src/
Daz_lsp.cpp572 Word16 ip; in Az_lsp() local
630 ip = 0; /* indicator for f1 or f2 */ in Az_lsp()
706 if (ip == 0) in Az_lsp()
708 ip = 1; in Az_lsp()
713 ip = 0; in Az_lsp()

1234567