/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 30 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/core/tests/coretests/src/android/text/ |
D | SpannableTest.java | 42 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/ |
D | PooledLambdaImpl.java | 73 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/ |
D | HandlerCaller.java | 88 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 …]
|
D | SomeArgs.java | 35 private static Object sPoolLock = new Object(); 47 public Object arg1; 49 public Object arg2; 51 public Object arg3; 52 public Object arg4; 53 public Object arg5; 54 public Object arg6; 55 public Object arg7; 56 public Object arg8; 57 public Object arg9;
|
/frameworks/base/services/core/java/com/android/server/ |
D | LockGuard.java | 79 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/packages/SystemUI/tests/src/com/android/systemui/volume/ |
D | EventsTest.java | 73 public Object[] mArgs; 112 public static Collection<Object[]> data() { in data() 113 return Arrays.asList(new Object[][]{ in data() 118 {Events.EVENT_SHOW_DIALOG, new Object[]{Events.SHOW_REASON_VOLUME_CHANGED, false}, in data() 123 {Events.EVENT_EXPAND, new Object[]{true}, in data() 128 new Object[]{Events.DISMISS_REASON_TOUCH_OUTSIDE, true}, in data() 132 {Events.EVENT_ACTIVE_STREAM_CHANGED, new Object[]{AudioSystem.STREAM_ACCESSIBILITY}, in data() 137 new Object[]{AudioSystem.STREAM_MUSIC, Events.ICON_STATE_MUTE}, in data() 142 new Object[]{AudioSystem.STREAM_MUSIC, /* volume */ 0}, in data() 147 new Object[]{AudioSystem.STREAM_MUSIC, /* volume */ 1}, in data() [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | MoreAsserts.java | 46 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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | FrameValues.java | 31 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/ |
D | HidlSupport.java | 45 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/core/java/android/metrics/ |
D | LogMaker.java | 48 private SparseArray<Object> entries = new SparseArray(); 56 public LogMaker(Object[] items) { in LogMaker() 242 public LogMaker addTaggedData(int tag, Object value) { in addTaggedData() 272 public boolean isValidValue(Object value) { in isValidValue() 279 public Object getTaggedData(int tag) { in getTaggedData() 285 Object obj = entries.get(MetricsEvent.RESERVED_FOR_LOGBUILDER_CATEGORY); in getCategory() 295 Object obj = entries.get(MetricsEvent.RESERVED_FOR_LOGBUILDER_TYPE); in getType() 305 Object obj = entries.get(MetricsEvent.RESERVED_FOR_LOGBUILDER_SUBTYPE); in getSubtype() 315 Object obj = entries.get(MetricsEvent.RESERVED_FOR_LOGBUILDER_TIMESTAMP); in getTimestamp() 325 Object obj = entries.get(MetricsEvent.RESERVED_FOR_LOGBUILDER_PACKAGENAME); in getPackageName() [all …]
|
/frameworks/base/test-base/src/junit/framework/ |
D | Assert.java | 62 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/base/core/java/android/database/ |
D | MatrixCursor.java | 33 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SimulatedCommandsVerifier.java | 67 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged() 77 public void registerForVoiceRadioTechChanged(Handler h, int what, Object obj) { in registerForVoiceRadioTechChanged() 87 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged() 97 public void registerForOn(Handler h, int what, Object obj) { in registerForOn() 107 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable() 117 public void registerForNotAvailable(Handler h, int what, Object obj) { in registerForNotAvailable() 127 public void registerForOffOrNotAvailable(Handler h, int what, Object obj) { in registerForOffOrNotAvailable() 137 public void registerForIccStatusChanged(Handler h, int what, Object obj) { in registerForIccStatusChanged() 147 public void registerForIccSlotStatusChanged(Handler h, int what, Object obj) { in registerForIccSlotStatusChanged() 157 public void registerForCallStateChanged(Handler h, int what, Object obj) { in registerForCallStateChanged() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CommandsInterface.java | 154 void registerForRadioStateChanged(Handler h, int what, Object obj); in registerForRadioStateChanged() 157 void registerForVoiceRadioTechChanged(Handler h, int what, Object obj); in registerForVoiceRadioTechChanged() 161 void registerForImsNetworkStateChanged(Handler h, int what, Object obj); in registerForImsNetworkStateChanged() 171 void registerForOn(Handler h, int what, Object obj); in registerForOn() 182 void registerForAvailable(Handler h, int what, Object obj); in registerForAvailable() 193 void registerForNotAvailable(Handler h, int what, Object obj); in registerForNotAvailable() 203 void registerForOffOrNotAvailable(Handler h, int what, Object obj); in registerForOffOrNotAvailable() 210 void registerForIccStatusChanged(Handler h, int what, Object obj); in registerForIccStatusChanged() 213 void registerForIccSlotStatusChanged(Handler h, int what, Object obj); in registerForIccSlotStatusChanged() 217 void registerForCallStateChanged(Handler h, int what, Object obj); in registerForCallStateChanged() [all …]
|
D | BaseCommands.java | 46 protected Object mStateMonitor = new Object(); 158 private Object mLastEmergencyNumberListIndicationLock = new Object(); 187 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged() 201 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged() 210 public void registerForOn(Handler h, int what, Object obj) { in registerForOn() 228 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable() 246 public void registerForNotAvailable(Handler h, int what, Object obj) { in registerForNotAvailable() 264 public void registerForOffOrNotAvailable(Handler h, int what, Object obj) { in registerForOffOrNotAvailable() 282 public void registerForCallStateChanged(Handler h, int what, Object obj) { in registerForCallStateChanged() 292 public void registerForNetworkStateChanged(Handler h, int what, Object obj) { in registerForNetworkStateChanged() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | WatchdogDiagnosticsTest.java | 36 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/ |
D | LeakDetectorTest.java | 50 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/ |
D | ExtensionControllerImplTest.java | 91 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/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ |
D | ViewDumpParser.java | 12 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/ |
D | PropertyValuesHolder_Delegate.java | 57 private static final Object sMethodIndexLock = new Object(); 105 private static void callMethod(Object target, long methodID, Object... args) { in callMethod() 141 /*package*/ static void nCallIntMethod(Object target, long methodID, int arg) { in nCallIntMethod() 146 /*package*/ static void nCallFloatMethod(Object target, long methodID, float arg) { in nCallFloatMethod() 151 /*package*/ static void nCallTwoIntMethod(Object target, long methodID, int arg1, in nCallTwoIntMethod() 157 /*package*/ static void nCallFourIntMethod(Object target, long methodID, int arg1, in nCallFourIntMethod() 163 /*package*/ static void nCallMultipleIntMethod(Object target, long methodID, in nCallMultipleIntMethod() 168 Object[] params = new Object[args.length]; in nCallMultipleIntMethod() 176 /*package*/ static void nCallTwoFloatMethod(Object target, long methodID, float arg1, in nCallTwoFloatMethod() 182 /*package*/ static void nCallFourFloatMethod(Object target, long methodID, float arg1, in nCallFourFloatMethod() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | LocationAttributionHelperTest.java | 61 Object key1 = new Object(); in testLocationMonitoring() 62 Object key2 = new Object(); in testLocationMonitoring() 64 Object key3 = new Object(); in testLocationMonitoring() 65 Object key4 = new Object(); in testLocationMonitoring() 97 Object key1 = new Object(); in testHighPowerLocationMonitoring() 98 Object key2 = new Object(); in testHighPowerLocationMonitoring() 100 Object key3 = new Object(); in testHighPowerLocationMonitoring() 101 Object key4 = new Object(); in testHighPowerLocationMonitoring()
|
/frameworks/base/core/java/android/text/ |
D | SpannableStringInternal.java | 72 Object[] spans = src.getSpans(start, end, Object.class); in copySpansFromSpanned() 104 final Object[] srcSpans = src.mSpans; in copySpansFromInternal() 185 /* package */ void setSpan(Object what, int start, int end, int flags) { in setSpan() 195 private void setSpan(Object what, int start, int end, int flags, boolean enforceParagraph) { in setSpan() 222 Object[] spans = mSpans; in setSpan() 240 Object[] newtags = ArrayUtils.newUnpaddedObjectArray( in setSpan() 262 /* package */ void removeSpan(Object what) { in removeSpan() 269 public void removeSpan(Object what, int flags) { in removeSpan() 271 Object[] spans = mSpans; in removeSpan() 296 public int getSpanStart(Object what) { in getSpanStart() [all …]
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/ |
D | MethodListener.java | 39 void onInvokeV(String signature, boolean isNative, Object caller); in onInvokeV() 46 int onInvokeI(String signature, boolean isNative, Object caller); in onInvokeI() 53 long onInvokeL(String signature, boolean isNative, Object caller); in onInvokeL() 60 float onInvokeF(String signature, boolean isNative, Object caller); in onInvokeF() 67 double onInvokeD(String signature, boolean isNative, Object caller); in onInvokeD() 74 Object onInvokeA(String signature, boolean isNative, Object caller); in onInvokeA()
|
/frameworks/base/tools/lock_agent/java/com/android/lock_checker/ |
D | OnThreadLockChecker.java | 48 private final ThreadLocal<List<Object>> mHeldLocks = ThreadLocal 70 Object mFirst; 71 Object mSecond; 75 LockPair(Object first, Object second) { in LockPair() 81 public void set(Object newFirst, Object newSecond) { in set() 101 public boolean equals(Object obj) { in equals() 131 public void pre(Object lock) { in pre() 136 public void post(Object lock) { in post() 140 private void handlePre(Thread self, Object lock) { in handlePre() 141 List<Object> heldLocks = mHeldLocks.get(); in handlePre() [all …]
|