|
1 | 1 | package generatedtest;
|
2 | 2 |
|
| 3 | +import android.content.Context; |
3 | 4 | import android.content.Intent;
|
4 | 5 | import android.os.BaseBundle;
|
5 | 6 | import android.os.Bundle;
|
@@ -27,6 +28,34 @@ void sink(Object o) { }
|
27 | 28 |
|
28 | 29 | public void test() throws Exception {
|
29 | 30 |
|
| 31 | + { |
| 32 | + // "android.content;Intent;false;Intent;(Intent);;MapKey of SyntheticField[android.content.Intent.extras] of Argument[0];MapKey of SyntheticField[android.content.Intent.extras] of Argument[-1];value" |
| 33 | + Intent out = null; |
| 34 | + Intent in = (Intent)newWithIntent_extrasDefault(newWithMapKeyDefault(source())); |
| 35 | + out = new Intent(in); |
| 36 | + sink(getMapKeyDefault(getIntent_extrasDefault(out))); // $ hasValueFlow |
| 37 | + } |
| 38 | + { |
| 39 | + // "android.content;Intent;false;Intent;(Intent);;MapValue of SyntheticField[android.content.Intent.extras] of Argument[0];MapValue of SyntheticField[android.content.Intent.extras] of Argument[-1];value" |
| 40 | + Intent out = null; |
| 41 | + Intent in = (Intent)newWithIntent_extrasDefault(newWithMapValueDefault(source())); |
| 42 | + out = new Intent(in); |
| 43 | + sink(getMapValueDefault(getIntent_extrasDefault(out))); // $ hasValueFlow |
| 44 | + } |
| 45 | + { |
| 46 | + // "android.content;Intent;true;addCategory;;;Argument[-1];ReturnValue;value" |
| 47 | + Intent out = null; |
| 48 | + Intent in = (Intent)source(); |
| 49 | + out = in.addCategory(null); |
| 50 | + sink(out); // $ hasValueFlow |
| 51 | + } |
| 52 | + { |
| 53 | + // "android.content;Intent;true;addFlags;;;Argument[-1];ReturnValue;value" |
| 54 | + Intent out = null; |
| 55 | + Intent in = (Intent)source(); |
| 56 | + out = in.addFlags(0); |
| 57 | + sink(out); // $ hasValueFlow |
| 58 | + } |
30 | 59 | {
|
31 | 60 | // "android.content;Intent;true;getBundleExtra;(String);;MapValue of SyntheticField[android.content.Intent.extras] of Argument[-1];ReturnValue;value"
|
32 | 61 | Bundle out = null;
|
@@ -790,6 +819,104 @@ public void test() throws Exception {
|
790 | 819 | out.replaceExtras(in);
|
791 | 820 | sink(getMapValueDefault(getIntent_extrasDefault(out))); // $ hasValueFlow
|
792 | 821 | }
|
| 822 | + { |
| 823 | + // "android.content;Intent;true;setAction;;;Argument[-1];ReturnValue;value" |
| 824 | + Intent out = null; |
| 825 | + Intent in = (Intent)source(); |
| 826 | + out = in.setAction(null); |
| 827 | + sink(out); // $ hasValueFlow |
| 828 | + } |
| 829 | + { |
| 830 | + // "android.content;Intent;true;setClass;;;Argument[-1];ReturnValue;value" |
| 831 | + Intent out = null; |
| 832 | + Intent in = (Intent)source(); |
| 833 | + out = in.setClass(null, null); |
| 834 | + sink(out); // $ hasValueFlow |
| 835 | + } |
| 836 | + { |
| 837 | + // "android.content;Intent;true;setClassName;;;Argument[-1];ReturnValue;value" |
| 838 | + Intent out = null; |
| 839 | + Intent in = (Intent)source(); |
| 840 | + out = in.setClassName((String)null, (String)null); |
| 841 | + sink(out); // $ hasValueFlow |
| 842 | + } |
| 843 | + { |
| 844 | + // "android.content;Intent;true;setClassName;;;Argument[-1];ReturnValue;value" |
| 845 | + Intent out = null; |
| 846 | + Intent in = (Intent)source(); |
| 847 | + out = in.setClassName((Context)null, (String)null); |
| 848 | + sink(out); // $ hasValueFlow |
| 849 | + } |
| 850 | + { |
| 851 | + // "android.content;Intent;true;setComponent;;;Argument[-1];ReturnValue;value" |
| 852 | + Intent out = null; |
| 853 | + Intent in = (Intent)source(); |
| 854 | + out = in.setComponent(null); |
| 855 | + sink(out); // $ hasValueFlow |
| 856 | + } |
| 857 | + { |
| 858 | + // "android.content;Intent;true;setData;;;Argument[-1];ReturnValue;value" |
| 859 | + Intent out = null; |
| 860 | + Intent in = (Intent)source(); |
| 861 | + out = in.setData(null); |
| 862 | + sink(out); // $ hasValueFlow |
| 863 | + } |
| 864 | + { |
| 865 | + // "android.content;Intent;true;setDataAndNormalize;;;Argument[-1];ReturnValue;value" |
| 866 | + Intent out = null; |
| 867 | + Intent in = (Intent)source(); |
| 868 | + out = in.setDataAndNormalize(null); |
| 869 | + sink(out); // $ hasValueFlow |
| 870 | + } |
| 871 | + { |
| 872 | + // "android.content;Intent;true;setDataAndType;;;Argument[-1];ReturnValue;value" |
| 873 | + Intent out = null; |
| 874 | + Intent in = (Intent)source(); |
| 875 | + out = in.setDataAndType(null, null); |
| 876 | + sink(out); // $ hasValueFlow |
| 877 | + } |
| 878 | + { |
| 879 | + // "android.content;Intent;true;setDataAndTypeAndNormalize;;;Argument[-1];ReturnValue;value" |
| 880 | + Intent out = null; |
| 881 | + Intent in = (Intent)source(); |
| 882 | + out = in.setDataAndTypeAndNormalize(null, null); |
| 883 | + sink(out); // $ hasValueFlow |
| 884 | + } |
| 885 | + { |
| 886 | + // "android.content;Intent;true;setFlags;;;Argument[-1];ReturnValue;value" |
| 887 | + Intent out = null; |
| 888 | + Intent in = (Intent)source(); |
| 889 | + out = in.setFlags(0); |
| 890 | + sink(out); // $ hasValueFlow |
| 891 | + } |
| 892 | + { |
| 893 | + // "android.content;Intent;true;setIdentifier;;;Argument[-1];ReturnValue;value" |
| 894 | + Intent out = null; |
| 895 | + Intent in = (Intent)source(); |
| 896 | + out = in.setIdentifier(null); |
| 897 | + sink(out); // $ hasValueFlow |
| 898 | + } |
| 899 | + { |
| 900 | + // "android.content;Intent;true;setPackage;;;Argument[-1];ReturnValue;value" |
| 901 | + Intent out = null; |
| 902 | + Intent in = (Intent)source(); |
| 903 | + out = in.setPackage(null); |
| 904 | + sink(out); // $ hasValueFlow |
| 905 | + } |
| 906 | + { |
| 907 | + // "android.content;Intent;true;setType;;;Argument[-1];ReturnValue;value" |
| 908 | + Intent out = null; |
| 909 | + Intent in = (Intent)source(); |
| 910 | + out = in.setType(null); |
| 911 | + sink(out); // $ hasValueFlow |
| 912 | + } |
| 913 | + { |
| 914 | + // "android.content;Intent;true;setTypeAndNormalize;;;Argument[-1];ReturnValue;value" |
| 915 | + Intent out = null; |
| 916 | + Intent in = (Intent)source(); |
| 917 | + out = in.setTypeAndNormalize(null); |
| 918 | + sink(out); // $ hasValueFlow |
| 919 | + } |
793 | 920 | {
|
794 | 921 | // "android.os;BaseBundle;true;get;(String);;MapValue of Argument[-1];ReturnValue;value"
|
795 | 922 | Object out = null;
|
@@ -931,6 +1058,62 @@ public void test() throws Exception {
|
931 | 1058 | out.putStringArray(null, in);
|
932 | 1059 | sink(getMapValueDefault(out)); // $ hasValueFlow
|
933 | 1060 | }
|
| 1061 | + { |
| 1062 | + // "android.os;Bundle;false;Bundle;(Bundle);;MapKey of Argument[0];MapKey of Argument[-1];value" |
| 1063 | + Bundle out = null; |
| 1064 | + Bundle in = (Bundle)newWithMapKeyDefault(source()); |
| 1065 | + out = new Bundle(in); |
| 1066 | + sink(getMapKeyDefault(out)); // $ hasValueFlow |
| 1067 | + } |
| 1068 | + { |
| 1069 | + // "android.os;Bundle;false;Bundle;(Bundle);;MapValue of Argument[0];MapValue of Argument[-1];value" |
| 1070 | + Bundle out = null; |
| 1071 | + Bundle in = (Bundle)newWithMapValueDefault(source()); |
| 1072 | + out = new Bundle(in); |
| 1073 | + sink(getMapValueDefault(out)); // $ hasValueFlow |
| 1074 | + } |
| 1075 | + { |
| 1076 | + // "android.os;Bundle;false;Bundle;(PersistableBundle);;MapKey of Argument[0];MapKey of Argument[-1];value" |
| 1077 | + Bundle out = null; |
| 1078 | + PersistableBundle in = (PersistableBundle)newWithMapKeyDefault(source()); |
| 1079 | + out = new Bundle(in); |
| 1080 | + sink(getMapKeyDefault(out)); // $ hasValueFlow |
| 1081 | + } |
| 1082 | + { |
| 1083 | + // "android.os;Bundle;false;Bundle;(PersistableBundle);;MapValue of Argument[0];MapValue of Argument[-1];value" |
| 1084 | + Bundle out = null; |
| 1085 | + PersistableBundle in = (PersistableBundle)newWithMapValueDefault(source()); |
| 1086 | + out = new Bundle(in); |
| 1087 | + sink(getMapValueDefault(out)); // $ hasValueFlow |
| 1088 | + } |
| 1089 | + { |
| 1090 | + // "android.os;Bundle;true;clone;();;MapKey of Argument[-1];MapKey of ReturnValue;value" |
| 1091 | + Object out = null; |
| 1092 | + Bundle in = (Bundle)newWithMapKeyDefault(source()); |
| 1093 | + out = in.clone(); |
| 1094 | + sink(getMapKeyDefault(out)); // $ hasValueFlow |
| 1095 | + } |
| 1096 | + { |
| 1097 | + // "android.os;Bundle;true;clone;();;MapValue of Argument[-1];MapValue of ReturnValue;value" |
| 1098 | + Object out = null; |
| 1099 | + Bundle in = (Bundle)newWithMapValueDefault(source()); |
| 1100 | + out = in.clone(); |
| 1101 | + sink(getMapValueDefault(out)); // $ hasValueFlow |
| 1102 | + } |
| 1103 | + { |
| 1104 | + // "android.os;Bundle;true;deepCopy;();;MapKey of Argument[-1];MapKey of ReturnValue;value" |
| 1105 | + Bundle out = null; |
| 1106 | + Bundle in = (Bundle)newWithMapKeyDefault(source()); |
| 1107 | + out = in.deepCopy(); |
| 1108 | + sink(getMapKeyDefault(out)); // $ hasValueFlow |
| 1109 | + } |
| 1110 | + { |
| 1111 | + // "android.os;Bundle;true;deepCopy;();;MapValue of Argument[-1];MapValue of ReturnValue;value" |
| 1112 | + Bundle out = null; |
| 1113 | + Bundle in = (Bundle)newWithMapValueDefault(source()); |
| 1114 | + out = in.deepCopy(); |
| 1115 | + sink(getMapValueDefault(out)); // $ hasValueFlow |
| 1116 | + } |
934 | 1117 | {
|
935 | 1118 | // "android.os;Bundle;true;getBinder;(String);;MapValue of Argument[-1];ReturnValue;value"
|
936 | 1119 | IBinder out = null;
|
|
0 commit comments