Home
last modified time | relevance | path

Searched refs:Object (Results 1 – 25 of 2358) sorted by relevance

12345678910>>...95

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DArrayUtilsTest.java30 final Object A = new Object(); in testContains()
31 final Object B = new Object(); in testContains()
32 final Object C = new Object(); in testContains()
33 final Object D = new Object(); in testContains()
35 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, A)); in testContains()
36 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, B)); in testContains()
37 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, C)); in testContains()
38 assertTrue(ArrayUtils.contains(new Object[] { A, null, C }, null)); in testContains()
40 assertFalse(ArrayUtils.contains(new Object[] { A, B, C }, null)); in testContains()
41 assertFalse(ArrayUtils.contains(new Object[] { }, null)); in testContains()
[all …]
/frameworks/base/config/
Dhiddenapi-force-blacklist.txt6 Ljava/lang/invoke/VarHandle;->compareAndExchange([Ljava/lang/Object;)Ljava/lang/Object;
7 Ljava/lang/invoke/VarHandle;->compareAndExchangeAcquire([Ljava/lang/Object;)Ljava/lang/Object;
8 Ljava/lang/invoke/VarHandle;->compareAndExchangeRelease([Ljava/lang/Object;)Ljava/lang/Object;
9 Ljava/lang/invoke/VarHandle;->compareAndSet([Ljava/lang/Object;)Z
11 Ljava/lang/invoke/VarHandle;->get([Ljava/lang/Object;)Ljava/lang/Object;
12 Ljava/lang/invoke/VarHandle;->getAcquire([Ljava/lang/Object;)Ljava/lang/Object;
13 Ljava/lang/invoke/VarHandle;->getAndAdd([Ljava/lang/Object;)Ljava/lang/Object;
14 Ljava/lang/invoke/VarHandle;->getAndAddAcquire([Ljava/lang/Object;)Ljava/lang/Object;
15 Ljava/lang/invoke/VarHandle;->getAndAddRelease([Ljava/lang/Object;)Ljava/lang/Object;
16 Ljava/lang/invoke/VarHandle;->getAndBitwiseAnd([Ljava/lang/Object;)Ljava/lang/Object;
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DSpannableTest.java42 Object emptySpan = new Object(); in testGetSpans()
44 Object unemptySpan = new Object(); in testGetSpans()
47 Object[] spans; in testGetSpans()
52 spans = spannable.getSpans(0, 1, Object.class); in testGetSpans()
53 MoreAsserts.assertEquals(new Object[]{emptySpan}, spans); in testGetSpans()
54 spans = spannable.getSpans(0, 2, Object.class); in testGetSpans()
55 MoreAsserts.assertEquals(new Object[]{emptySpan, unemptySpan}, spans); in testGetSpans()
56 spans = spannable.getSpans(1, 2, Object.class); in testGetSpans()
57 MoreAsserts.assertEquals(new Object[]{emptySpan, unemptySpan}, spans); in testGetSpans()
58 spans = spannable.getSpans(2, 2, Object.class); in testGetSpans()
[all …]
/frameworks/base/core/java/com/android/internal/util/function/pooled/
DPooledLambdaImpl.java64 final class PooledLambdaImpl<R> extends OmniFunction<Object,
65 Object, Object, Object, Object, Object, Object, Object, Object, R> {
76 public Pool(Object lock) { in Pool()
81 static final Pool sPool = new Pool(new Object());
91 Object mFunc;
102 @Nullable Object[] mArgs = null;
172 R invoke(Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, in invoke()
173 Object a8, Object a9) { in invoke()
178 new Object[] { a1, a2, a3, a4, a5, a6, a7, a8, a9 }, in invoke()
207 private boolean fillInArg(Object invocationArg) { in fillInArg()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DHandlerCaller.java88 public void removeMessages(int what, Object obj) { in removeMessages()
122 public Message obtainMessageBO(int what, boolean arg1, Object arg2) { in obtainMessageBO()
126 public Message obtainMessageBOO(int what, boolean arg1, Object arg2, Object arg3) { in obtainMessageBOO()
134 public Message obtainMessageO(int what, Object arg1) { in obtainMessageO()
147 public Message obtainMessageIO(int what, int arg1, Object arg2) { in obtainMessageIO()
151 public Message obtainMessageIIO(int what, int arg1, int arg2, Object arg3) { in obtainMessageIIO()
156 Object arg3, Object arg4) { in obtainMessageIIOO()
164 public Message obtainMessageIOO(int what, int arg1, Object arg2, Object arg3) { in obtainMessageIOO()
171 public Message obtainMessageIOOO(int what, int arg1, Object arg2, Object arg3, Object arg4) { in obtainMessageIOOO()
179 public Message obtainMessageIIOOO(int what, int arg1, int arg2, Object arg3, Object arg4, in obtainMessageIIOOO()
[all …]
DSomeArgs.java34 private static Object sPoolLock = new Object();
46 public Object arg1;
48 public Object arg2;
50 public Object arg3;
51 public Object arg4;
52 public Object arg5;
53 public Object arg6;
54 public Object arg7;
55 public Object arg8;
56 public Object arg9;
/frameworks/base/services/core/java/com/android/server/
DLockGuard.java80 private static Object[] sKnownFixed = new Object[INDEX_DPMS + 1];
82 private static ArrayMap<Object, LockInfo> sKnown = new ArrayMap<>(0, true);
89 public ArraySet<Object> children = new ArraySet<>(0, true);
95 private static LockInfo findOrCreateLockInfo(Object lock) { in findOrCreateLockInfo()
111 public static Object guard(Object lock) { in guard()
119 final Object child = info.children.valueAt(i); in guard()
134 final Object test = sKnown.keyAt(i); in guard()
152 final Object lock = sKnownFixed[i]; in guard()
157 final Object targetMayBeNull = sKnownFixed[index]; in guard()
165 private static void doLog(@Nullable Object lock, String message) { in doLog()
[all …]
/frameworks/base/test-runner/src/android/test/
DMoreAsserts.java46 public static void assertAssignableFrom(Class<?> expected, Object actual) { in assertAssignableFrom()
67 String message, Object unexpected, Object actual) { in assertNotEqual()
77 public static void assertNotEqual(Object unexpected, Object actual) { in assertNotEqual()
194 String message, Object[] expected, Object[] actual) { in assertEquals()
199 Object exp = expected[i]; in assertEquals()
200 Object act = actual[i]; in assertEquals()
214 public static void assertEquals(Object[] expected, Object[] actual) { in assertEquals()
220 String message, Set<? extends Object> expected, Set<? extends Object> actual) { in assertEquals()
221 Set<Object> onlyInExpected = new HashSet<Object>(expected); in assertEquals()
223 Set<Object> onlyInActual = new HashSet<Object>(actual); in assertEquals()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DFieldSet.java71 private final SmallSortedMap<FieldDescriptorType, Object> fields;
125 public boolean equals(Object o) { in equals()
155 Map.Entry<FieldDescriptorType, Object> entry = fields.getArrayEntryAt(i); in clone()
159 for (Map.Entry<FieldDescriptorType, Object> entry : in clone()
180 public Map<FieldDescriptorType, Object> getAllFields() { in getAllFields()
182 SmallSortedMap<FieldDescriptorType, Object> result = in getAllFields()
187 for (Map.Entry<FieldDescriptorType, Object> entry : in getAllFields()
199 private void cloneFieldEntry(Map<FieldDescriptorType, Object> map, in cloneFieldEntry()
200 Map.Entry<FieldDescriptorType, Object> entry) { in cloneFieldEntry()
202 Object value = entry.getValue(); in cloneFieldEntry()
[all …]
DGeneratedMessageLite.java131 public boolean equals(Object other) { in equals()
275 protected abstract Object dynamicMethod(MethodToInvoke method, Object arg0, Object arg1); in dynamicMethod()
280 protected Object dynamicMethod(MethodToInvoke method, Object arg0) { in dynamicMethod()
287 protected Object dynamicMethod(MethodToInvoke method) { in dynamicMethod()
518 Object value = in parseUnknownField()
530 Object value = in parseUnknownField()
539 Object value; in parseUnknownField()
634 final Object value = extensions.getField(extensionLite.descriptor); in getExtension()
677 private final Iterator<Map.Entry<ExtensionDescriptor, Object>> iter =
679 private Map.Entry<ExtensionDescriptor, Object> next;
[all …]
DExtension.java82 protected abstract Object fromReflectionType(Object value); in fromReflectionType()
83 protected abstract Object singularFromReflectionType(Object value); in singularFromReflectionType()
84 protected abstract Object toReflectionType(Object value); in toReflectionType()
85 protected abstract Object singularToReflectionType(Object value); in singularToReflectionType()
/frameworks/base/core/java/android/metrics/
DLogMaker.java50 private SparseArray<Object> entries = new SparseArray();
58 public LogMaker(Object[] items) { in LogMaker()
244 public LogMaker addTaggedData(int tag, Object value) { in addTaggedData()
274 public boolean isValidValue(Object value) { in isValidValue()
281 public Object getTaggedData(int tag) { in getTaggedData()
287 Object obj = entries.get(MetricsEvent.RESERVED_FOR_LOGBUILDER_CATEGORY); in getCategory()
297 Object obj = entries.get(MetricsEvent.RESERVED_FOR_LOGBUILDER_TYPE); in getType()
307 Object obj = entries.get(MetricsEvent.RESERVED_FOR_LOGBUILDER_SUBTYPE); in getSubtype()
317 Object obj = entries.get(MetricsEvent.RESERVED_FOR_LOGBUILDER_TIMESTAMP); in getTimestamp()
327 Object obj = entries.get(MetricsEvent.RESERVED_FOR_LOGBUILDER_PACKAGENAME); in getPackageName()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameValues.java31 Object value = super.getValue(); in getCount()
48 public Object getValues() { in getValues()
49 Object value = super.getValue(); in getValues()
54 Object[] array = (Object[])Array.newInstance(value.getClass(), 1); in getValues()
69 public Object getValueAtIndex(int index) { in getValueAtIndex()
70 Object value = super.getValue(); in getValueAtIndex()
92 Object value = getValueAtIndex(index); in getFrameValueAtIndex()
105 public void setValues(Object values) { in setValues()
118 public void setValueAtIndex(Object value, int index) { in setValueAtIndex()
120 Object curValue = super.getValue(); in setValueAtIndex()
[all …]
/frameworks/base/core/java/android/os/
DHidlSupport.java45 public static boolean deepEquals(Object lft, Object rgt) { in deepEquals()
69 Object[] lftArray = (Object[])lft; in deepEquals()
70 Object[] rgtArray = (Object[])rgt; in deepEquals()
77 List<Object> lftList = (List<Object>)lft; in deepEquals()
78 List<Object> rgtList = (List<Object>)rgt; in deepEquals()
83 Iterator<Object> lftIter = lftList.iterator(); in deepEquals()
118 public static int deepHashCode(Object o) { in deepHashCode()
128 return Arrays.hashCode(Arrays.stream((Object[])o) in deepHashCode()
134 return Arrays.hashCode(((List<Object>)o).stream() in deepHashCode()
145 private static void throwErrorIfUnsupportedType(Object o) { in throwErrorIfUnsupportedType()
[all …]
/frameworks/base/test-base/src/junit/framework/
DAssert.java62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals()
73 static public void assertEquals(Object expected, Object actual) { in assertEquals()
210 static public void assertNotNull(Object object) { in assertNotNull()
217 static public void assertNotNull(String message, Object object) { in assertNotNull()
228 static public void assertNull(Object object) { in assertNull()
236 static public void assertNull(String message, Object object) { in assertNull()
243 static public void assertSame(String message, Object expected, Object actual) { in assertSame()
252 static public void assertSame(Object expected, Object actual) { in assertSame()
260 static public void assertNotSame(String message, Object expected, Object actual) { in assertNotSame()
268 static public void assertNotSame(Object expected, Object actual) { in assertNotSame()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCommandsInterface.java140 void registerForRadioStateChanged(Handler h, int what, Object obj); in registerForRadioStateChanged()
143 void registerForVoiceRadioTechChanged(Handler h, int what, Object obj); in registerForVoiceRadioTechChanged()
147 void registerForImsNetworkStateChanged(Handler h, int what, Object obj); in registerForImsNetworkStateChanged()
157 void registerForOn(Handler h, int what, Object obj); in registerForOn()
168 void registerForAvailable(Handler h, int what, Object obj); in registerForAvailable()
179 void registerForNotAvailable(Handler h, int what, Object obj); in registerForNotAvailable()
189 void registerForOffOrNotAvailable(Handler h, int what, Object obj); in registerForOffOrNotAvailable()
196 void registerForIccStatusChanged(Handler h, int what, Object obj); in registerForIccStatusChanged()
199 void registerForIccSlotStatusChanged(Handler h, int what, Object obj); in registerForIccSlotStatusChanged()
203 void registerForCallStateChanged(Handler h, int what, Object obj); in registerForCallStateChanged()
[all …]
DBaseCommands.java38 protected Object mStateMonitor = new Object();
168 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged()
184 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged()
194 public void registerForOn(Handler h, int what, Object obj) { in registerForOn()
214 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable()
234 public void registerForNotAvailable(Handler h, int what, Object obj) { in registerForNotAvailable()
254 public void registerForOffOrNotAvailable(Handler h, int what, Object obj) { in registerForOffOrNotAvailable()
274 public void registerForCallStateChanged(Handler h, int what, Object obj) { in registerForCallStateChanged()
286 public void registerForNetworkStateChanged(Handler h, int what, Object obj) { in registerForNetworkStateChanged()
298 public void registerForDataCallListChanged(Handler h, int what, Object obj) { in registerForDataCallListChanged()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedCommandsVerifier.java60 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged()
70 public void registerForVoiceRadioTechChanged(Handler h, int what, Object obj) { in registerForVoiceRadioTechChanged()
80 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged()
90 public void registerForOn(Handler h, int what, Object obj) { in registerForOn()
100 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable()
110 public void registerForNotAvailable(Handler h, int what, Object obj) { in registerForNotAvailable()
120 public void registerForOffOrNotAvailable(Handler h, int what, Object obj) { in registerForOffOrNotAvailable()
130 public void registerForIccStatusChanged(Handler h, int what, Object obj) { in registerForIccStatusChanged()
140 public void registerForIccSlotStatusChanged(Handler h, int what, Object obj) { in registerForIccSlotStatusChanged()
150 public void registerForCallStateChanged(Handler h, int what, Object obj) { in registerForCallStateChanged()
[all …]
/frameworks/base/core/java/android/database/
DMatrixCursor.java33 private Object[] data;
53 this.data = new Object[columnCount * initialCapacity]; in MatrixCursor()
70 private Object get(int column) { in get()
107 public void addRow(Object[] columnValues) { in addRow()
139 Object[] localData = data; in addRow()
140 for (Object columnValue : columnValues) { in addRow()
168 Object[] localData = data; in addRow()
177 Object[] oldData = this.data; in ensureCapacity()
182 this.data = new Object[newSize]; in ensureCapacity()
220 public RowBuilder add(Object columnValue) { in add()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DWatchdogDiagnosticsTest.java36 Object lock1;
37 Object lock2;
40 public TestThread1(Object lock1, Object lock2) { in TestThread1()
66 Object lock1;
67 Object lock2;
70 public TestThread2(Object lock1, Object lock2) { in TestThread2()
103 Object heldLock1 = new Object(); in printAnnotatedStack()
104 Object heldLock2 = 0; in printAnnotatedStack()
105 Object waitLock = "123"; in printAnnotatedStack()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DLeakDetectorTest.java50 private Object mObject;
53 private CollectionWaiter trackObjectWith(Consumer<Object> tracker) { in trackObjectWith()
54 mObject = new Object(); in trackObjectWith()
101 Object o1 = new Object(); in testDump()
102 Object o2 = new Object(); in testDump()
103 Collection<Object> col1 = new ArrayList<>(); in testDump()
117 Object o1 = new Object(); in testDisabled()
118 Object o2 = new Object(); in testDisabled()
119 Collection<Object> col1 = new ArrayList<>(); in testDisabled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DExtensionControllerImplTest.java91 TunerFactory<Object> factory = new ExtensionController.TunerFactory() { in testTuner()
98 public Object create(Map settings) { in testTuner()
102 Extension ext = mExtensionController.newExtension(Object.class) in testTuner()
114 Object o = new Object(); in testUiMode()
115 Extension ext = mExtensionController.newExtension(Object.class) in testUiMode()
139 Object o = new Object(); in testDefault()
140 Extension ext = mExtensionController.newExtension(Object.class) in testDefault()
149 Object def = new Object(); in testSortOrder()
150 Object uiMode = new Object(); in testSortOrder()
151 Object tuner = new Object(); in testSortOrder()
[all …]
/frameworks/base/core/java/android/text/
DSpannableStringInternal.java69 Object[] spans = src.getSpans(start, end, Object.class); in copySpans()
101 final Object[] srcSpans = src.mSpans; in copySpans()
182 /* package */ void setSpan(Object what, int start, int end, int flags) { in setSpan()
192 private void setSpan(Object what, int start, int end, int flags, boolean enforceParagraph) { in setSpan()
219 Object[] spans = mSpans; in setSpan()
237 Object[] newtags = ArrayUtils.newUnpaddedObjectArray( in setSpan()
259 /* package */ void removeSpan(Object what) { in removeSpan()
266 public void removeSpan(Object what, int flags) { in removeSpan()
268 Object[] spans = mSpans; in removeSpan()
293 public int getSpanStart(Object what) { in getSpanStart()
[all …]
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
DViewDumpParser.java12 private List<Map<Short,Object>> mViews;
30 Object o = d.readObject(); in parse()
33 mViews.add((Map<Short, Object>) o); in parse()
47 Map<Short,Object> idMap = mViews.remove(mViews.size() - 1); in parse()
56 Map<Short, Object> props = mViews.get(0); in getFirstView()
57 Object name = getProperty(props, "__name__"); in getFirstView()
58 Object hash = getProperty(props, "__hash__"); in getFirstView()
67 private Object getProperty(Map<Short, Object> props, String key) { in getProperty()
71 private static Map<String, Short> reverse(Map<Short, Object> m) { in reverse()
74 for (Map.Entry<Short, Object> e : m.entrySet()) { in reverse()
[all …]
/frameworks/layoutlib/bridge/src/android/animation/
DPropertyValuesHolder_Delegate.java59 private static final Object sMethodIndexLock = new Object();
102 private static void callMethod(Object target, long methodID, Object... args) { in callMethod()
137 /*package*/ static void nCallIntMethod(Object target, long methodID, int arg) { in nCallIntMethod()
142 /*package*/ static void nCallFloatMethod(Object target, long methodID, float arg) { in nCallFloatMethod()
147 /*package*/ static void nCallTwoIntMethod(Object target, long methodID, int arg1, in nCallTwoIntMethod()
153 /*package*/ static void nCallFourIntMethod(Object target, long methodID, int arg1, in nCallFourIntMethod()
159 /*package*/ static void nCallMultipleIntMethod(Object target, long methodID, in nCallMultipleIntMethod()
164 Object[] params = new Object[args.length]; in nCallMultipleIntMethod()
172 /*package*/ static void nCallTwoFloatMethod(Object target, long methodID, float arg1, in nCallTwoFloatMethod()
178 /*package*/ static void nCallFourFloatMethod(Object target, long methodID, float arg1, in nCallFourFloatMethod()
[all …]

12345678910>>...95