Home
last modified time | relevance | path

Searched refs:record (Results 1 – 25 of 141) sorted by relevance

123456

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DViewInfoStore.java64 InfoRecord record = mLayoutHolderMap.get(holder); in addToPreLayout() local
65 if (record == null) { in addToPreLayout()
66 record = InfoRecord.obtain(); in addToPreLayout()
67 mLayoutHolderMap.put(holder, record); in addToPreLayout()
69 record.preInfo = info; in addToPreLayout()
70 record.flags |= FLAG_PRE; in addToPreLayout()
74 final InfoRecord record = mLayoutHolderMap.get(holder); in isDisappearing() local
75 return record != null && ((record.flags & FLAG_DISAPPEARED) != 0); in isDisappearing()
105 final InfoRecord record = mLayoutHolderMap.valueAt(index); in popFromLayoutStep() local
106 if (record != null && (record.flags & flag) != 0) { in popFromLayoutStep()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DViewInfoStore.java67 InfoRecord record = mLayoutHolderMap.get(holder); in addToPreLayout() local
68 if (record == null) { in addToPreLayout()
69 record = InfoRecord.obtain(); in addToPreLayout()
70 mLayoutHolderMap.put(holder, record); in addToPreLayout()
72 record.preInfo = info; in addToPreLayout()
73 record.flags |= FLAG_PRE; in addToPreLayout()
77 final InfoRecord record = mLayoutHolderMap.get(holder); in isDisappearing() local
78 return record != null && ((record.flags & FLAG_DISAPPEARED) != 0); in isDisappearing()
108 final InfoRecord record = mLayoutHolderMap.valueAt(index); in popFromLayoutStep() local
109 if (record != null && (record.flags & flag) != 0) { in popFromLayoutStep()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityEvent.java788 AccessibilityRecord record = records.get(i); in setSealed() local
789 record.setSealed(sealed); in setSealed()
810 public void appendRecord(AccessibilityRecord record) { in appendRecord() argument
815 mRecords.add(record); in appendRecord()
1021 final AccessibilityRecord record = event.mRecords.get(i); in obtain() local
1022 final AccessibilityRecord recordClone = AccessibilityRecord.obtain(record); in obtain()
1071 AccessibilityRecord record = mRecords.remove(0); in clear() local
1072 record.recycle(); in clear()
1098 AccessibilityRecord record = AccessibilityRecord.obtain(); in initFromParcel() local
1099 readAccessibilityRecordFromParcel(record, parcel); in initFromParcel()
[all …]
DAccessibilityRecord.java742 public static AccessibilityRecord obtain(AccessibilityRecord record) { in obtain() argument
744 clone.init(record); in obtain()
757 AccessibilityRecord record = sPool; in obtain() local
760 record.mNext = null; in obtain()
761 record.mIsInPool = false; in obtain()
762 return record; in obtain()
795 void init(AccessibilityRecord record) { in init() argument
796 mSealed = record.mSealed; in init()
797 mBooleanProperties = record.mBooleanProperties; in init()
798 mCurrentItemIndex = record.mCurrentItemIndex; in init()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeFiltering.java97 private static Bundle extras(NotificationRecord record) { in extras() argument
98 return record != null && record.sbn != null && record.sbn.getNotification() != null in extras()
99 ? record.sbn.getNotification().extras : null; in extras()
102 protected void recordCall(NotificationRecord record) { in recordCall() argument
103 REPEAT_CALLERS.recordCall(mContext, extras(record)); in recordCall()
106 public boolean shouldIntercept(int zen, ZenModeConfig config, NotificationRecord record) { in shouldIntercept() argument
110 ZenLog.traceIntercepted(record, "none"); in shouldIntercept()
113 if (isAlarm(record)) { in shouldIntercept()
117 ZenLog.traceIntercepted(record, "alarmsOnly"); in shouldIntercept()
120 if (isAlarm(record)) { in shouldIntercept()
[all …]
DNotificationIntrusivenessExtractor.java44 public RankingReconsideration process(NotificationRecord record) { in process() argument
45 if (record == null || record.getNotification() == null) { in process()
50 if (record.getFreshnessMs(System.currentTimeMillis()) < HANG_TIME_MS in process()
51 && record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) { in process()
52 if (record.getSound() != null && record.getSound() != Uri.EMPTY) { in process()
53 record.setRecentlyIntrusive(true); in process()
55 if (record.getVibration() != null) { in process()
56 record.setRecentlyIntrusive(true); in process()
58 if (record.getNotification().fullScreenIntent != null) { in process()
59 record.setRecentlyIntrusive(true); in process()
[all …]
DNotificationComparator.java120 private boolean isImportantColorized(NotificationRecord record) { in isImportantColorized() argument
121 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantColorized()
124 return record.getNotification().isColorized(); in isImportantColorized()
127 private boolean isImportantOngoing(NotificationRecord record) { in isImportantOngoing() argument
128 if (!isOngoing(record)) { in isImportantOngoing()
132 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantOngoing()
136 return isCall(record) || isMediaNotification(record); in isImportantOngoing()
139 protected boolean isImportantPeople(NotificationRecord record) { in isImportantPeople() argument
140 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantPeople()
143 if (record.getContactAffinity() > ValidateNotificationPeople.NONE) { in isImportantPeople()
[all …]
DBadgeExtractor.java34 public RankingReconsideration process(NotificationRecord record) { in process() argument
35 if (record == null || record.getNotification() == null) { in process()
44 boolean userWantsBadges = mConfig.badgingEnabled(record.sbn.getUser()); in process()
46 mConfig.canShowBadge(record.sbn.getPackageName(), record.sbn.getUid()); in process()
48 record.setShowBadge(false); in process()
50 if (record.getChannel() != null) { in process()
51 record.setShowBadge(record.getChannel().canShowBadge() && appCanShowBadge); in process()
53 record.setShowBadge(appCanShowBadge); in process()
DSnoozeHelper.java131 protected void snooze(NotificationRecord record, long duration) { in snooze() argument
132 snooze(record); in snooze()
133 scheduleRepost(record.sbn.getPackageName(), record.getKey(), record.getUserId(), duration); in snooze()
139 protected void snooze(NotificationRecord record) { in snooze() argument
140 int userId = record.getUser().getIdentifier(); in snooze()
142 Slog.d(TAG, "Snoozing " + record.getKey()); in snooze()
149 ArrayMap<String, NotificationRecord> pkgRecords = records.get(record.sbn.getPackageName()); in snooze()
153 pkgRecords.put(record.getKey(), record); in snooze() local
154 records.put(record.sbn.getPackageName(), pkgRecords); in snooze()
156 mPackages.put(record.getKey(), record.sbn.getPackageName()); in snooze()
[all …]
DNotificationChannelExtractor.java34 public RankingReconsideration process(NotificationRecord record) { in process() argument
35 if (record == null || record.getNotification() == null) { in process()
45 record.updateNotificationChannel(mConfig.getNotificationChannel(record.sbn.getPackageName(), in process()
46 record.sbn.getUid(), record.getChannel().getId(), false)); in process()
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DSystemMediaRouteProvider.java279 SystemRouteRecord record = mSystemRouteRecords.get(index); in onCreateRouteController() local
280 return new SystemRouteController(record.mRouteObj); in onCreateRouteController()
335 SystemRouteRecord record = new SystemRouteRecord(routeObj, id); in addSystemRouteNoPublish() local
336 updateSystemRouteDescriptor(record); in addSystemRouteNoPublish()
337 mSystemRouteRecords.add(record); in addSystemRouteNoPublish()
377 SystemRouteRecord record = mSystemRouteRecords.get(index); in onRouteChanged() local
378 updateSystemRouteDescriptor(record); in onRouteChanged()
389 SystemRouteRecord record = mSystemRouteRecords.get(index); in onRouteVolumeChanged() local
391 if (newVolume != record.mRouteDescriptor.getVolume()) { in onRouteVolumeChanged()
392 record.mRouteDescriptor = in onRouteVolumeChanged()
[all …]
/frameworks/base/services/tests/notification/src/com/android/server/notification/
DNotificationRecordTest.java192 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_preUpgradeUsesNotification() local
193 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, record.getSound()); in testSound_default_preUpgradeUsesNotification()
194 assertEquals(Notification.AUDIO_ATTRIBUTES_DEFAULT, record.getAudioAttributes()); in testSound_default_preUpgradeUsesNotification()
205 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_custom_preUpgradeUsesNotification() local
206 assertEquals(CUSTOM_SOUND, record.getSound()); in testSound_custom_preUpgradeUsesNotification()
207 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); in testSound_custom_preUpgradeUsesNotification()
219 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_userLocked_preUpgrade() local
220 assertEquals(CUSTOM_SOUND, record.getSound()); in testSound_default_userLocked_preUpgrade()
221 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); in testSound_default_userLocked_preUpgrade()
231 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_noSound_preUpgrade() local
[all …]
/frameworks/base/telecomm/java/android/telecom/
DRemoteConnection.java754 for (CallbackRecord record : mCallbackRecords) { in unregisterCallback()
755 if (record.getCallback() == callback) { in unregisterCallback()
756 mCallbackRecords.remove(record); in unregisterCallback()
1183 for (CallbackRecord record: mCallbackRecords) { in setState()
1185 final Callback callback = record.getCallback(); in setState()
1186 record.getHandler().post(new Runnable() { in setState()
1204 for (CallbackRecord record : mCallbackRecords) { in setDisconnected()
1206 final Callback callback = record.getCallback(); in setDisconnected()
1207 record.getHandler().post(new Runnable() { in setDisconnected()
1223 for (CallbackRecord record : mCallbackRecords) { in setRingbackRequested()
[all …]
DRemoteConference.java167 for (CallbackRecord<Callback> record : mCallbackRecords) { in setDestroyed()
169 final Callback callback = record.getCallback(); in setDestroyed()
170 record.getHandler().post(new Runnable() { in setDestroyed()
192 for (CallbackRecord<Callback> record : mCallbackRecords) { in setState()
194 final Callback callback = record.getCallback(); in setState()
195 record.getHandler().post(new Runnable() { in setState()
210 for (CallbackRecord<Callback> record : mCallbackRecords) { in addConnection()
212 final Callback callback = record.getCallback(); in addConnection()
213 record.getHandler().post(new Runnable() { in addConnection()
228 for (CallbackRecord<Callback> record : mCallbackRecords) { in removeConnection()
[all …]
/frameworks/base/tools/preload/
DRoot.java54 void indexClassOperation(Record record) { in indexClassOperation() argument
55 Proc process = processes.get(record.pid); in indexClassOperation()
59 if (record.processName.equals("dexopt")) { in indexClassOperation()
63 String name = record.className; in indexClassOperation()
67 switch (record.type) { in indexClassOperation()
72 name, record.classLoader == 0); in indexClassOperation()
84 o = process.endOperation(record.tid, record.className, in indexClassOperation()
85 loadedClass, record.time); in indexClassOperation()
91 switch (record.type) { in indexClassOperation()
93 process.startOperation(record.tid, loadedClass, record.time, in indexClassOperation()
[all …]
/frameworks/support/compat/java/android/support/v4/app/
DNotificationManagerCompat.java353 for (ListenerRecord record : mRecordMap.values()) { in handleQueueTask()
354 record.taskQueue.add(task); in handleQueueTask()
355 processListenerQueue(record); in handleQueueTask()
360 ListenerRecord record = mRecordMap.get(componentName); in handleServiceConnected() local
361 if (record != null) { in handleServiceConnected()
362 record.service = INotificationSideChannel.Stub.asInterface(iBinder); in handleServiceConnected()
363 record.retryCount = 0; in handleServiceConnected()
364 processListenerQueue(record); in handleServiceConnected()
369 ListenerRecord record = mRecordMap.get(componentName); in handleServiceDisconnected() local
370 if (record != null) { in handleServiceDisconnected()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java106 public void addSession(MediaSessionRecord record) { in addSession() argument
107 mSessions.add(record); in addSession()
108 clearCache(record.getUserId()); in addSession()
121 public void removeSession(MediaSessionRecord record) { in removeSession() argument
122 mSessions.remove(record); in removeSession()
123 if (mMediaButtonSession == record) { in removeSession()
129 clearCache(record.getUserId()); in removeSession()
135 public boolean contains(MediaSessionRecord record) { in contains() argument
136 return mSessions.contains(record); in contains()
146 public void onPlaystateChanged(MediaSessionRecord record, int oldState, int newState) { in onPlaystateChanged() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DPackageDexUsageTests.java112 assertTrue(record(mFooBaseUser0)); in testRecordPrimary()
122 assertTrue(record(mFooSplit1User0)); in testRecordSplit()
132 assertTrue(record(mFooBaseUser0)); in testRecordSplitPrimarySequence()
134 assertFalse(record(mFooSplit1User0)); in testRecordSplitPrimarySequence()
142 assertTrue(record(mFooSplit2UsedByOtherApps0)); in testRecordSplitPrimarySequence()
150 assertTrue(record(mFooSecondary1User0)); in testRecordSecondary()
157 assertFalse(record(mFooSecondary1User0)); in testRecordSecondary()
164 assertTrue(record(mFooSplit2UsedByOtherApps0)); in testRecordBaseAndSecondarySequence()
166 assertTrue(record(mFooSecondary1User0)); in testRecordBaseAndSecondarySequence()
174 assertTrue(record(mFooSecondary2UsedByOtherApps0)); in testRecordBaseAndSecondarySequence()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaInformationRecords.java22 public Object record; field in CdmaInformationRecords
40 record = obj; in CdmaInformationRecords()
44 record = obj; in CdmaInformationRecords()
48 record = obj; in CdmaInformationRecords()
52 record = obj; in CdmaInformationRecords()
56 record = obj; in CdmaInformationRecords()
60 record = obj; in CdmaInformationRecords()
64 record = obj; in CdmaInformationRecords()
72 record = new CdmaDisplayInfoRec(id, p.readString()); in CdmaInformationRecords()
78 record = new CdmaNumberInfoRec(id, p.readString(), p.readInt(), p.readInt(), in CdmaInformationRecords()
[all …]
/frameworks/native/services/vr/virtual_touchpad/tests/
DVirtualTouchpad_test.cpp91 EvdevInjectorForTesting() { SetUInputForTesting(&record); } in EvdevInjectorForTesting()
93 UInputRecorder record; member in android::dvr::__anon214ecdac0111::EvdevInjectorForTesting
184 EXPECT_EQ(expect.GetString(), touchpad->injector[t].record.GetString()); in TEST_F()
195 touchpad->injector[t].record.Reset(); in TEST_F()
198 EXPECT_EQ(expect.GetString(), touchpad->injector[t].record.GetString()); in TEST_F()
209 touchpad->injector[t].record.Reset(); in TEST_F()
212 EXPECT_EQ(expect.GetString(), touchpad->injector[t].record.GetString()); in TEST_F()
222 touchpad->injector[t].record.Reset(); in TEST_F()
225 EXPECT_EQ(expect.GetString(), touchpad->injector[t].record.GetString()); in TEST_F()
231 touchpad->injector[t].record.Reset(); in TEST_F()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityRecordTests.java59 final ActivityRecord record = createActivity(service, testActivityComponent, task); in testStackCleanupOnClearingTask() local
61 record.setTask(null); in testStackCleanupOnClearingTask()
69 final ActivityRecord record = createActivity(service, testActivityComponent, task); in testStackCleanupOnActivityRemoval() local
71 task.removeActivity(record); in testStackCleanupOnActivityRemoval()
79 final ActivityRecord record = createActivity(service, testActivityComponent, task); in testStackCleanupOnTaskRemoval() local
92 final ActivityRecord record = createActivity(service, testActivityComponent, oldTask); in testNoCleanupMovingActivityInSameStack() local
95 record.reparent(newTask, 0, null /*reason*/); in testNoCleanupMovingActivityInSameStack()
131 final ActivityRecord record = createActivity(service, testActivityComponent, task); in verifyPositionWithLimitedAspectRatio() local
136 record.info.maxAspectRatio = aspectRatio; in verifyPositionWithLimitedAspectRatio()
137 record.ensureActivityConfigurationLocked(0 /* globalChanges */, false /* preserveWindow */); in verifyPositionWithLimitedAspectRatio()
[all …]
/frameworks/base/media/java/android/media/tv/
DTvInputManager.java882 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInputManager()
883 if (record == null) { in TvInputManager()
892 record.postSessionCreated(session); in TvInputManager()
899 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInputManager()
901 if (record == null) { in TvInputManager()
905 record.mSession.releaseInternal(); in TvInputManager()
906 record.postSessionReleased(); in TvInputManager()
913 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInputManager()
914 if (record == null) { in TvInputManager()
918 record.postChannelRetuned(channelUri); in TvInputManager()
[all …]
/frameworks/native/libs/vr/libbroadcastring/
Dbroadcast_ring_test.cc146 Record record; in TYPED_TEST() local
147 EXPECT_FALSE(ring.Get(&sequence, &record)); in TYPED_TEST()
149 EXPECT_EQ(Record(), record); in TYPED_TEST()
155 Record record; in TYPED_TEST() local
156 EXPECT_TRUE(ring.Get(&sequence, &record)); in TYPED_TEST()
158 EXPECT_EQ(original_record, record); in TYPED_TEST()
162 Record record; in TYPED_TEST() local
163 EXPECT_FALSE(ring.Get(&sequence, &record)); in TYPED_TEST()
165 EXPECT_EQ(Record(), record); in TYPED_TEST()
182 Record record; in TYPED_TEST() local
[all …]
/frameworks/support/compat/java/android/support/v4/view/accessibility/
DAccessibilityRecordCompat.java42 public AccessibilityRecordCompat(Object record) { in AccessibilityRecordCompat() argument
43 mRecord = (AccessibilityRecord) record; in AccessibilityRecordCompat()
67 public static AccessibilityRecordCompat obtain(AccessibilityRecordCompat record) { in obtain() argument
68 return new AccessibilityRecordCompat(AccessibilityRecord.obtain(record.mRecord)); in obtain()
134 public static void setSource(@NonNull AccessibilityRecord record, View root, in setSource() argument
137 record.setSource(root, virtualDescendantId); in setSource()
478 public static int getMaxScrollX(AccessibilityRecord record) { in getMaxScrollX() argument
480 return record.getMaxScrollX(); in getMaxScrollX()
504 public static void setMaxScrollX(AccessibilityRecord record, int maxScrollX) { in setMaxScrollX() argument
506 record.setMaxScrollX(maxScrollX); in setMaxScrollX()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DTileLayout.java49 for (TileRecord record : mRecords) { in setListening()
50 record.tile.setListening(this, mListening); in setListening()
68 for (TileRecord record : mRecords) { in removeAllViews()
69 record.tile.setListening(this, false); in removeAllViews()
97 for (TileRecord record : mRecords) { in onMeasure()
98 if (record.tileView.getVisibility() == GONE) continue; in onMeasure()
99 record.tileView.measure(exactly(mCellWidth), exactly(mCellHeight)); in onMeasure()
100 previousView = record.tileView.updateAccessibilityOrder(previousView); in onMeasure()
122 TileRecord record = mRecords.get(i); in onLayout() local
132 record.tileView.layout(left, top, right, top + record.tileView.getMeasuredHeight()); in onLayout()

123456