Home
last modified time | relevance | path

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

123456

/frameworks/rs/scriptc/
Drs_atomic.rsh29 * Atomic add one to the value at addr.
30 * Equal to rsAtomicAdd(addr, 1)
32 * @param addr Address of value to increment
37 rsAtomicInc(volatile int32_t* addr);
40 * Atomic subtract one from the value at addr. Equal to rsAtomicSub(addr, 1)
42 * @param addr Address of value to decrement
47 rsAtomicDec(volatile int32_t* addr);
50 * Atomic add a value to the value at addr. addr[0] += value
52 * @param addr Address of value to modify
53 * @param value Amount to add to the value at addr
[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/rs/cpu_ref/linkloader/lib/
DStubLayout.cpp34 void *StubLayout::allocateStub(void *addr) { in allocateStub() argument
36 std::map<void *, void *>::iterator index_iter = stub_index.find(addr); in allocateStub()
50 setStubAddress(stub, addr); in allocateStub()
51 stub_index.insert(std::make_pair(addr, stub)); in allocateStub()
68 void StubLayoutAARCH64::setStubAddress(void *stub_, void *addr) { in setStubAddress() argument
98 *target = reinterpret_cast<uint64_t>(addr); in setStubAddress()
105 void StubLayoutARM::setStubAddress(void *stub_, void *addr) { in setStubAddress() argument
113 *target = addr; in setStubAddress()
120 void StubLayoutMIPS::setStubAddress(void *stub_, void *addr) { in setStubAddress() argument
121 uint32_t addr32 = (uint32_t)(uintptr_t)addr; in setStubAddress()
[all …]
DGOT.cpp29 int search_got(int symbol_index, void *addr, uint8_t bind_type) in search_got() argument
36 addr = (void *)(((intptr_t)addr + 0x8000) & 0xFFFF0000); in search_got()
44 if (got_symbol_addresses[i] == addr) { in search_got()
50 rsl_assert (got_symbol_addresses[i] == addr in search_got()
60 got_symbol_addresses[got_symbol_count] = addr; in search_got()
/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 …]
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);
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 …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DSmsMessage.java133 CdmaSmsAddress addr = new CdmaSmsAddress(); in newFromParcel() local
158 addr.digitMode = (byte) (0xFF & addressDigitMode); //p_cur->sAddress.digit_mode in newFromParcel()
159 addr.numberMode = (byte) (0xFF & p.readInt()); //p_cur->sAddress.number_mode in newFromParcel()
160 addr.ton = p.readInt(); //p_cur->sAddress.number_type in newFromParcel()
161 addr.numberPlan = (byte) (0xFF & p.readInt()); //p_cur->sAddress.number_plan in newFromParcel()
163 addr.numberOfDigits = count; in newFromParcel()
175 addr.origBytes = data; in newFromParcel()
216 env.origAddress = addr; in newFromParcel()
218 msg.mOriginatingAddress = addr; in newFromParcel()
517 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 …]
/frameworks/rs/cpu_ref/linkloader/include/
DStubLayout.h35 void *allocateStub(void *addr = 0);
41 virtual void setStubAddress(void *stub, void *addr) = 0;
51 virtual void setStubAddress(void *stub, void *addr);
60 virtual void setStubAddress(void *stub, void *addr);
69 virtual void setStubAddress(void *stub, void *addr);
78 virtual void setStubAddress(void *stub, void *addr);
87 virtual void setStubAddress(void *stub, void *addr);
/frameworks/base/core/java/android/net/
DNetworkUtils.java166 byte [] addr = inetAddr.getAddress(); in inetAddressToInt()
167 return ((addr[3] & 0xff) << 24) | ((addr[2] & 0xff) << 16) | in inetAddressToInt()
168 ((addr[1] & 0xff) << 8) | (addr[0] & 0xff); in inetAddressToInt()
335 for (InetAddress addr : addrs) { in makeStrings()
336 result[i++] = addr.getHostAddress(); in makeStrings()
350 public static String trimV4AddrZeros(String addr) { in trimV4AddrZeros() argument
351 if (addr == null) return null; in trimV4AddrZeros()
352 String[] octets = addr.split("\\."); in trimV4AddrZeros()
353 if (octets.length != 4) return addr; in trimV4AddrZeros()
358 if (octets[i].length() > 3) return addr; in trimV4AddrZeros()
[all …]
DLinkAddress.java77 static int scopeForUnicastAddress(InetAddress addr) { in scopeForUnicastAddress() argument
78 if (addr.isAnyLocalAddress()) { in scopeForUnicastAddress()
82 if (addr.isLoopbackAddress() || addr.isLinkLocalAddress()) { in scopeForUnicastAddress()
88 if (!(addr instanceof Inet4Address) && addr.isSiteLocalAddress()) { in scopeForUnicastAddress()
/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/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/libbcc/lib/Renderscript/
DRSExecutable.cpp70 void *addr = result->getSymbolAddress(name); in Create() local
71 if (addr == NULL) { in Create()
75 result->mExportVarAddrs.push_back(addr); in Create()
87 void *addr = result->getSymbolAddress(name); in Create() local
88 if (addr == NULL) { in Create()
92 result->mExportFuncAddrs.push_back(addr); in Create()
106 void *addr = result->getSymbolAddress(expanded_func_name.string()); in Create() local
107 if (addr == NULL) { in Create()
111 result->mExportForeachFuncAddrs.push_back(addr); in Create()
/frameworks/opt/net/wifi/service/tools/halutil/
Dhalutil.cpp68 void parseMacAddress(const char *str, mac_addr addr);
567 result[i].addr[0], result[i].addr[1], result[i].addr[2], result[i].addr[3], in onRTTResults()
568 result[i].addr[4], result[i].addr[5], result[i].ts, result[i].rssi, in onRTTResults()
630 memcpy(params[i].addr, results[i].bssid, sizeof(mac_addr)); in testRTT()
631 mac_addr &addr = params[i].addr; in testRTT() local
632 printMsg("Adding %02x:%02x:%02x:%02x:%02x:%02x (%d) for RTT\n", addr[0], in testRTT()
633 addr[1], addr[2], addr[3], addr[4], addr[5], results[i].channel); in testRTT()
720 mac_addr &addr = params.ap[i].bssid; in setHotlistAPs() local
721 printMsg("%02x:%02x:%02x:%02x:%02x:%02x\t%d\t%d\n", addr[0], in setHotlistAPs()
722 addr[1], addr[2], addr[3], addr[4], addr[5], in setHotlistAPs()
[all …]
/frameworks/compile/mclinker/lib/Target/X86/
DX86PLT.cpp172 *offset = m_GOTPLT.addr() + 4; in applyPLT0()
174 *offset = m_GOTPLT.addr() + 8; in applyPLT0()
183 assert(m_Section.addr() && ".plt base address is NULL!"); in applyPLT1()
194 GOTEntryOffset += m_GOTPLT.addr(); in applyPLT1()
258 *offset = m_GOTPLT.addr() - addr() + 8 - 6; in applyPLT0()
261 *offset = m_GOTPLT.addr() - addr() + 16 - 12; in applyPLT0()
269 assert(m_Section.addr() && ".plt base address is NULL!"); in applyPLT1()
278 uint64_t SymGOTPCREL = m_GOTPLT.addr(); in applyPLT1()
288 SymGOTPCREL -= addr() + PLTEntryOffset + 6; in applyPLT1()
/frameworks/base/libs/common_time/
Dcommon_time_server_api.cpp45 status_t CommonTimeServer::getMasterAddr(struct sockaddr_storage* addr) { in getMasterAddr() argument
48 memcpy(addr, &mMasterEP, sizeof(*addr)); in getMasterAddr()
95 struct sockaddr_storage *addr) { in getMasterElectionEndpoint() argument
97 memcpy(addr, &mMasterElectionEP, sizeof(*addr)); in getMasterElectionEndpoint()
102 const struct sockaddr_storage *addr) { in setMasterElectionEndpoint() argument
105 if (!addr) in setMasterElectionEndpoint()
109 if (addr->ss_family != AF_INET) in setMasterElectionEndpoint()
114 reinterpret_cast<const struct sockaddr_in*>(addr)->sin_port); in setMasterElectionEndpoint()
119 reinterpret_cast<const struct sockaddr_in*>(addr)->sin_addr.s_addr); in setMasterElectionEndpoint()
123 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/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/compile/libbcc/lib/ExecutionEngine/
DSymbolResolverProxy.cpp24 void *addr = mChain[i]->getAddress(pName); in getAddress() local
25 if (addr != NULL) { in getAddress()
26 return addr; in getAddress()
/frameworks/opt/net/wifi/service/jni/
Dcom_android_server_wifi_WifiNative.cpp524 static void parseMacAddress(const char *str, mac_addr addr) { in parseMacAddress() argument
525 addr[0] = parseHexByte(str); in parseMacAddress()
526 addr[1] = parseHexByte(str); in parseMacAddress()
527 addr[2] = parseHexByte(str); in parseMacAddress()
528 addr[3] = parseHexByte(str); in parseMacAddress()
529 addr[4] = parseHexByte(str); in parseMacAddress()
530 addr[5] = parseHexByte(str); in parseMacAddress()
533 static bool parseMacAddress(JNIEnv *env, jobject obj, mac_addr addr) { in parseMacAddress() argument
548 parseMacAddress(bssid, addr); in parseMacAddress()
637 mac_addr addr; in android_net_wifi_setHotlist() local
[all …]
/frameworks/compile/mclinker/lib/LD/
DEhFrameHdr.cpp56 *eh_frame_ptr = m_EhFrame.addr() - (m_EhFrameHdr.addr() + 4); in emitOutput()
92 fde_addr = m_EhFrame.addr() + offset; in emitOutput()
104 bst[id++] = (*entry).first - m_EhFrameHdr.addr(); in emitOutput()
105 bst[id++] = (*entry).second - m_EhFrameHdr.addr(); in emitOutput()
187 pc += m_EhFrame.addr() + pFDE.getOffset() + in computePCBegin()

123456