/frameworks/rs/scriptc/ |
D | rs_atomic.rsh | 29 * 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); 39 * Atomic add one to the value at addr. 40 * Equal to rsAtomicAdd(addr, 1) 42 * @param addr Address of value to increment 47 rsAtomicInc(volatile uint32_t* addr); 50 * Atomic subtract one from the value at addr. Equal to rsAtomicSub(addr, 1) 52 * @param addr Address of value to decrement [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataCallResponse.java | 86 for (String addr : addresses) { in toString() 87 sb.append(addr); in toString() 92 for (String addr : dnses) { in toString() 93 sb.append(addr); in toString() 98 for (String addr : gateways) { in toString() 99 sb.append(addr); in toString() 127 for (String addr : addresses) { in setLinkProperties() 128 addr = addr.trim(); in setLinkProperties() 129 if (addr.isEmpty()) continue; in setLinkProperties() 133 String [] ap = addr.split("/"); in setLinkProperties() [all …]
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
D | GeocoderTest.java | 42 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/ |
D | utils.cpp | 24 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 …]
|
D | utils.h | 27 extern bool canSerializeSockaddr(const struct sockaddr_storage* addr); 28 extern void serializeSockaddr(Parcel* p, const struct sockaddr_storage* addr); 30 struct sockaddr_storage* addr);
|
D | ICommonTimeConfig.cpp | 86 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/base/core/java/android/net/ |
D | NetworkUtils.java | 129 byte [] addr = inetAddr.getAddress(); in inetAddressToInt() 130 return ((addr[3] & 0xff) << 24) | ((addr[2] & 0xff) << 16) | in inetAddressToInt() 131 ((addr[1] & 0xff) << 8) | (addr[0] & 0xff); in inetAddressToInt() 245 for (InetAddress addr : addrs) { in makeStrings() 246 result[i++] = addr.getHostAddress(); in makeStrings() 260 public static String trimV4AddrZeros(String addr) { in trimV4AddrZeros() argument 261 if (addr == null) return null; in trimV4AddrZeros() 262 String[] octets = addr.split("\\."); in trimV4AddrZeros() 263 if (octets.length != 4) return addr; in trimV4AddrZeros() 268 if (octets[i].length() > 3) return addr; in trimV4AddrZeros() [all …]
|
/frameworks/rs/driver/linkloader/lib/ |
D | StubLayout.cpp | 35 void *StubLayout::allocateStub(void *addr) { in allocateStub() argument 37 std::map<void *, void *>::iterator index_iter = stub_index.find(addr); in allocateStub() 51 setStubAddress(stub, addr); in allocateStub() 52 stub_index.insert(std::make_pair(addr, stub)); in allocateStub() 69 void StubLayoutARM::setStubAddress(void *stub_, void *addr) { in setStubAddress() argument 77 *target = addr; in setStubAddress() 84 void StubLayoutMIPS::setStubAddress(void *stub_, void *addr) { in setStubAddress() argument 85 uint32_t addr32 = (uint32_t)(uintptr_t)addr; in setStubAddress()
|
D | GOT.cpp | 29 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/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | SmsMessage.java | 127 CdmaSmsAddress addr = new CdmaSmsAddress(); in newFromParcel() local 152 addr.digitMode = (byte) (0xFF & addressDigitMode); //p_cur->sAddress.digit_mode in newFromParcel() 153 addr.numberMode = (byte) (0xFF & p.readInt()); //p_cur->sAddress.number_mode in newFromParcel() 154 addr.ton = p.readInt(); //p_cur->sAddress.number_type in newFromParcel() 155 addr.numberPlan = (byte) (0xFF & p.readInt()); //p_cur->sAddress.number_plan in newFromParcel() 157 addr.numberOfDigits = count; in newFromParcel() 169 addr.origBytes = data; in newFromParcel() 210 env.origAddress = addr; in newFromParcel() 212 msg.mOriginatingAddress = addr; in newFromParcel() 503 CdmaSmsAddress addr = new CdmaSmsAddress(); in parsePdu() local [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsAddress.java | 197 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/base/tests/DumpRenderTree/src/com/android/dumprendertree/forwarder/ |
D | ForwardService.java | 41 int addr = getForwardHostAddr(); in ForwardService() local 42 if (addr != -1) { in ForwardService() 43 fs8000 = new ForwardServer(8000, addr, 8000); in ForwardService() 44 fs8080 = new ForwardServer(8080, addr, 8080); in ForwardService() 45 fs8443 = new ForwardServer(8443, addr, 8443); in ForwardService() 87 int addr = -1; in getForwardHostAddr() local 111 addr = AdbUtils.resolve(host); in getForwardHostAddr() 115 return addr; in getForwardHostAddr()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsTest.java | 48 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/ |
D | UDPPusher.cpp | 40 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()
|
D | ARTPSession.cpp | 104 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/ |
D | RSExecutable.cpp | 70 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/av/media/libstagefright/wifi-display/ |
D | ANetworkSession.cpp | 170 in_addr_t addr = ntohl(localAddr.sin_addr.s_addr); in Session() local 173 (addr >> 24), in Session() 174 (addr >> 16) & 0xff, in Session() 175 (addr >> 8) & 0xff, in Session() 176 addr & 0xff); in Session() 178 addr = ntohl(remoteAddr.sin_addr.s_addr); in Session() 181 (addr >> 24), in Session() 182 (addr >> 16) & 0xff, in Session() 183 (addr >> 8) & 0xff, in Session() 184 addr & 0xff); in Session() [all …]
|
/frameworks/rs/driver/linkloader/include/ |
D | StubLayout.h | 35 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);
|
/frameworks/base/services/common_time/ |
D | common_time_server_api.cpp | 45 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()
|
D | diag_thread.cpp | 106 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/compile/libbcc/lib/AndroidBitcode/ARM/ |
D | ARMABCExpandVAArg.cpp | 53 llvm::Value *addr = builder.CreateLoad(va_list_addr_bpp, "ap.cur"); in expandVAArg() local 61 builder.CreatePtrToInt(addr, llvm::Type::getInt32Ty(*mContext)); in expandVAArg() 66 addr = builder.CreateIntToPtr(addr_as_int, bp); in expandVAArg() 68 llvm::Value *addr_typed = builder.CreateBitCast(addr, pty); in expandVAArg() 71 llvm::Value *next_addr = builder.CreateGEP(addr, in expandVAArg()
|
/frameworks/compile/mclinker/lib/Target/X86/ |
D | X86PLT.cpp | 193 *offset = m_GOTPLT.addr() + 4; in applyPLT0() 195 *offset = m_GOTPLT.addr() + 8; in applyPLT0() 204 assert(m_Section.addr() && ".plt base address is NULL!"); in applyPLT1() 215 GOTEntryOffset += m_GOTPLT.addr(); in applyPLT1() 279 *offset = m_GOTPLT.addr() - addr() + 8 - 6; in applyPLT0() 282 *offset = m_GOTPLT.addr() - addr() + 16 - 12; in applyPLT0() 290 assert(m_Section.addr() && ".plt base address is NULL!"); in applyPLT1() 299 uint64_t SymGOTPCREL = m_GOTPLT.addr(); in applyPLT1() 309 SymGOTPCREL -= addr() + PLTEntryOffset + 6; in applyPLT1()
|
/frameworks/compile/libbcc/lib/ExecutionEngine/ |
D | SymbolResolverProxy.cpp | 24 void *addr = mChain[i]->getAddress(pName); in getAddress() local 25 if (addr != NULL) { in getAddress() 26 return addr; in getAddress()
|
/frameworks/compile/mclinker/lib/LD/ |
D | EhFrameHdr.cpp | 59 *eh_frame_ptr = m_EhFrame.addr() - (m_EhFrameHdr.addr() + 4); in emitOutput() 97 fde_addr = m_EhFrame.addr() + offset; in emitOutput() 109 bst[id++] = (*entry).first - m_EhFrameHdr.addr(); in emitOutput() 110 bst[id++] = (*entry).second - m_EhFrameHdr.addr(); in emitOutput() 200 pc += m_EhFrame.addr() + pFDE.getOffset() + pFDE.getDataStart(); in computePCBegin()
|
/frameworks/base/core/java/android/os/ |
D | CommonTimeUtils.java | 194 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()
|