HomeSort by relevance Sort by last modified time
    Searched refs:Primitive (Results 1 - 25 of 43) sorted by null

1 2

  /frameworks/base/graphics/java/android/renderscript/
Primitive.java 22 public enum Primitive {
31 Primitive(int id) {
  /packages/apps/IM/src/com/android/im/imps/
ServerTransaction.java 20 import com.android.im.imps.Primitive.TransactionMode;
23 private Primitive mRequest;
25 ServerTransaction(String id, ImpsConnection connection, Primitive request) {
36 public Primitive getRequest() {
45 public void sendResponse(Primitive response) {
56 Primitive status = new Primitive(ImpsTags.Status);
MultiPhaseTransaction.java 34 protected void notifySuccessResponse(Primitive response) {
50 public abstract TransactionStatus processResponse(Primitive response);
56 final public void onResponseOk(Primitive response) { }
PrimitiveParser.java 25 * the server to a Primitive.
29 * Parses the data to a primitive.
32 * @return a parsed primitive.
36 public Primitive parse(InputStream in) throws ParserException, IOException;
PrimitiveSerializer.java 24 * The <code>PrimitiveSerializer</code> is used format a primitive to expected
29 * Serializes the primitive to the OutputStream in expected format.
31 * @param primitive the primitive to format.
36 public void serialize(Primitive primitive, OutputStream out)
ImpsChatGroupManager.java 50 Primitive request = buildAddGroupMemberRequest(group, contact);
59 public void onResponseOk(Primitive response) {
72 Primitive primitive = buildCreateGroupRequest(name, groupAddress); local
81 public void onResponseOk(Primitive response) {
92 tx.sendRequest(primitive);
97 Primitive request = new Primitive(ImpsTags.DeleteGroup_Request);
108 public void onResponseOk(Primitive response) {
117 Primitive request = buildInviteUserRequest(group, contact)
247 final Primitive primitive = tx.getRequest(); local
319 Primitive primitive = new Primitive(ImpsTags.CreateGroup_Request); local
    [all...]
DataChannel.java 66 * Sends a CSP primitive to the IMPS server through this data channel.
68 * @param p the primitive to send.
70 public abstract void sendPrimitive(Primitive p);
73 * Receives a primitive from this data channel, waiting until a primitive
76 * @return the received primitive
79 public abstract Primitive receivePrimitive() throws InterruptedException;
82 * Gets the time when the last primitive was sent to the server through the
85 * @return the time last primitive was sent.
90 * Tells if there is any primitive waiting to send
    [all...]
AsyncTransaction.java 43 public void sendRequest(Primitive request) {
61 final void notifyResponse(Primitive response) {
77 protected void notifySuccessResponse(Primitive response) {
84 public abstract void onResponseOk(Primitive response);
SimpleAsyncTransaction.java 46 public void onResponseOk(Primitive response) {
ImpsContactListManager.java 95 Primitive request = new Primitive(ImpsTags.GetBlockedList_Request);
111 public void onResponseOk(Primitive response) {
127 Vector<ImpsContactListAddress> extractListAddresses(Primitive response){
161 Primitive request = new Primitive(ImpsTags.GetPresence_Request);
172 public void onResponseOk(Primitive response) {
192 // Primitive request = new Primitive(ImpsTags.CreateAttributeList_Request);
216 // public void onResponseOk(Primitive response) {
    [all...]
ImpsTransaction.java 23 * request and a response primitive. The transactions MAY originate from either
52 protected void sendPrimitive(Primitive primitive) {
55 primitive.setSession(session.getID());
57 primitive.setTransaction(this);
59 mConnection.sendPrimitive(primitive);
ImpsErrorInfo.java 94 private final Primitive mPrimitive;
96 ImpsErrorInfo(int code, String description, Primitive primitive) {
98 mPrimitive = primitive;
101 Primitive getPrimitive() {
PrimitiveContentHandler.java 25 import com.android.im.imps.Primitive.TransactionMode;
28 private Primitive mPrimitive;
34 mPrimitive = new Primitive();
39 mPrimitive = new Primitive();
45 public Primitive getPrimitive() {
ImpsConnection.java 35 import com.android.im.imps.Primitive.TransactionMode;
211 Primitive login = buildBasicLoginReq();
226 public TransactionStatus processResponse(Primitive response) {
283 private TransactionStatus sendSecondLogin(Primitive res) {
285 Primitive secondLogin = buildBasicLoginReq();
424 Primitive logoutPrimitive = new Primitive(ImpsTags.Logout_Request);
467 * Sends a specific primitive to the server. It will return immediately
468 * after the primitive has been put to the sending queue.
470 * @param primitive the packet to send
547 Primitive primitive = null; local
    [all...]
HttpDataChannel.java 48 import com.android.im.imps.Primitive.TransactionMode;
66 private LinkedBlockingQueue<Primitive> mSendQueue;
67 private LinkedBlockingQueue<Primitive> mReceiveQueue;
71 private Primitive mKeepAlivePrimitive;
133 mSendQueue = new LinkedBlockingQueue<Primitive>();
134 mReceiveQueue = new LinkedBlockingQueue<Primitive>();
159 Primitive polling = new Primitive(ImpsTags.Polling_Request);
182 public void sendPrimitive(Primitive p) {
184 ImpsLog.log("DataChannel not connected, ignore primitive " + p.getType())
276 Primitive primitive = mSendQueue.take(); local
    [all...]
WbxmlPrimitiveParser.java 35 public Primitive parse(InputStream in) throws ParserException, IOException {
ImpsChatSessionManager.java 60 Primitive primitive = createSendMessagePrimitive(message); local
64 public void onResponseOk(Primitive response) { }
72 tx.sendRequest(primitive);
76 Primitive primitive = tx.getRequest(); local
78 if (ImpsTags.NewMessage.equals(primitive.getType())) {
79 Message msg = extractMessage(primitive);
82 Primitive response = new Primitive(ImpsTags.MessageDelivered)
176 Primitive primitive = new Primitive(ImpsTags.SendMessage_Request); local
    [all...]
ImpsSession.java 310 Primitive capabilityRequest = buildCapabilityRequest();
316 public void onResponseOk(Primitive response) {
333 Primitive serviceRequest = buildServiceRequest();
338 public void onResponseOk(Primitive response) {
349 private Primitive buildCapabilityRequest() {
350 Primitive capabilityRequest = new Primitive(ImpsTags.ClientCapability_Request);
385 void extractCapability(Primitive capabilityResponse) {
418 private Primitive buildServiceRequest() {
419 Primitive serviceRequest = new Primitive(ImpsTags.Service_Request)
    [all...]
ImpsLog.java 48 public static void dumpPrimitive(Primitive p) {
53 Log.e(PACKET_TAG, "Bad Primitive");
55 Log.e(PACKET_TAG, "Bad Primitive");
60 public static void log(Primitive primitive) {
64 mSerialzier.serialize(primitive, out);
SmsDataChannel.java 48 private LinkedBlockingQueue<Primitive> mReceiveQueue;
53 private Primitive mKeepAlivePrimitive;
84 mReceiveQueue = new LinkedBlockingQueue<Primitive>();
103 public Primitive receivePrimitive() throws InterruptedException {
108 public void sendPrimitive(Primitive p) {
152 mKeepAlivePrimitive = new Primitive(ImpsTags.KeepAlive_Request);
183 public void onResponseOk(Primitive response) {
207 Primitive p = mParser.parse(new ByteArrayInputStream(data));
ImpsTransactionManager.java 23 import com.android.im.imps.Primitive.TransactionMode;
47 * @param type the primitive type of the transaction.
83 void reassignTransactionId(Primitive p) {
116 * Notifies the TransactionManager that a new primitive from the server has
119 * @param primitive the incoming primitive.
121 public void notifyIncomingPrimitive(Primitive primitive) {
122 String transactionId = primitive.getTransactionID();
123 if (primitive.getTransactionMode() == TransactionMode.Response)
    [all...]
XmlPrimitiveParser.java 49 public Primitive parse(InputStream in) throws ParserException, IOException {
Primitive.java 21 * A primitive is the basic packet sent between the IMPS server and the IMPS
24 public final class Primitive {
36 * Constructs a new Primitive with default value.
38 public Primitive() {
42 * Constructs a new Primitive with a type.
44 * @param type the type of the primitive.
46 public Primitive(String type) {
51 * Gets the session type of this primitive.
60 * Gets the session ID of this primitive.
69 * Sets the session ID of this primitive
    [all...]
WbxmlPrimitiveSerializer.java 40 public void serialize(Primitive primitive, OutputStream out) throws IOException,
44 PrimitiveElement elem = primitive.createMessage(mVersionNs, mTransacNs);
  /external/v8/src/
apiutils.h 35 static v8::Handle<v8::Primitive> Undefined();
36 static v8::Handle<v8::Primitive> Null();

Completed in 100 milliseconds

1 2