/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationIntrusivenessExtractor.java | 44 public RankingReconsideration process(NotificationRecord record) { argument 45 if (record == null || record.getNotification() == null) { 50 if (record.getFreshnessMs(System.currentTimeMillis()) < HANG_TIME_MS 51 && record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) { 52 if (record.getSound() != null && record.getSound() != Uri.EMPTY) { 53 record.setRecentlyIntrusive(true); 55 if (record.getVibration() != null) { 56 record [all...] |
H A D | BadgeExtractor.java | 36 public RankingReconsideration process(NotificationRecord record) { argument 37 if (record == null || record.getNotification() == null) { 46 boolean userWantsBadges = mConfig.badgingEnabled(record.sbn.getUser()); 48 mConfig.canShowBadge(record.sbn.getPackageName(), record.sbn.getUid()); 50 record.setShowBadge(false); 52 if (record.getChannel() != null) { 53 record.setShowBadge(record [all...] |
H A D | NotificationChannelExtractor.java | 34 public RankingReconsideration process(NotificationRecord record) { argument 35 if (record == null || record.getNotification() == null) { 45 record.updateNotificationChannel(mConfig.getNotificationChannel(record.sbn.getPackageName(), 46 record.sbn.getUid(), record.getChannel().getId(), false));
|
H A D | ZenModeFiltering.java | 110 private static Bundle extras(NotificationRecord record) { argument 111 return record != null && record.sbn != null && record.sbn.getNotification() != null 112 ? record.sbn.getNotification().extras : null; 115 protected void recordCall(NotificationRecord record) { argument 116 REPEAT_CALLERS.recordCall(mContext, extras(record)); 119 public boolean shouldIntercept(int zen, ZenModeConfig config, NotificationRecord record) { argument 125 && "android".equals(record.sbn.getPackageName()) 126 && SystemMessageProto.SystemMessage.NOTE_ZEN_UPGRADE == record 210 shouldInterceptAudience(int source, NotificationRecord record) argument 218 isAlarm(NotificationRecord record) argument 223 isEvent(NotificationRecord record) argument 227 isReminder(NotificationRecord record) argument 231 isCall(NotificationRecord record) argument 236 isMedia(NotificationRecord record) argument 242 isSystem(NotificationRecord record) argument 259 isMessage(NotificationRecord record) argument [all...] |
H A D | NotificationAdjustmentExtractor.java | 33 public RankingReconsideration process(NotificationRecord record) { argument 34 if (record == null || record.getNotification() == null) { 38 record.applyAdjustments();
|
H A D | NotificationComparator.java | 120 private boolean isImportantColorized(NotificationRecord record) { argument 121 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { 124 return record.getNotification().isColorized(); 127 private boolean isImportantOngoing(NotificationRecord record) { argument 128 if (!isOngoing(record)) { 132 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { 136 return isCall(record) || isMediaNotification(record); 139 protected boolean isImportantPeople(NotificationRecord record) { argument 140 if (record 149 isImportantMessaging(NotificationRecord record) argument 153 isOngoing(NotificationRecord record) argument 158 isMediaNotification(NotificationRecord record) argument 162 isCall(NotificationRecord record) argument [all...] |
H A D | ZenModeExtractor.java | 39 public RankingReconsideration process(NotificationRecord record) { argument 40 if (record == null || record.getNotification() == null) { 50 record.setIntercepted(mZenModeHelper.shouldIntercept(record)); 51 if (record.isIntercepted()) { 52 record.setSuppressedVisualEffects( 55 record.setSuppressedVisualEffects(0);
|
H A D | ImportanceExtractor.java | 34 public RankingReconsideration process(NotificationRecord record) { argument 35 if (record == null || record.getNotification() == null) { 44 record.setUserImportance(record.getChannel().getImportance());
|
H A D | PriorityExtractor.java | 35 public RankingReconsideration process(NotificationRecord record) { argument 36 if (record == null || record.getNotification() == null) { 46 record.setPackagePriority(record.getChannel().canBypassDnd()
|
H A D | VisibilityExtractor.java | 35 public RankingReconsideration process(NotificationRecord record) { argument 36 if (record == null || record.getNotification() == null) { 46 record.setPackageVisibilityOverride(record.getChannel().getLockscreenVisibility());
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ViewInfoStore.java | 67 InfoRecord record = mLayoutHolderMap.get(holder); 68 if (record == null) { 69 record = InfoRecord.obtain(); 70 mLayoutHolderMap.put(holder, record); 72 record.preInfo = info; 73 record.flags |= FLAG_PRE; 77 final InfoRecord record = mLayoutHolderMap.get(holder); 78 return record != null && ((record.flags & FLAG_DISAPPEARED) != 0); 108 final InfoRecord record 318 recycle(InfoRecord record) argument [all...] |
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | ViewInfoStore.java | 62 InfoRecord record = mLayoutHolderMap.get(holder); 63 if (record == null) { 64 record = InfoRecord.obtain(); 65 mLayoutHolderMap.put(holder, record); 67 record.preInfo = info; 68 record.flags |= FLAG_PRE; 72 final InfoRecord record = mLayoutHolderMap.get(holder); 73 return record != null && ((record.flags & FLAG_DISAPPEARED) != 0); 103 final InfoRecord record 315 recycle(InfoRecord record) argument [all...] |
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
H A D | TestServiceIntentSender.java | 21 void sendUpdateNotificationIntent(MtpDeviceRecord[] record) {} argument
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | NotificationRecordTest.java | 191 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 192 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, record.getSound()); 193 assertEquals(Notification.AUDIO_ATTRIBUTES_DEFAULT, record.getAudioAttributes()); 204 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 205 assertEquals(CUSTOM_SOUND, record.getSound()); 206 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); 218 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 219 assertEquals(CUSTOM_SOUND, record.getSound()); 220 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); 230 NotificationRecord record [all...] |
/frameworks/base/tools/preload/ |
H A D | Root.java | 54 void indexClassOperation(Record record) { argument 55 Proc process = processes.get(record.pid); 59 if (record.processName.equals("dexopt")) { 63 String name = record.className; 67 switch (record.type) { 72 name, record.classLoader == 0); 84 o = process.endOperation(record.tid, record.className, 85 loadedClass, record.time); 91 switch (record 115 indexProcess(Record record) argument [all...] |
/frameworks/base/cmds/incident_helper/src/parsers/ |
H A D | PageTypeInfoParser.cpp | 65 record_t record = parseRecord(line, COMMA_DELIMITER); local 66 if (migrateTypeSession && record.size() == 3) { 69 if (stripPrefix(&record[0], "Node")) { 70 proto.write(PageTypeInfoProto::MigrateType::NODE, toInt(record[0])); 73 if (stripPrefix(&record[1], "zone")) { 74 proto.write(PageTypeInfoProto::MigrateType::ZONE, record[1]); 77 if (stripPrefix(&record[2], "type")) { 81 // record line: Unmovable 426 279 226 1 1 1 0 0 2 2 0 84 record_t pageCounts = parseRecord(record[2]); 95 } else if (!blockHeader.empty() && record [all...] |
H A D | KernelWakesParser.cpp | 32 record_t record; // retain each record local 49 // parse for each record, the line delimiter is \t only! 50 record = parseRecord(line, TAB_DELIMITER); 52 if (record.size() < header.size()) { 56 } else if (record.size() > header.size()) { 63 for (int i=0; i<(int)record.size(); i++) { 64 if (!table.insertField(&proto, header[i], record[i])) { 66 this->name.string(), nline, header[i].c_str(), record[i].c_str());
|
H A D | ProcrankParser.cpp | 32 record_t record; // retain each record local 58 record = parseRecord(line); 59 if (record.size() != header.size()) { 60 if (record[record.size() - 1] == "TOTAL") { // TOTAL record 70 for (int i=0; i<(int)record.size(); i++) { 71 if (!table.insertField(&proto, header[i], record[i])) { 73 this->name.string(), nline, header[i].c_str(), record[ [all...] |
/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaSessionStack.java | 101 * Add a record to the priority tracker. 103 * @param record The record to add. 105 public void addSession(MediaSessionRecord record) { argument 106 mSessions.add(record); 107 clearCache(record.getUserId()); 116 * Remove a record from the priority tracker. 118 * @param record The record to remove. 120 public void removeSession(MediaSessionRecord record) { argument 134 contains(MediaSessionRecord record) argument 145 onPlaystateChanged(MediaSessionRecord record, int oldState, int newState) argument 173 onSessionStateChange(MediaSessionRecord record) argument [all...] |
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/ |
H A D | PictureTest.kt | 25 @Test fun record() { 26 val p = Picture().record(1, 1) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
H A D | CdmaInformationRecords.java | 22 public Object record; field in class:CdmaInformationRecords 40 record = obj; 44 record = obj; 48 record = obj; 52 record = obj; 56 record = obj; 60 record = obj; 64 record = obj; 72 record = new CdmaDisplayInfoRec(id, p.readString()); 78 record [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
H A D | RemoteConference.java | 167 for (CallbackRecord<Callback> record : mCallbackRecords) { 169 final Callback callback = record.getCallback(); 170 record.getHandler().post(new Runnable() { 192 for (CallbackRecord<Callback> record : mCallbackRecords) { 194 final Callback callback = record.getCallback(); 195 record.getHandler().post(new Runnable() { 210 for (CallbackRecord<Callback> record : mCallbackRecords) { 212 final Callback callback = record.getCallback(); 213 record.getHandler().post(new Runnable() { 228 for (CallbackRecord<Callback> record [all...] |
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityEvent.java | 814 AccessibilityRecord record = records.get(i); 815 record.setSealed(sealed); 832 * @param record The record to append. 836 public void appendRecord(AccessibilityRecord record) { argument 841 mRecords.add(record); 845 * Gets the record at a given index. 848 * @return The record at the specified index. 1107 final AccessibilityRecord record = event.mRecords.get(i); 1108 final AccessibilityRecord recordClone = AccessibilityRecord.obtain(record); 1214 readAccessibilityRecordFromParcel(AccessibilityRecord record, Parcel parcel) argument 1280 writeAccessibilityRecordToParcel(AccessibilityRecord record, Parcel parcel, int flags) argument [all...] |
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/ |
H A D | SystemMediaRouteProvider.java | 281 SystemRouteRecord record = mSystemRouteRecords.get(index); 282 return new SystemRouteController(record.mRouteObj); 337 SystemRouteRecord record = new SystemRouteRecord(routeObj, id); 338 updateSystemRouteDescriptor(record); 339 mSystemRouteRecords.add(record); 379 SystemRouteRecord record = mSystemRouteRecords.get(index); 380 updateSystemRouteDescriptor(record); 391 SystemRouteRecord record = mSystemRouteRecords.get(index); 393 if (newVolume != record.mRouteDescriptor.getVolume()) { 394 record 579 updateSystemRouteDescriptor(SystemRouteRecord record) argument 597 onBuildSystemRouteDescriptor(SystemRouteRecord record, MediaRouteDescriptor.Builder builder) argument 620 updateUserRouteProperties(UserRouteRecord record) argument 765 onBuildSystemRouteDescriptor(SystemRouteRecord record, MediaRouteDescriptor.Builder builder) argument 800 isConnecting(SystemRouteRecord record) argument 818 onBuildSystemRouteDescriptor(SystemRouteRecord record, MediaRouteDescriptor.Builder builder) argument 841 updateUserRouteProperties(UserRouteRecord record) argument 861 isConnecting(SystemRouteRecord record) argument 876 onBuildSystemRouteDescriptor(SystemRouteRecord record, MediaRouteDescriptor.Builder builder) argument [all...] |
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/ |
H A D | SystemMediaRouteProvider.java | 280 SystemRouteRecord record = mSystemRouteRecords.get(index); 281 return new SystemRouteController(record.mRouteObj); 336 SystemRouteRecord record = new SystemRouteRecord(routeObj, id); 337 updateSystemRouteDescriptor(record); 338 mSystemRouteRecords.add(record); 378 SystemRouteRecord record = mSystemRouteRecords.get(index); 379 updateSystemRouteDescriptor(record); 390 SystemRouteRecord record = mSystemRouteRecords.get(index); 392 if (newVolume != record.mRouteDescriptor.getVolume()) { 393 record 578 updateSystemRouteDescriptor(SystemRouteRecord record) argument 596 onBuildSystemRouteDescriptor(SystemRouteRecord record, MediaRouteDescriptor.Builder builder) argument 619 updateUserRouteProperties(UserRouteRecord record) argument 764 onBuildSystemRouteDescriptor(SystemRouteRecord record, MediaRouteDescriptor.Builder builder) argument 799 isConnecting(SystemRouteRecord record) argument 817 onBuildSystemRouteDescriptor(SystemRouteRecord record, MediaRouteDescriptor.Builder builder) argument 840 updateUserRouteProperties(UserRouteRecord record) argument 860 isConnecting(SystemRouteRecord record) argument 875 onBuildSystemRouteDescriptor(SystemRouteRecord record, MediaRouteDescriptor.Builder builder) argument [all...] |