Home
last modified time | relevance | path

Searched refs:ntohs (Results 1 – 15 of 15) sorted by relevance

/frameworks/av/media/common_time/
Dutils.cpp41 p->writeInt32(static_cast<int32_t>(ntohs(s->sin_port))); in serializeSockaddr()
54 p->writeInt32(static_cast<int32_t>(ntohs(s->sin6_port))); in serializeSockaddr()
/frameworks/av/media/libstagefright/rtsp/
DUDPPusher.cpp115 if (!onPush() && !(ntohs(mRemoteAddr.sin_port) & 1)) { in onMessageReceived()
131 tmp.sin_port = htons(ntohs(mRemoteAddr.sin_port) | 1); in onMessageReceived()
DARTPWriter.cpp71 CHECK_EQ(0, ntohs(mRTPAddr.sin_port) & 1); in ARTPWriter()
74 mRTCPAddr.sin_port = htons(ntohs(mRTPAddr.sin_port) | 1); in ARTPWriter()
464 sdp.append(AStringPrintf("%d", ntohs(mRTPAddr.sin_port))); in dumpSessionDesc()
/frameworks/base/libs/common_time/
Dcommon_time_server_packets.cpp58 #define DESERIALIZE_INT16(field_name) DESERIALIZE_FIELD(field_name, int16_t, ntohs)
152 packetType = ntohs(*((uint16_t*)(data + 6))); in deserializePacket()
Dcommon_time_server.cpp473 ntohs(bindAddr.sin_port), errno); in setupSocket_l()
1402 uint16_t p = ntohs(sa->sin_port); in sockaddrToString()
1412 uint16_t p = ntohs(sa->sin6_port); in sockaddrToString()
Dcommon_time_server_api.cpp115 uint16_t ipv4Port = ntohs( in setMasterElectionEndpoint()
/frameworks/opt/net/voip/src/jni/rtp/
DRtpStream.cpp59 uint16_t port = ntohs(*p); in create()
DAudioGroup.cpp427 offset += 4 + (ntohs(*(uint16_t *)&buffer[offset + 2]) << 2); in decode()
/frameworks/av/media/libstagefright/foundation/
DANetworkSession.cpp209 msg->setInt32("server-port", ntohs(localAddr.sin_port)); in Session()
211 msg->setInt32("client-port", ntohs(remoteAddr.sin_port)); in Session()
311 notify->setInt32("fromPort", ntohs(remoteAddr.sin_port)); in readMore()
1069 ntohs(addr.sin_port)); in createClientOrServer()
1362 ntohs(remoteAddr.sin_port), in threadLoop()
/frameworks/av/media/libstagefright/
DSampleIterator.cpp266 *size = ntohs(x); in getSampleSizeDirect()
DMPEG4Extractor.cpp2760 sprintf(tmp, "%d/%d", ntohs(*pTrack), ntohs(*pTotalTracks)); in parseITunesMetaData()
2772 sprintf(tmp, "%d/%d", ntohs(*pDisc), ntohs(*pTotalDiscs)); in parseITunesMetaData()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DJpegProcessor.cpp411 size_t length = ntohs(segment->length); in findJpegSize()
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp620 ptr[i] = ntohs(ptr[i]); in dequeueAccessUnitPCMAudio()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp1234 uint16_t p = ntohs(endpoint->sin_port); in setRetransmitEndpoint()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp57 #define ntohs(x) ( (((x) << 8) & 0xff00) | (((x) >> 8) & 255) ) macro
58 #define htons(x) ntohs(x)