• Home
  • Raw
  • Download

Lines Matching refs:writer

197          c.writer << c.parcel << ".writeInt(((" << c.var << ")?(1):(0)));\n";  in WriteToParcelFor()
201 c.writer << c.parcel << ".writeBooleanArray(" << c.var << ");\n"; in WriteToParcelFor()
205 c.writer << c.parcel << ".writeByte(" << c.var << ");\n"; in WriteToParcelFor()
209 c.writer << c.parcel << ".writeByteArray(" << c.var << ");\n"; in WriteToParcelFor()
213 c.writer << c.parcel << ".writeInt(((int)" << c.var << "));\n"; in WriteToParcelFor()
217 c.writer << c.parcel << ".writeCharArray(" << c.var << ");\n"; in WriteToParcelFor()
221 c.writer << c.parcel << ".writeInt(" << c.var << ");\n"; in WriteToParcelFor()
225 c.writer << c.parcel << ".writeIntArray(" << c.var << ");\n"; in WriteToParcelFor()
229 c.writer << c.parcel << ".writeLong(" << c.var << ");\n"; in WriteToParcelFor()
233 c.writer << c.parcel << ".writeLongArray(" << c.var << ");\n"; in WriteToParcelFor()
237 c.writer << c.parcel << ".writeFloat(" << c.var << ");\n"; in WriteToParcelFor()
241 c.writer << c.parcel << ".writeFloatArray(" << c.var << ");\n"; in WriteToParcelFor()
245 c.writer << c.parcel << ".writeDouble(" << c.var << ");\n"; in WriteToParcelFor()
249 c.writer << c.parcel << ".writeDoubleArray(" << c.var << ");\n"; in WriteToParcelFor()
253 c.writer << c.parcel << ".writeString(" << c.var << ");\n"; in WriteToParcelFor()
257 c.writer << c.parcel << ".writeStringArray(" << c.var << ");\n"; in WriteToParcelFor()
265 c.writer << c.parcel << ".writeStringList(" << c.var << ");\n"; in WriteToParcelFor()
267 c.writer << c.parcel << ".writeBinderList(" << c.var << ");\n"; in WriteToParcelFor()
273 c.writer << c.parcel << ".writeTypedList(" << c.var << ");\n"; in WriteToParcelFor()
277 c.writer << c.parcel << ".writeList(" << c.var << ");\n"; in WriteToParcelFor()
283 c.writer << "if (" << c.var << " == null) {\n"; in WriteToParcelFor()
284 c.writer.Indent(); in WriteToParcelFor()
285 c.writer << c.parcel << ".writeInt(-1);\n"; in WriteToParcelFor()
286 c.writer.Dedent(); in WriteToParcelFor()
287 c.writer << "} else {\n"; in WriteToParcelFor()
288 c.writer.Indent(); in WriteToParcelFor()
289 c.writer << c.parcel << ".writeInt(" << c.var << ".size());\n"; in WriteToParcelFor()
290 c.writer << c.var << ".forEach((k, v) -> {\n"; in WriteToParcelFor()
291 c.writer.Indent(); in WriteToParcelFor()
292 c.writer << c.parcel << ".writeString(k);\n"; in WriteToParcelFor()
295 c.writer, in WriteToParcelFor()
305 c.writer.Dedent(); in WriteToParcelFor()
306 c.writer << "});\n"; in WriteToParcelFor()
308 c.writer.Dedent(); in WriteToParcelFor()
309 c.writer << "}\n"; in WriteToParcelFor()
311 c.writer << c.parcel << ".writeMap(" << c.var << ");\n"; in WriteToParcelFor()
316 c.writer << c.parcel << ".writeStrongBinder(" << c.var << ");\n"; in WriteToParcelFor()
320 c.writer << c.parcel << ".writeBinderArray(" << c.var << ");\n"; in WriteToParcelFor()
324 c.writer << c.parcel << ".writeRawFileDescriptor(" << c.var << ");\n"; in WriteToParcelFor()
328 c.writer << c.parcel << ".writeRawFileDescriptorArray(" << c.var << ");\n"; in WriteToParcelFor()
334 c.writer << "if ((" << c.var << "!=null)) {\n"; in WriteToParcelFor()
335 c.writer.Indent(); in WriteToParcelFor()
336 c.writer << c.parcel << ".writeInt(1);\n"; in WriteToParcelFor()
337 c.writer << c.var << ".writeToParcel(" << c.parcel << ", " << GetFlagFor(c) << ");\n"; in WriteToParcelFor()
338 c.writer.Dedent(); in WriteToParcelFor()
339 c.writer << "}\n"; in WriteToParcelFor()
340 c.writer << "else {\n"; in WriteToParcelFor()
341 c.writer.Indent(); in WriteToParcelFor()
342 c.writer << c.parcel << ".writeInt(0);\n"; in WriteToParcelFor()
343 c.writer.Dedent(); in WriteToParcelFor()
344 c.writer << "}\n"; in WriteToParcelFor()
348 c.writer << c.parcel << ".writeTypedArray(" << c.var << ", " << GetFlagFor(c) << ");\n"; in WriteToParcelFor()
354 c.writer << "if (" << c.var << "!=null) {\n"; in WriteToParcelFor()
355 c.writer.Indent(); in WriteToParcelFor()
356 c.writer << c.parcel << ".writeInt(1);\n"; in WriteToParcelFor()
357 c.writer << "android.text.TextUtils.writeToParcel(" << c.var << ", " << c.parcel << ", " in WriteToParcelFor()
359 c.writer.Dedent(); in WriteToParcelFor()
360 c.writer << "}\n"; in WriteToParcelFor()
361 c.writer << "else {\n"; in WriteToParcelFor()
362 c.writer.Indent(); in WriteToParcelFor()
363 c.writer << c.parcel << ".writeInt(0);\n"; in WriteToParcelFor()
364 c.writer.Dedent(); in WriteToParcelFor()
365 c.writer << "}\n"; in WriteToParcelFor()
379 c.writer << c.parcel << ".writeStrongBinder((((" << c.var << "!=null))?" in WriteToParcelFor()
384 c.writer << c.parcel << ".writeTypedArray(" << c.var << ", " << GetFlagFor(c) << ");\n"; in WriteToParcelFor()
388 c.writer << "if ((" << c.var << "!=null)) {\n"; in WriteToParcelFor()
389 c.writer.Indent(); in WriteToParcelFor()
390 c.writer << c.parcel << ".writeInt(1);\n"; in WriteToParcelFor()
391 c.writer << c.var << ".writeToParcel(" << c.parcel << ", " << GetFlagFor(c) << ");\n"; in WriteToParcelFor()
392 c.writer.Dedent(); in WriteToParcelFor()
393 c.writer << "}\n"; in WriteToParcelFor()
394 c.writer << "else {\n"; in WriteToParcelFor()
395 c.writer.Indent(); in WriteToParcelFor()
396 c.writer << c.parcel << ".writeInt(0);\n"; in WriteToParcelFor()
397 c.writer.Dedent(); in WriteToParcelFor()
398 c.writer << "}\n"; in WriteToParcelFor()
410 c.writer << "java.lang.ClassLoader cl = " in EnsureAndGetClassloader()
421 c.writer << c.var << " = (0!=" << c.parcel << ".readInt());\n"; in CreateFromParcelFor()
425 c.writer << c.var << " = " << c.parcel << ".createBooleanArray();\n"; in CreateFromParcelFor()
429 c.writer << c.var << " = " << c.parcel << ".readByte();\n"; in CreateFromParcelFor()
433 c.writer << c.var << " = " << c.parcel << ".createByteArray();\n"; in CreateFromParcelFor()
437 c.writer << c.var << " = (char)" << c.parcel << ".readInt();\n"; in CreateFromParcelFor()
441 c.writer << c.var << " = " << c.parcel << ".createCharArray();\n"; in CreateFromParcelFor()
445 c.writer << c.var << " = " << c.parcel << ".readInt();\n"; in CreateFromParcelFor()
449 c.writer << c.var << " = " << c.parcel << ".createIntArray();\n"; in CreateFromParcelFor()
453 c.writer << c.var << " = " << c.parcel << ".readLong();\n"; in CreateFromParcelFor()
457 c.writer << c.var << " = " << c.parcel << ".createLongArray();\n"; in CreateFromParcelFor()
461 c.writer << c.var << " = " << c.parcel << ".readFloat();\n"; in CreateFromParcelFor()
465 c.writer << c.var << " = " << c.parcel << ".createFloatArray();\n"; in CreateFromParcelFor()
469 c.writer << c.var << " = " << c.parcel << ".readDouble();\n"; in CreateFromParcelFor()
473 c.writer << c.var << " = " << c.parcel << ".createDoubleArray();\n"; in CreateFromParcelFor()
477 c.writer << c.var << " = " << c.parcel << ".readString();\n"; in CreateFromParcelFor()
481 c.writer << c.var << " = " << c.parcel << ".createStringArray();\n"; in CreateFromParcelFor()
489 c.writer << c.var << " = " << c.parcel << ".createStringArrayList();\n"; in CreateFromParcelFor()
491 c.writer << c.var << " = " << c.parcel << ".createBinderArrayList();\n"; in CreateFromParcelFor()
497 c.writer << c.var << " = " << c.parcel << ".createTypedArrayList(" in CreateFromParcelFor()
504 c.writer << c.var << " = " << c.parcel << ".readArrayList(" << classloader << ");\n"; in CreateFromParcelFor()
510 c.writer << "{\n"; in CreateFromParcelFor()
511 c.writer.Indent(); in CreateFromParcelFor()
512 c.writer << "int N = " << c.parcel << ".readInt();\n"; in CreateFromParcelFor()
513 c.writer << c.var << " = N < 0 ? null : new java.util.HashMap<>();\n"; in CreateFromParcelFor()
516 c.writer << "java.util.stream.IntStream.range(0, N).forEach(i -> {\n"; in CreateFromParcelFor()
517 c.writer.Indent(); in CreateFromParcelFor()
518 c.writer << "String k = " << c.parcel << ".readString();\n"; in CreateFromParcelFor()
519 c.writer << JavaNameOf(*(c.type.GetTypeParameters().at(1)), c.typenames) << " v;\n"; in CreateFromParcelFor()
521 c.writer, in CreateFromParcelFor()
531 c.writer << c.var << ".put(k, v);\n"; in CreateFromParcelFor()
533 c.writer.Dedent(); in CreateFromParcelFor()
534 c.writer << "});\n"; in CreateFromParcelFor()
536 c.writer.Dedent(); in CreateFromParcelFor()
537 c.writer << "}\n"; in CreateFromParcelFor()
540 c.writer << c.var << " = " << c.parcel << ".readHashMap(" << classloader << ");\n"; in CreateFromParcelFor()
545 c.writer << c.var << " = " << c.parcel << ".readStrongBinder();\n"; in CreateFromParcelFor()
549 c.writer << c.var << " = " << c.parcel << ".createBinderArray();\n"; in CreateFromParcelFor()
553 c.writer << c.var << " = " << c.parcel << ".readRawFileDescriptor();\n"; in CreateFromParcelFor()
557 c.writer << c.var << " = " << c.parcel << ".createRawFileDescriptorArray();\n"; in CreateFromParcelFor()
563 c.writer << "if ((0!=" << c.parcel << ".readInt())) {\n"; in CreateFromParcelFor()
564 c.writer.Indent(); in CreateFromParcelFor()
565 …c.writer << c.var << " = " << "android.os.ParcelFileDescriptor.CREATOR.createFromParcel(" << c.par… in CreateFromParcelFor()
567 c.writer.Dedent(); in CreateFromParcelFor()
568 c.writer << "}\n"; in CreateFromParcelFor()
569 c.writer << "else {\n"; in CreateFromParcelFor()
570 c.writer.Indent(); in CreateFromParcelFor()
571 c.writer << c.var << " = null;\n"; in CreateFromParcelFor()
572 c.writer.Dedent(); in CreateFromParcelFor()
573 c.writer << "}\n"; in CreateFromParcelFor()
577 c.writer << c.var << " = " << c.parcel in CreateFromParcelFor()
583 c.writer << "if (0!=" << c.parcel << ".readInt()) {\n"; in CreateFromParcelFor()
584 c.writer.Indent(); in CreateFromParcelFor()
585 c.writer << c.var << " = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(" in CreateFromParcelFor()
587 c.writer.Dedent(); in CreateFromParcelFor()
588 c.writer << "}\n"; in CreateFromParcelFor()
589 c.writer << "else {\n"; in CreateFromParcelFor()
590 c.writer.Indent(); in CreateFromParcelFor()
591 c.writer << c.var << " = null;\n"; in CreateFromParcelFor()
592 c.writer.Dedent(); in CreateFromParcelFor()
593 c.writer << "}\n"; in CreateFromParcelFor()
604 c.writer << c.var << " = " << c.type.GetName() << ".Stub.asInterface(" << c.parcel in CreateFromParcelFor()
609 c.writer << c.var << " = " << c.parcel << ".createTypedArray(" in CreateFromParcelFor()
614 c.writer << "if ((0!=" << c.parcel << ".readInt())) {\n"; in CreateFromParcelFor()
615 c.writer.Indent(); in CreateFromParcelFor()
616 c.writer << c.var << " = " << c.type.GetName() << ".CREATOR.createFromParcel(" << c.parcel in CreateFromParcelFor()
618 c.writer.Dedent(); in CreateFromParcelFor()
619 c.writer << "}\n"; in CreateFromParcelFor()
620 c.writer << "else {\n"; in CreateFromParcelFor()
621 c.writer.Indent(); in CreateFromParcelFor()
622 c.writer << c.var << " = null;\n"; in CreateFromParcelFor()
623 c.writer.Dedent(); in CreateFromParcelFor()
624 c.writer << "}\n"; in CreateFromParcelFor()
635 c.writer << c.parcel << ".readBooleanArray(" << c.var << ");\n"; in ReadFromParcelFor()
639 c.writer << c.parcel << ".readByteArray(" << c.var << ");\n"; in ReadFromParcelFor()
643 c.writer << c.parcel << ".readCharArray(" << c.var << ");\n"; in ReadFromParcelFor()
647 c.writer << c.parcel << ".readIntArray(" << c.var << ");\n"; in ReadFromParcelFor()
651 c.writer << c.parcel << ".readLongArray(" << c.var << ");\n"; in ReadFromParcelFor()
655 c.writer << c.parcel << ".readFloatArray(" << c.var << ");\n"; in ReadFromParcelFor()
659 c.writer << c.parcel << ".readDoubleArray(" << c.var << ");\n"; in ReadFromParcelFor()
663 c.writer << c.parcel << ".readStringArray(" << c.var << ");\n"; in ReadFromParcelFor()
671 c.writer << c.parcel << ".readStringList(" << c.var << ");\n"; in ReadFromParcelFor()
673 c.writer << c.parcel << ".readBinderList(" << c.var << ");\n"; in ReadFromParcelFor()
679 c.writer << c.parcel << ".readTypedList(" << c.var << ", " in ReadFromParcelFor()
686 c.writer << c.parcel << ".readList(" << c.var << ", " << classloader << ");\n"; in ReadFromParcelFor()
692 c.writer << "if (" << c.var << " != null) " << c.var << ".clear();\n"; in ReadFromParcelFor()
693 c.writer << "java.util.stream.IntStream.range(0, " << c.parcel in ReadFromParcelFor()
695 c.writer.Indent(); in ReadFromParcelFor()
696 c.writer << "String k = " << c.parcel << ".readString();\n"; in ReadFromParcelFor()
697 c.writer << JavaNameOf(*(c.type.GetTypeParameters().at(1)), c.typenames) << " v;\n"; in ReadFromParcelFor()
699 c.writer, in ReadFromParcelFor()
709 c.writer << c.var << ".put(k, v);\n"; in ReadFromParcelFor()
711 c.writer.Dedent(); in ReadFromParcelFor()
712 c.writer << "});\n"; in ReadFromParcelFor()
714 c.writer.Dedent(); in ReadFromParcelFor()
715 c.writer << "}\n"; in ReadFromParcelFor()
718 c.writer << c.var << " = " << c.parcel << ".readHashMap(" << classloader << ");\n"; in ReadFromParcelFor()
723 c.writer << c.var << " = " << c.parcel << ".createBinderArray();\n"; in ReadFromParcelFor()
727 c.writer << c.var << " = " << c.parcel << ".createRawFileDescriptorArray();\n"; in ReadFromParcelFor()
731 c.writer << "if ((0!=" << c.parcel << ".readInt())) {\n"; in ReadFromParcelFor()
732 c.writer.Indent(); in ReadFromParcelFor()
733 …c.writer << c.var << " = " << "android.os.ParcelFileDescriptor.CREATOR.createFromParcel(" << c.par… in ReadFromParcelFor()
734 c.writer.Dedent(); in ReadFromParcelFor()
735 c.writer << "}\n"; in ReadFromParcelFor()
739 c.writer << c.parcel << ".readTypedArray(" << c.var in ReadFromParcelFor()
751 c.writer << c.parcel << ".readTypedArray(" << c.var << ", " << c.type.GetName() in ReadFromParcelFor()
754 c.writer << "if ((0!=" << c.parcel << ".readInt())) {\n"; in ReadFromParcelFor()
755 c.writer.Indent(); in ReadFromParcelFor()
756 c.writer << c.var << ".readFromParcel(" << c.parcel << ");\n"; in ReadFromParcelFor()
757 c.writer.Dedent(); in ReadFromParcelFor()
758 c.writer << "}\n"; in ReadFromParcelFor()