/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
D | DiskLruCache.java | 380 Entry entry = lruEntries.get(key); in readJournalLine() local 381 if (entry == null) { in readJournalLine() 382 entry = new Entry(key); in readJournalLine() 383 lruEntries.put(key, entry); in readJournalLine() 387 entry.readable = true; in readJournalLine() 388 entry.currentEditor = null; in readJournalLine() 389 entry.setLengths(copyOfRange(parts, 2, parts.length)); in readJournalLine() 391 entry.currentEditor = new Editor(entry); in readJournalLine() 406 Entry entry = i.next(); in processJournal() local 407 if (entry.currentEditor == null) { in processJournal() [all …]
|
/development/tools/winscope/src/trace/ |
D | trace_position.ts | 27 entry: TraceEntry<{}>, 31 if (entry.getFullTrace().hasFrameInfo()) { 32 const frames = entry.getFramesRange(); 37 : entry.getTimestamp(); 38 return new TracePosition(timestamp, frame, entry); 45 this.entry?.getFullTrace().type === other.entry?.getFullTrace().type && 46 this.entry?.getIndex() === other.entry?.getIndex() 53 readonly entry?: TraceEntry<{}>,
|
D | frame_map.ts | 127 entry: AbsoluteEntryIndex, 129 if (entry < 0 || entry >= this.lengthEntries) { 130 throw Error(`Entry index out of bounds: ${entry}`); 132 return this.entryToStartFrame[entry]; 136 entry: AbsoluteEntryIndex, 138 if (entry < 0 || entry >= this.lengthEntries) { 139 throw Error(`Entry index out of bounds: ${entry}`); 141 return this.entryToEndFrame[entry];
|
/development/tools/winscope/src/viewers/viewer_transactions/ |
D | presenter_test.ts | 135 assertDefined(outputUiData).entries.map((entry) => entry.transactionId), 149 assertDefined(outputUiData).entries.map((entry) => entry.vsyncId), 156 assertDefined(outputUiData).entries.map((entry) => entry.vsyncId), 164 new Set(assertDefined(outputUiData).entries.map((entry) => entry.pid)), 171 new Set(assertDefined(outputUiData).entries.map((entry) => entry.pid)), 176 new Set(assertDefined(outputUiData).entries.map((entry) => entry.pid)), 183 new Set(assertDefined(outputUiData).entries.map((entry) => entry.uid)), 188 new Set(assertDefined(outputUiData).entries.map((entry) => entry.uid)), 193 new Set(assertDefined(outputUiData).entries.map((entry) => entry.uid)), 200 new Set(assertDefined(outputUiData).entries.map((entry) => entry.type)), [all …]
|
D | presenter.ts | 49 private entry?: TraceEntry<PropertyTreeNode>; 113 this.entry = TraceEntryFinder.findCorrespondingEntry( 218 (entry: UiDataEntry) => entry.vsyncId.toString(), 222 (entry: UiDataEntry) => entry.pid, 226 (entry: UiDataEntry) => entry.uid, 230 (entry: UiDataEntry) => entry.type, 234 (entry: UiDataEntry) => entry.layerOrDisplayId, 238 (entry: UiDataEntry) => entry.transactionId, 242 (entry: UiDataEntry) => entry.what.split('|').map((flag) => flag.trim()), 256 filteredEntries = filteredEntries.filter((entry) => [all …]
|
D | viewer_transactions_component_test.ts | 100 const entry = assertDefined(htmlElement.querySelector('.scroll .entry')); constant 101 expect(entry.innerHTML).toContain('1ns'); 102 expect(entry.innerHTML).toContain('-111'); 103 expect(entry.innerHTML).toContain('PID_VALUE'); 104 expect(entry.innerHTML).toContain('UID_VALUE'); 105 expect(entry.innerHTML).toContain('TYPE_VALUE'); 106 expect(entry.innerHTML).toContain('ID_VALUE'); 107 expect(entry.innerHTML).toContain('flag1 | flag2'); 123 component.uiData.entries = allEntries.filter((entry) => 124 (event as CustomEvent).detail.includes(entry.transactionId), [all …]
|
/development/tools/winscope/src/parsers/protolog/legacy/ |
D | parser_protolog.ts | 104 entry: com.android.internal.protolog.IProtoLogMessage, 107 BigInt(assertDefined(entry.elapsedRealtimeNanos).toString()), 113 entry: com.android.internal.protolog.IProtoLogMessage, 115 let messageHash = assertDefined(entry.messageHash).toString(); 120 messageHash = assertDefined(entry.messageHashLegacy).toString(); 129 const logMessage = this.makeLogMessage(entry, message, tag); 138 entry: com.android.internal.protolog.IProtoLogMessage, 143 return this.makeLogMessageWithoutFormat(entry); 146 return this.makeLogMessageWithFormat(entry, message, tag); 149 return this.makeLogMessageWithoutFormat(entry); [all …]
|
/development/tools/winscope/src/parsers/surface_flinger/legacy/ |
D | parser_surface_flinger_test.ts | 64 const entry = await parser.getEntry(1); constant 65 expect(entry.id).toEqual('LayerTraceEntry root'); 66 expect(entry.name).toEqual('root'); 70 const entry = await parser.getEntry(0); constant 73 entry.findDfs(UiTreeUtils.makeIdMatchFilter('27 Leaf:24:25#27')), 88 entry.findDfs(UiTreeUtils.makeIdMatchFilter('48 Task=4#48')), 103 entry.findDfs( 124 const values = entries.map((entry) => entry.getValue()); 143 const entry = await parser.getEntry(0); constant 144 expect(entry).toBeTruthy(); [all …]
|
/development/tools/winscope/src/parsers/surface_flinger/perfetto/ |
D | parser_surface_flinger_test.ts | 64 const entry = await parser.getEntry(1); constant 65 expect(entry.id).toEqual('LayerTraceEntry root'); 66 expect(entry.name).toEqual('root'); 70 const entry = await parser.getEntry(0); constant 73 entry.findDfs(UiTreeUtils.makeIdMatchFilter('27 Leaf:24:25#27')), 88 entry.findDfs(UiTreeUtils.makeIdMatchFilter('48 Task=4#48')), 103 entry.findDfs( 124 const values = entries.map((entry) => entry.getValue()); 146 const entry = await parser.getEntry(0); constant 147 expect(entry).toBeTruthy(); [all …]
|
/development/tools/winscope/src/parsers/transitions/legacy/ |
D | parser_transitions_shell.ts | 74 entry: com.android.wm.shell.ITransition, 77 return entry.dispatchTimeNs 79 BigInt(entry.dispatchTimeNs.toString()), 89 entry: com.android.wm.shell.ITransition, 91 if (entry.id === 0) { 95 !entry.dispatchTimeNs && 96 !entry.mergeRequestTimeNs && 97 !entry.mergeTimeNs && 98 !entry.abortTimeNs 116 entry: entryProto,
|
D | parser_transitions_wm.ts | 71 entry: com.android.server.wm.shell.ITransition, 78 entry: com.android.server.wm.shell.ITransition, 80 if (entry.id === 0) { 84 !entry.createTimeNs && 85 !entry.sendTimeNs && 86 !entry.abortTimeNs && 87 !entry.finishTimeNs 103 entry: entryProto,
|
/development/tools/winscope/src/app/components/timeline/expanded-timeline/ |
D | transition_timeline_component.ts | 90 (this.trace as Trace<PropertyTreeNode>).mapEntry((entry) => { 91 const transition = this.traceEntries?.at(entry.getIndex()); 103 const rowToUse = this.getRowToUseFor(entry); 119 const transitions = assertDefined(this.trace).mapEntry((entry) => { 120 const transition = this.traceEntries?.at(entry.getIndex()); 133 const rowToUse = this.getRowToUseFor(entry); 136 return entry; 141 return transitions.find((entry) => entry !== undefined); 176 private getXPosOf(entry: Timestamp): number { 181 (BigInt(this.getAvailableWidth()) * (entry.getValueNs() - start)) / [all …]
|
/development/tools/winscope/src/parsers/input_method/legacy/ |
D | parser_input_method_clients_test.ts | 56 const entry = await parser.getEntry(1); constant 57 expect(entry).toBeInstanceOf(HierarchyTreeNode); 58 expect(entry.id).toEqual('InputMethodClients entry'); 83 const entry = await parser.getEntry(0); constant 84 expect(entry).toBeInstanceOf(HierarchyTreeNode); 85 expect(entry.id).toEqual('InputMethodClients entry'); 89 const entry = await parser.getEntry(8); constant 90 const client = assertDefined(entry.getChildByName('client'));
|
D | parser_input_method_manager_service.ts | 79 return decoded.entry ?? []; 83 entry: android.view.inputmethod.IInputMethodManagerServiceTraceProto, 86 BigInt(assertDefined(entry.elapsedRealtimeNanos).toString()), 92 entry: android.view.inputmethod.IInputMethodManagerServiceTraceProto, 95 entry.elapsedRealtimeNanos === undefined || 96 entry.elapsedRealtimeNanos === null 101 entry,
|
D | parser_input_method_clients.ts | 78 return decoded.entry ?? []; 82 entry: android.view.inputmethod.IInputMethodClientsTraceProto, 85 BigInt(assertDefined(entry.elapsedRealtimeNanos).toString()), 91 entry: android.view.inputmethod.IInputMethodClientsTraceProto, 94 entry.elapsedRealtimeNanos === undefined || 95 entry.elapsedRealtimeNanos === null 101 entry,
|
D | parser_input_method_service.ts | 79 return decoded.entry ?? []; 83 entry: android.view.inputmethod.IInputMethodServiceTraceProto, 86 BigInt(assertDefined(entry.elapsedRealtimeNanos).toString()), 92 entry: android.view.inputmethod.IInputMethodServiceTraceProto, 95 entry.elapsedRealtimeNanos === undefined || 96 entry.elapsedRealtimeNanos === null 101 entry,
|
D | parser_input_method_manager_service_test.ts | 51 const entry = await parser.getEntry(0); constant 52 expect(entry).toBeInstanceOf(HierarchyTreeNode); 53 expect(entry.id).toEqual('InputMethodManagerService entry'); 79 const entry = await parser.getEntry(0); constant 80 expect(entry).toBeInstanceOf(HierarchyTreeNode); 81 expect(entry.id).toEqual('InputMethodManagerService entry');
|
D | parser_input_method_service_test.ts | 51 const entry = await parser.getEntry(0); constant 52 expect(entry).toBeInstanceOf(HierarchyTreeNode); 53 expect(entry.id).toEqual('InputMethodService entry'); 77 const entry = await parser.getEntry(0); constant 78 expect(entry).toBeInstanceOf(HierarchyTreeNode); 79 expect(entry.id).toEqual('InputMethodService entry');
|
/development/tools/winscope/src/parsers/legacy/ |
D | parser_common_test.ts | 72 let entry = await parser.getEntry(0); variable 74 assertDefined(entry.getEagerPropertyByName('focusedApp')).getValue(), 77 entry = await parser.getEntry(parser.getLengthEntries() - 1); 79 assertDefined(entry.getEagerPropertyByName('focusedApp')).getValue(), 103 let entry = await parser.getEntry(0); variable 105 assertDefined(entry.getEagerPropertyByName('focusedApp')).getValue(), 108 entry = await parser.getEntry(parser.getLengthEntries() - 1); 110 assertDefined(entry.getEagerPropertyByName('focusedApp')).getValue(),
|
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/ |
D | LocationDataManager.java | 77 public final void addPoint(LocationEntry entry) { in addPoint() argument 79 List<LocationEntry> points = getPoints(entry.calendar); in addPoint() 81 mDbHelper.insert(entry); in addPoint() 85 points.add(entry); in addPoint() 86 mPointsMap.put(entry.day, points); in addPoint() 88 if (!points.contains(entry)) { in addPoint() 89 mDbHelper.insert(entry); in addPoint() 90 points.add(entry); in addPoint()
|
/development/tools/winscope/src/viewers/common/ |
D | wm_ime_utils.ts | 21 getFocusedActivity(entry: HierarchyTreeNode): HierarchyTreeNode | undefined { 22 const focusedDisplay = this.getFocusedDisplay(entry); 23 const focusedWindow = this.getFocusedWindow(entry); 44 getFocusedWindow(entry: HierarchyTreeNode): HierarchyTreeNode | undefined { 45 const focusedWindowTitle = entry 49 return this.getVisibleWindows(entry).find( 55 entry: HierarchyTreeNode, 57 const focusedDisplayId: number | undefined = entry 60 return entry 68 private getVisibleWindows(entry: HierarchyTreeNode): HierarchyTreeNode[] { [all …]
|
/development/tools/winscope/src/parsers/screen_recording/ |
D | parser_screen_recording_test.ts | 57 const entry = await parser.getEntry(0); constant 58 expect(entry).toBeInstanceOf(ScreenRecordingTraceEntry); 59 expect(Number(entry.videoTimeSeconds)).toBeCloseTo(0); 62 const entry = await parser.getEntry(parser.getLengthEntries() - 1); constant 63 expect(entry).toBeInstanceOf(ScreenRecordingTraceEntry); 64 expect(Number(entry.videoTimeSeconds)).toBeCloseTo(1.371077, 0.001);
|
D | parser_screen_recording_legacy_test.ts | 66 const entry = await parser.getEntry(0); constant 67 expect(entry).toBeInstanceOf(ScreenRecordingTraceEntry); 68 expect(Number(entry.videoTimeSeconds)).toBeCloseTo(0); 71 const entry = await parser.getEntry(parser.getLengthEntries() - 1); constant 72 expect(entry).toBeInstanceOf(ScreenRecordingTraceEntry); 73 expect(Number(entry.videoTimeSeconds)).toBeCloseTo(2.37, 0.001);
|
/development/tools/external_crates/crate_health/src/ |
D | migration.rs | 39 for entry in glob( in copy_customizations() 45 let entry = entry?; in copy_customizations() localVariable 46 let filename = entry in copy_customizations() 48 .context(format!("Failed to get file name for {}", entry.display()))? in copy_customizations() 50 if entry.is_dir() { in copy_customizations() 51 copy_dir(&entry, &dest_dir_absolute.join(filename)).context(format!( in copy_customizations() 53 entry.display(), in copy_customizations() 61 copy(&entry, dest_dir_absolute.join(filename)).context(format!( in copy_customizations() 63 entry.display(), in copy_customizations()
|
/development/samples/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/ |
D | AppRestrictionSchemaFragment.java | 105 for (RestrictionEntry entry : entries) { in resolveRestrictions() 106 String key = entry.getKey(); in resolveRestrictions() 109 updateCanSayHello(entry, restrictions); in resolveRestrictions() 111 updateMessage(entry, restrictions); in resolveRestrictions() 113 updateNumber(entry, restrictions); in resolveRestrictions() 115 updateRank(entry, restrictions); in resolveRestrictions() 117 updateApprovals(entry, restrictions); in resolveRestrictions() 124 private void updateCanSayHello(RestrictionEntry entry, Bundle restrictions) { in updateCanSayHello() argument 127 canSayHello = entry.getSelectedState(); in updateCanSayHello() 137 private void updateMessage(RestrictionEntry entry, Bundle restrictions) { in updateMessage() argument [all …]
|