Home
last modified time | relevance | path

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

12345678910>>...125

/frameworks/base/apct-tests/perftests/core/src/android/libcore/
DClonePerfTest.java35 public Object clone() throws CloneNotSupportedException { in clone()
41 public Object clone() throws CloneNotSupportedException { in clone()
45 Object mO1 = new Object();
46 Object mO2 = new Object();
47 Object mO3 = new Object();
48 Object mO4 = new Object();
49 Object mO5 = new Object();
50 Object mO6 = new Object();
51 Object mO7 = new Object();
52 Object mO8 = new Object();
[all …]
DReferencePerfTest.java39 private Object mObject;
44 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAlloc()
54 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAllocAndEnqueue()
57 (new PhantomReference<Object>(mObject, queue)).enqueue(); in timeAllocAndEnqueue()
64 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAllocEnqueueAndPoll()
67 (new PhantomReference<Object>(mObject, queue)).enqueue(); in timeAllocEnqueueAndPoll()
75 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAllocEnqueueAndRemove()
78 (new PhantomReference<Object>(mObject, queue)).enqueue(); in timeAllocEnqueueAndRemove()
/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/tests/utiltests/src/com/android/internal/util/
DArrayUtilsTest.java43 final Object A = new Object(); in testContains()
44 final Object B = new Object(); in testContains()
45 final Object C = new Object(); in testContains()
46 final Object D = new Object(); in testContains()
48 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, A)); in testContains()
49 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, B)); in testContains()
50 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, C)); in testContains()
51 assertTrue(ArrayUtils.contains(new Object[] { A, null, C }, null)); in testContains()
53 assertFalse(ArrayUtils.contains(new Object[] { A, B, C }, null)); in testContains()
54 assertFalse(ArrayUtils.contains(new Object[] { }, null)); in testContains()
[all …]
/frameworks/base/core/java/com/android/internal/util/function/pooled/
DPooledLambdaImpl.java73 final class PooledLambdaImpl<R> extends OmniFunction<Object,
74 Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, R> {
85 public Pool(Object lock) { in Pool()
90 static final Pool sPool = new Pool(new Object());
100 Object mFunc;
111 @Nullable Object[] mArgs = null;
181 R invoke(Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, in invoke()
182 Object a8, Object a9, Object a10, Object a11) { in invoke()
187 new Object[] { a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11 }, in invoke()
217 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 …]
/frameworks/base/core/java/android/os/
DBundleMerger.java244 final Object firstValue = first.get(key); in merge()
245 final Object lastValue = last.get(key); in merge()
263 public static @Nullable Object merge(@Strategy int strategy, in merge()
264 @Nullable Object first, @Nullable Object last) { in merge()
309 private static @NonNull Object comparableMin(@NonNull Object first, @NonNull Object last) { in comparableMin()
310 return ((Comparable<Object>) first).compareTo(last) < 0 ? first : last; in comparableMin()
314 private static @NonNull Object comparableMax(@NonNull Object first, @NonNull Object last) { in comparableMax()
315 return ((Comparable<Object>) first).compareTo(last) >= 0 ? first : last; in comparableMax()
318 private static @NonNull Object numberAdd(@NonNull Object first, @NonNull Object last) { in numberAdd()
332 private static @NonNull Number numberIncrementFirst(@NonNull Object first, in numberIncrementFirst()
[all …]
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/services/core/java/com/android/server/
DLockGuard.java79 private static Object[] sKnownFixed = new Object[INDEX_DPMS + 1];
81 private static ArrayMap<Object, LockInfo> sKnown = new ArrayMap<>(0, true);
88 public ArraySet<Object> children = new ArraySet<>(0, true);
94 private static LockInfo findOrCreateLockInfo(Object lock) { in findOrCreateLockInfo()
110 public static Object guard(Object lock) { in guard()
118 final Object child = info.children.valueAt(i); in guard()
133 final Object test = sKnown.keyAt(i); in guard()
151 final Object lock = sKnownFixed[i]; in guard()
156 final Object targetMayBeNull = sKnownFixed[index]; in guard()
164 private static void doLog(@Nullable Object lock, String message) { in doLog()
[all …]
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/
DSoundTriggerMiddlewareLoggingTest.java37 Object param1 = new Object(); in serviceEventException_getStringContainsInfo()
38 Object param2 = new Object(); in serviceEventException_getStringContainsInfo()
66 Object param1 = new Object(); in serviceEventReturn_getStringContainsInfo()
67 Object param2 = new Object(); in serviceEventReturn_getStringContainsInfo()
68 Object retValue = new Object(); in serviceEventReturn_getStringContainsInfo()
83 Object retValue = new Object(); in serviceEventReturnNoArgs_getStringContainsInfo()
94 Object param1 = new Object(); in sessionEventException_getStringContainsInfo()
95 Object param2 = new Object(); in sessionEventException_getStringContainsInfo()
118 Object param1 = new Object(); in sessionEventReturn_getStringContainsInfo()
119 Object param2 = new Object(); in sessionEventReturn_getStringContainsInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsRestrictions.java37 boolean setGlobalRestriction(Object clientToken, int code, boolean restricted); in setGlobalRestriction()
46 boolean getGlobalRestriction(Object clientToken, int code); in getGlobalRestriction()
55 boolean hasGlobalRestrictions(Object clientToken); in hasGlobalRestrictions()
63 boolean clearGlobalRestrictions(Object clientToken); in clearGlobalRestrictions()
77 boolean setUserRestriction(Object clientToken, int userId, int code, boolean restricted, in setUserRestriction()
95 boolean getUserRestriction(Object clientToken, int userId, int code, String packageName, in getUserRestriction()
105 boolean hasUserRestrictions(Object clientToken); in hasUserRestrictions()
113 boolean clearUserRestrictions(Object clientToken); in clearUserRestrictions()
122 boolean clearUserRestrictions(Object clientToken, Integer userId); in clearUserRestrictions()
133 PackageTagsList getUserRestrictionExclusions(Object clientToken, int userId); in getUserRestrictionExclusions()
/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/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/
DEventsTest.java76 public Object[] mArgs;
118 public static Collection<Object[]> data() { in data()
119 return Arrays.asList(new Object[][]{ in data()
124 {Events.EVENT_SHOW_DIALOG, new Object[]{Events.SHOW_REASON_VOLUME_CHANGED, false}, in data()
129 {Events.EVENT_EXPAND, new Object[]{true}, in data()
134 new Object[]{Events.DISMISS_REASON_TOUCH_OUTSIDE, true}, in data()
138 {Events.EVENT_ACTIVE_STREAM_CHANGED, new Object[]{AudioSystem.STREAM_ACCESSIBILITY}, in data()
143 new Object[]{AudioSystem.STREAM_MUSIC, Events.ICON_STATE_MUTE}, in data()
148 new Object[]{AudioSystem.STREAM_MUSIC, /* volume */ 0}, in data()
153 new Object[]{AudioSystem.STREAM_MUSIC, /* volume */ 1}, in data()
[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/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/core/tests/coretests/src/com/android/internal/util/
DGrowingArrayUtilsTest.java35 private final Object TEST_OBJECT = new Object();
39 assertArrayEqualsPrefix(new Object[]{TEST_OBJECT}, in testAppend_Object()
41 assertArrayEqualsPrefix(new Object[]{TEST_OBJECT, TEST_OBJECT}, in testAppend_Object()
42 append(new Object[]{TEST_OBJECT}, 1, TEST_OBJECT)); in testAppend_Object()
43 assertArrayEqualsPrefix(new Object[]{TEST_OBJECT}, in testAppend_Object()
44 append(new Object[]{null, null}, 0, TEST_OBJECT)); in testAppend_Object()
49 assertArrayEqualsPrefix(new Object[]{TEST_OBJECT}, in testInsert_Object()
51 assertArrayEqualsPrefix(new Object[]{null, TEST_OBJECT}, in testInsert_Object()
52 insert(new Object[]{TEST_OBJECT}, 1, 0, null)); in testInsert_Object()
53 assertArrayEqualsPrefix(new Object[]{TEST_OBJECT, null}, in testInsert_Object()
[all …]
/frameworks/base/test-junit/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/tests/telephonytests/src/com/android/internal/telephony/
DSimulatedCommandsVerifier.java69 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged()
79 public void registerForVoiceRadioTechChanged(Handler h, int what, Object obj) { in registerForVoiceRadioTechChanged()
89 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged()
99 public void registerForOn(Handler h, int what, Object obj) { in registerForOn()
109 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable()
119 public void registerForNotAvailable(Handler h, int what, Object obj) { in registerForNotAvailable()
129 public void registerForOffOrNotAvailable(Handler h, int what, Object obj) { in registerForOffOrNotAvailable()
139 public void registerForIccStatusChanged(Handler h, int what, Object obj) { in registerForIccStatusChanged()
149 public void registerForIccSlotStatusChanged(Handler h, int what, Object obj) { in registerForIccSlotStatusChanged()
159 public void registerForCallStateChanged(Handler h, int what, Object obj) { in registerForCallStateChanged()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCommandsInterface.java172 void registerForRadioStateChanged(Handler h, int what, Object obj); in registerForRadioStateChanged()
175 void registerForVoiceRadioTechChanged(Handler h, int what, Object obj); in registerForVoiceRadioTechChanged()
179 void registerForImsNetworkStateChanged(Handler h, int what, Object obj); in registerForImsNetworkStateChanged()
189 void registerForOn(Handler h, int what, Object obj); in registerForOn()
200 void registerForAvailable(Handler h, int what, Object obj); in registerForAvailable()
211 void registerForNotAvailable(Handler h, int what, Object obj); in registerForNotAvailable()
221 void registerForOffOrNotAvailable(Handler h, int what, Object obj); in registerForOffOrNotAvailable()
228 void registerForIccStatusChanged(Handler h, int what, Object obj); in registerForIccStatusChanged()
231 void registerForIccSlotStatusChanged(Handler h, int what, Object obj); in registerForIccSlotStatusChanged()
235 void registerForCallStateChanged(Handler h, int what, Object obj); in registerForCallStateChanged()
[all …]
DBaseCommands.java48 protected Object mStateMonitor = new Object();
166 private Object mLastEmergencyNumberListIndicationLock = new Object();
197 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged()
211 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged()
220 public void registerForOn(Handler h, int what, Object obj) { in registerForOn()
238 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable()
256 public void registerForNotAvailable(Handler h, int what, Object obj) { in registerForNotAvailable()
274 public void registerForOffOrNotAvailable(Handler h, int what, Object obj) { in registerForOffOrNotAvailable()
292 public void registerForCallStateChanged(Handler h, int what, Object obj) { in registerForCallStateChanged()
302 public void registerForNetworkStateChanged(Handler h, int what, Object obj) { in registerForNetworkStateChanged()
[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/core/tests/coretests/src/android/util/
DPoolsTest.java31 private final Object mRed = new Object();
32 private final Object mGreen = new Object();
33 private final Object mBlue = new Object();
37 doTest(new Pools.SimplePool<Object>(POOL_SIZE)); in testSimple()
42 doTest(new Pools.SynchronizedPool<Object>(POOL_SIZE)); in testSynchronized()
45 private void doTest(Pools.SimplePool<Object> pool) throws Exception { in doTest()
/frameworks/layoutlib/create/tests/res/data/
Dmock_android.jarMETA-INF/ META-INF/MANIFEST.MF README.md mock_android/ mock_android/data ...
/frameworks/base/core/java/android/database/
DMatrixCursor.java34 private Object[] data;
54 this.data = new Object[columnCount * initialCapacity]; in MatrixCursor()
71 private Object get(int column) { in get()
108 public void addRow(Object[] columnValues) { in addRow()
140 Object[] localData = data; in addRow()
141 for (Object columnValue : columnValues) { in addRow()
169 Object[] localData = data; in addRow()
178 Object[] oldData = this.data; in ensureCapacity()
183 this.data = new Object[newSize]; in ensureCapacity()
221 public RowBuilder add(Object columnValue) { in add()
[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 …]

12345678910>>...125