Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 146) sorted by relevance

123456

/frameworks/rs/api/
Drs_atomic.spec37 arg: volatile int32_t* addr, "Address of the value to modify."
41 Atomicly adds a value to the value at addr, i.e. <code>*addr += value</code>.
48 arg: volatile uint32_t* addr
56 arg: volatile int32_t* addr, "Address of the value to modify."
60 Atomicly performs a bitwise and of two values, storing the result back at addr,
61 i.e. <code>*addr &amp;= value</code>.
68 arg: volatile uint32_t* addr
76 arg: volatile int32_t* addr, "Address of the value to compare and replace if the test passes."
81 If the value at addr matches compareValue then the newValue is written at addr,
82 i.e. <code>if (*addr == compareValue) { *addr = newValue; }</code>.
[all …]
/frameworks/rs/scriptc/
Drs_atomic.rsh42 * Atomicly adds a value to the value at addr, i.e. *addr += value.
45 * addr: Address of the value to modify.
48 * Returns: Value of *addr prior to the operation.
52 rsAtomicAdd(volatile int32_t* addr, int32_t value);
57 rsAtomicAdd(volatile uint32_t* addr, uint32_t value);
63 * Atomicly performs a bitwise and of two values, storing the result back at addr,
64 * i.e. *addr &= value.
67 * addr: Address of the value to modify.
70 * Returns: Value of *addr prior to the operation.
74 rsAtomicAnd(volatile int32_t* addr, int32_t value);
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataCallResponse.java90 for (String addr : addresses) { in toString()
91 sb.append(addr); in toString()
96 for (String addr : dnses) { in toString()
97 sb.append(addr); in toString()
102 for (String addr : gateways) { in toString()
103 sb.append(addr); in toString()
108 for (String addr : pcscf) { in toString()
109 sb.append(addr); in toString()
137 for (String addr : addresses) { in setLinkProperties()
138 addr = addr.trim(); in setLinkProperties()
[all …]
/frameworks/base/location/tests/locationtests/src/android/location/
DGeocoderTest.java42 Address addr = addresses1.get(0); in testGeocoder() local
43 assertEquals("94305", addr.getFeatureName()); in testGeocoder()
44 assertEquals("Palo Alto, CA 94305", addr.getAddressLine(0)); in testGeocoder()
45 assertEquals("USA", addr.getAddressLine(1)); in testGeocoder()
46 assertEquals("94305", addr.getPostalCode()); in testGeocoder()
47 assertFalse(Math.abs(addr.getLatitude() - 37.4240385) > 0.1); in testGeocoder()
53 addr = addresses2.get(0); in testGeocoder()
54 assertEquals("San Francisco", addr.getFeatureName()); in testGeocoder()
55 assertEquals("San Francisco, CA", addr.getAddressLine(0)); in testGeocoder()
56 assertEquals("United States", addr.getAddressLine(1)); in testGeocoder()
[all …]
/frameworks/av/media/common_time/
Dutils.cpp24 bool canSerializeSockaddr(const struct sockaddr_storage* addr) { in canSerializeSockaddr() argument
25 switch (addr->ss_family) { in canSerializeSockaddr()
34 void serializeSockaddr(Parcel* p, const struct sockaddr_storage* addr) { in serializeSockaddr() argument
35 switch (addr->ss_family) { in serializeSockaddr()
38 reinterpret_cast<const struct sockaddr_in*>(addr); in serializeSockaddr()
46 reinterpret_cast<const struct sockaddr_in6*>(addr); in serializeSockaddr()
61 void deserializeSockaddr(const Parcel* p, struct sockaddr_storage* addr) { in deserializeSockaddr() argument
62 memset(addr, 0, sizeof(*addr)); in deserializeSockaddr()
64 addr->ss_family = p->readInt32(); in deserializeSockaddr()
65 switch(addr->ss_family) { in deserializeSockaddr()
[all …]
DICommonTimeConfig.cpp86 virtual status_t getMasterElectionEndpoint(struct sockaddr_storage *addr) { in getMasterElectionEndpoint() argument
95 deserializeSockaddr(&reply, addr); in getMasterElectionEndpoint()
103 const struct sockaddr_storage *addr) { in setMasterElectionEndpoint() argument
106 if (!canSerializeSockaddr(addr)) in setMasterElectionEndpoint()
108 if (NULL == addr) { in setMasterElectionEndpoint()
112 serializeSockaddr(&data, addr); in setMasterElectionEndpoint()
350 struct sockaddr_storage addr; in onTransact() local
351 status_t status = getMasterElectionEndpoint(&addr); in onTransact()
353 if ((status == OK) && !canSerializeSockaddr(&addr)) { in onTransact()
360 serializeSockaddr(reply, &addr); in onTransact()
[all …]
Dutils.h27 extern bool canSerializeSockaddr(const struct sockaddr_storage* addr);
28 extern void serializeSockaddr(Parcel* p, const struct sockaddr_storage* addr);
30 struct sockaddr_storage* addr);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DSmsMessage.java134 CdmaSmsAddress addr = new CdmaSmsAddress(); in newFromParcel() local
159 addr.digitMode = (byte) (0xFF & addressDigitMode); //p_cur->sAddress.digit_mode in newFromParcel()
160 addr.numberMode = (byte) (0xFF & p.readInt()); //p_cur->sAddress.number_mode in newFromParcel()
161 addr.ton = p.readInt(); //p_cur->sAddress.number_type in newFromParcel()
162 addr.numberPlan = (byte) (0xFF & p.readInt()); //p_cur->sAddress.number_plan in newFromParcel()
164 addr.numberOfDigits = count; in newFromParcel()
176 addr.origBytes = data; in newFromParcel()
217 env.origAddress = addr; in newFromParcel()
219 msg.mOriginatingAddress = addr; in newFromParcel()
519 CdmaSmsAddress addr = new CdmaSmsAddress(); in parsePdu() local
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
DCdmaSmsAddress.java197 CdmaSmsAddress addr = new CdmaSmsAddress(); in parse() local
198 addr.address = address; in parse()
199 addr.ton = CdmaSmsAddress.TON_UNKNOWN; in parse()
206 addr.digitMode = DIGIT_MODE_4BIT_DTMF; in parse()
207 addr.numberMode = NUMBER_MODE_NOT_DATA_NETWORK; in parse()
209 addr.ton = TON_INTERNATIONAL_OR_IP; in parse()
217 addr.digitMode = DIGIT_MODE_8BIT_CHAR; in parse()
218 addr.numberMode = NUMBER_MODE_DATA_NETWORK; in parse()
220 addr.ton = TON_NATIONAL_OR_EMAIL; in parse()
223 addr.origBytes = origBytes; in parse()
[all …]
DBearerData.java766 private static void encodeCdmaSmsAddress(CdmaSmsAddress addr) throws CodingException { in encodeCdmaSmsAddress() argument
767 if (addr.digitMode == CdmaSmsAddress.DIGIT_MODE_8BIT_CHAR) { in encodeCdmaSmsAddress()
769 addr.origBytes = addr.address.getBytes("US-ASCII"); in encodeCdmaSmsAddress()
774 addr.origBytes = encodeDtmfSmsAddress(addr.address); in encodeCdmaSmsAddress()
781 CdmaSmsAddress addr = bData.callbackNumber; in encodeCallbackNumber() local
782 encodeCdmaSmsAddress(addr); in encodeCallbackNumber()
785 if (addr.digitMode == CdmaSmsAddress.DIGIT_MODE_8BIT_CHAR) { in encodeCallbackNumber()
787 dataBits = addr.numberOfDigits * 8; in encodeCallbackNumber()
789 dataBits = addr.numberOfDigits * 4; in encodeCallbackNumber()
795 outStream.write(1, addr.digitMode); in encodeCallbackNumber()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
DCdmaSmsTest.java48 CdmaSmsAddress addr = CdmaSmsAddress.parse("6502531000"); in testCdmaSmsAddrParsing() local
49 assertEquals(addr.ton, CdmaSmsAddress.TON_UNKNOWN); in testCdmaSmsAddrParsing()
50 assertEquals(addr.digitMode, CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF); in testCdmaSmsAddrParsing()
51 assertEquals(addr.numberMode, CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK); in testCdmaSmsAddrParsing()
52 assertEquals(addr.numberOfDigits, 10); in testCdmaSmsAddrParsing()
53 assertEquals(addr.origBytes.length, 10); in testCdmaSmsAddrParsing()
56 assertEquals(addr.origBytes[i], data[i]); in testCdmaSmsAddrParsing()
58 addr = CdmaSmsAddress.parse("(650) 253-1000"); in testCdmaSmsAddrParsing()
59 assertEquals(addr.ton, CdmaSmsAddress.TON_UNKNOWN); in testCdmaSmsAddrParsing()
60 assertEquals(addr.digitMode, CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF); in testCdmaSmsAddrParsing()
[all …]
/frameworks/base/docs/html/guide/topics/renderscript/reference/
Drs_atomic.jd116 …dd(volatile <a href='rs_value_types.html#android_rs:int32_t'>int32_t</a>* addr, <a href='rs_value_…
122 …(volatile <a href='rs_value_types.html#android_rs:uint32_t'>uint32_t</a>* addr, <a href='rs_value_…
131 <tr><th>addr</th><td>Address of the value to modify.</td></tr>
137 <tr><td>Value of *addr prior to the operation.</td></tr>
141 <p> Atomicly adds a value to the value at addr, i.e. <code>*addr += value</code>.
155 …nd(volatile <a href='rs_value_types.html#android_rs:int32_t'>int32_t</a>* addr, <a href='rs_value_…
161 …(volatile <a href='rs_value_types.html#android_rs:uint32_t'>uint32_t</a>* addr, <a href='rs_value_…
170 <tr><th>addr</th><td>Address of the value to modify.</td></tr>
176 <tr><td>Value of *addr prior to the operation.</td></tr>
180 <p> Atomicly performs a bitwise and of two values, storing the result back at addr,
[all …]
/frameworks/base/core/java/android/net/
DNetworkUtils.java132 byte [] addr = inetAddr.getAddress(); in inetAddressToInt()
133 return ((addr[3] & 0xff) << 24) | ((addr[2] & 0xff) << 16) | in inetAddressToInt()
134 ((addr[1] & 0xff) << 8) | (addr[0] & 0xff); in inetAddressToInt()
336 for (InetAddress addr : addrs) { in makeStrings()
337 result[i++] = addr.getHostAddress(); in makeStrings()
351 public static String trimV4AddrZeros(String addr) { in trimV4AddrZeros() argument
352 if (addr == null) return null; in trimV4AddrZeros()
353 String[] octets = addr.split("\\."); in trimV4AddrZeros()
354 if (octets.length != 4) return addr; in trimV4AddrZeros()
359 if (octets[i].length() > 3) return addr; in trimV4AddrZeros()
[all …]
DLinkAddress.java79 static int scopeForUnicastAddress(InetAddress addr) { in scopeForUnicastAddress() argument
80 if (addr.isAnyLocalAddress()) { in scopeForUnicastAddress()
84 if (addr.isLoopbackAddress() || addr.isLinkLocalAddress()) { in scopeForUnicastAddress()
90 if (!(addr instanceof Inet4Address) && addr.isSiteLocalAddress()) { in scopeForUnicastAddress()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkUtilsTest.java29 private InetAddress Address(String addr) { in Address() argument
30 return InetAddress.parseNumericAddress(addr); in Address()
33 private Inet4Address IPv4Address(String addr) { in IPv4Address() argument
34 return (Inet4Address) Address(addr); in IPv4Address()
49 private void assertInvalidNetworkMask(Inet4Address addr) { in assertInvalidNetworkMask() argument
51 NetworkUtils.netmaskToPrefixLength(addr); in assertInvalidNetworkMask()
52 fail("Invalid netmask " + addr.getHostAddress() + " did not cause exception"); in assertInvalidNetworkMask()
/frameworks/av/media/libstagefright/rtsp/
DUDPPusher.cpp40 struct sockaddr_in addr; in UDPPusher() local
41 memset(addr.sin_zero, 0, sizeof(addr.sin_zero)); in UDPPusher()
42 addr.sin_family = AF_INET; in UDPPusher()
43 addr.sin_addr.s_addr = INADDR_ANY; in UDPPusher()
44 addr.sin_port = 0; in UDPPusher()
46 CHECK_EQ(0, bind(mSocket, (const struct sockaddr *)&addr, sizeof(addr))); in UDPPusher()
DARTPSession.cpp104 struct sockaddr_in addr; in MakeUDPSocket() local
105 memset(addr.sin_zero, 0, sizeof(addr.sin_zero)); in MakeUDPSocket()
106 addr.sin_family = AF_INET; in MakeUDPSocket()
107 addr.sin_addr.s_addr = INADDR_ANY; in MakeUDPSocket()
108 addr.sin_port = htons(port); in MakeUDPSocket()
110 CHECK_EQ(0, bind(s, (const struct sockaddr *)&addr, sizeof(addr))); in MakeUDPSocket()
/frameworks/compile/mclinker/lib/Target/X86/
DX86PLT.cpp155 *offset = m_GOTPLT.addr() + 4; in applyPLT0()
157 *offset = m_GOTPLT.addr() + 8; in applyPLT0()
165 assert(m_Section.addr() && ".plt base address is NULL!"); in applyPLT1()
176 GOTEntryOffset += m_GOTPLT.addr(); in applyPLT1()
238 *offset = m_GOTPLT.addr() - addr() + 8 - 6; in applyPLT0()
241 *offset = m_GOTPLT.addr() - addr() + 16 - 12; in applyPLT0()
248 assert(m_Section.addr() && ".plt base address is NULL!"); in applyPLT1()
257 uint64_t SymGOTPCREL = m_GOTPLT.addr(); in applyPLT1()
267 SymGOTPCREL -= addr() + PLTEntryOffset + 6; in applyPLT1()
/frameworks/av/media/libstagefright/foundation/
DANetworkSession.cpp189 in_addr_t addr = ntohl(localAddr.sin_addr.s_addr); in Session() local
192 (addr >> 24), in Session()
193 (addr >> 16) & 0xff, in Session()
194 (addr >> 8) & 0xff, in Session()
195 addr & 0xff); in Session()
197 addr = ntohl(remoteAddr.sin_addr.s_addr); in Session()
200 (addr >> 24), in Session()
201 (addr >> 16) & 0xff, in Session()
202 (addr >> 8) & 0xff, in Session()
203 addr & 0xff); in Session()
[all …]
/frameworks/base/libs/common_time/
Dcommon_time_server_api.cpp47 status_t CommonTimeServer::getMasterAddr(struct sockaddr_storage* addr) { in getMasterAddr() argument
50 memcpy(addr, &mMasterEP, sizeof(*addr)); in getMasterAddr()
97 struct sockaddr_storage *addr) { in getMasterElectionEndpoint() argument
99 memcpy(addr, &mMasterElectionEP, sizeof(*addr)); in getMasterElectionEndpoint()
104 const struct sockaddr_storage *addr) { in setMasterElectionEndpoint() argument
107 if (!addr) in setMasterElectionEndpoint()
111 if (addr->ss_family != AF_INET) in setMasterElectionEndpoint()
116 reinterpret_cast<const struct sockaddr_in*>(addr)->sin_port); in setMasterElectionEndpoint()
121 reinterpret_cast<const struct sockaddr_in*>(addr)->sin_addr.s_addr); in setMasterElectionEndpoint()
125 memcpy(&mMasterElectionEP, addr, sizeof(mMasterElectionEP)); in setMasterElectionEndpoint()
Ddiag_thread.cpp106 struct sockaddr_in addr; in openListenSocket() local
107 memset(&addr, 0, sizeof(addr)); in openListenSocket()
108 addr.sin_family = AF_INET; in openListenSocket()
109 addr.sin_addr.s_addr = INADDR_ANY; in openListenSocket()
110 addr.sin_port = htons(kListenPort); in openListenSocket()
112 if (bind(listen_fd_, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in openListenSocket()
/frameworks/base/libs/hwui/utils/
DLinearAllocator.cpp126 node->dtor(node->addr); in ~LinearAllocator()
190 void LinearAllocator::addToDestructionList(Destructor dtor, void* addr) { in addToDestructionList() argument
197 node->addr = addr; in addToDestructionList()
202 void LinearAllocator::runDestructorFor(void* addr) { in runDestructorFor() argument
206 if (node->addr == addr) { in runDestructorFor()
212 node->dtor(node->addr); in runDestructorFor()
/frameworks/compile/mclinker/lib/Target/
DELFDynamic.cpp200 applyOne(llvm::ELF::DT_INIT, pFormat.getInit().addr()); in applyEntries()
203 applyOne(llvm::ELF::DT_FINI, pFormat.getFini().addr()); in applyEntries()
206 applyOne(llvm::ELF::DT_PREINIT_ARRAY, pFormat.getPreInitArray().addr()); in applyEntries()
211 applyOne(llvm::ELF::DT_INIT_ARRAY, pFormat.getInitArray().addr()); in applyEntries()
216 applyOne(llvm::ELF::DT_FINI_ARRAY, pFormat.getFiniArray().addr()); in applyEntries()
221 applyOne(llvm::ELF::DT_HASH, pFormat.getHashTab().addr()); in applyEntries()
224 applyOne(llvm::ELF::DT_GNU_HASH, pFormat.getGNUHashTab().addr()); in applyEntries()
227 applyOne(llvm::ELF::DT_SYMTAB, pFormat.getDynSymTab().addr()); in applyEntries()
232 applyOne(llvm::ELF::DT_STRTAB, pFormat.getDynStrTab().addr()); in applyEntries()
240 applyOne(llvm::ELF::DT_JMPREL, pFormat.getRelPlt().addr()); in applyEntries()
[all …]
/frameworks/base/core/java/android/os/
DCommonTimeUtils.java194 int addr = reply.readInt(); in transactGetSockaddr() local
197 (addr >> 24) & 0xFF, in transactGetSockaddr()
198 (addr >> 16) & 0xFF, in transactGetSockaddr()
199 (addr >> 8) & 0xFF, in transactGetSockaddr()
200 addr & 0xFF); in transactGetSockaddr()
232 public int transactSetSockaddr(int method_code, InetSocketAddress addr) { in transactSetSockaddr() argument
240 if (null == addr) { in transactSetSockaddr()
244 final InetAddress a = addr.getAddress(); in transactSetSockaddr()
246 final int p = addr.getPort(); in transactSetSockaddr()
/frameworks/compile/mclinker/lib/LD/
DEhFrameHdr.cpp55 *eh_frame_ptr = m_EhFrame.addr() - (m_EhFrameHdr.addr() + 4); in emitOutput()
93 fde_addr = m_EhFrame.addr() + offset; in emitOutput()
105 bst[id++] = (*entry).first - m_EhFrameHdr.addr(); in emitOutput()
106 bst[id++] = (*entry).second - m_EhFrameHdr.addr(); in emitOutput()
182 pc += m_EhFrame.addr() + pFDE.getOffset() + in computePCBegin()

123456