1/* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17import {DragDropModule} from '@angular/cdk/drag-drop'; 18import {ScrollingModule} from '@angular/cdk/scrolling'; 19import {CommonModule} from '@angular/common'; 20import {HttpClientModule} from '@angular/common/http'; 21import {CUSTOM_ELEMENTS_SCHEMA, NgModule} from '@angular/core'; 22import {FormsModule, ReactiveFormsModule} from '@angular/forms'; 23import {MatButtonModule} from '@angular/material/button'; 24import {MatCardModule} from '@angular/material/card'; 25import {MatCheckboxModule} from '@angular/material/checkbox'; 26import {MatDividerModule} from '@angular/material/divider'; 27import {MatFormFieldModule} from '@angular/material/form-field'; 28import {MatGridListModule} from '@angular/material/grid-list'; 29import {MatIconModule} from '@angular/material/icon'; 30import {MatInputModule} from '@angular/material/input'; 31import {MatListModule} from '@angular/material/list'; 32import {MatProgressBarModule} from '@angular/material/progress-bar'; 33import {MatProgressSpinnerModule} from '@angular/material/progress-spinner'; 34import {MatRadioModule} from '@angular/material/radio'; 35import {MatSelectModule} from '@angular/material/select'; 36import {MatSliderModule} from '@angular/material/slider'; 37import {MatSnackBarModule} from '@angular/material/snack-bar'; 38import {MatTabsModule} from '@angular/material/tabs'; 39import {MatToolbarModule} from '@angular/material/toolbar'; 40import {MatTooltipModule} from '@angular/material/tooltip'; 41import {BrowserModule} from '@angular/platform-browser'; 42import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; 43import {CoordinatesTableComponent} from 'viewers/components/coordinates_table_component'; 44import {HierarchyComponent} from 'viewers/components/hierarchy_component'; 45import {ImeAdditionalPropertiesComponent} from 'viewers/components/ime_additional_properties_component'; 46import {PropertiesComponent} from 'viewers/components/properties_component'; 47import {PropertiesTableComponent} from 'viewers/components/properties_table_component'; 48import {PropertyGroupsComponent} from 'viewers/components/property_groups_component'; 49import {RectsComponent} from 'viewers/components/rects/rects_component'; 50import {TransformMatrixComponent} from 'viewers/components/transform_matrix_component'; 51import {TreeComponent} from 'viewers/components/tree_component'; 52import {TreeNodeComponent} from 'viewers/components/tree_node_component'; 53import {TreeNodeDataViewComponent} from 'viewers/components/tree_node_data_view_component'; 54import {TreeNodePropertiesDataViewComponent} from 'viewers/components/tree_node_properties_data_view_component'; 55import {ViewerInputMethodComponent} from 'viewers/components/viewer_input_method_component'; 56import {ViewerProtologComponent} from 'viewers/viewer_protolog/viewer_protolog_component'; 57import {ViewerScreenRecordingComponent} from 'viewers/viewer_screen_recording/viewer_screen_recording_component'; 58import {ViewerSurfaceFlingerComponent} from 'viewers/viewer_surface_flinger/viewer_surface_flinger_component'; 59import {ViewerTransactionsComponent} from 'viewers/viewer_transactions/viewer_transactions_component'; 60import {ViewerTransitionsComponent} from 'viewers/viewer_transitions/viewer_transitions_component'; 61import {ViewerViewCaptureComponent} from 'viewers/viewer_view_capture/viewer_view_capture_component'; 62import {ViewerWindowManagerComponent} from 'viewers/viewer_window_manager/viewer_window_manager_component'; 63import {AdbProxyComponent} from './components/adb_proxy_component'; 64import {AppComponent} from './components/app_component'; 65import { 66 MatDrawer, 67 MatDrawerContainer, 68 MatDrawerContent, 69} from './components/bottomnav/bottom_drawer_component'; 70import {CollectTracesComponent} from './components/collect_traces_component'; 71import {LoadProgressComponent} from './components/load_progress_component'; 72import {SnackBarComponent} from './components/snack_bar_component'; 73import {ExpandedTimelineComponent} from './components/timeline/expanded_timeline_component'; 74import {MiniTimelineComponent} from './components/timeline/mini_timeline_component'; 75import {SingleTimelineComponent} from './components/timeline/single_timeline_component'; 76import {TimelineComponent} from './components/timeline/timeline_component'; 77import {TraceConfigComponent} from './components/trace_config_component'; 78import {TraceViewComponent} from './components/trace_view_component'; 79import {UploadTracesComponent} from './components/upload_traces_component'; 80import {WebAdbComponent} from './components/web_adb_component'; 81 82@NgModule({ 83 declarations: [ 84 AppComponent, 85 ViewerWindowManagerComponent, 86 ViewerSurfaceFlingerComponent, 87 ViewerInputMethodComponent, 88 ViewerProtologComponent, 89 ViewerTransactionsComponent, 90 ViewerScreenRecordingComponent, 91 ViewerTransitionsComponent, 92 ViewerViewCaptureComponent, 93 CollectTracesComponent, 94 UploadTracesComponent, 95 AdbProxyComponent, 96 WebAdbComponent, 97 TraceConfigComponent, 98 HierarchyComponent, 99 PropertiesComponent, 100 RectsComponent, 101 TraceViewComponent, 102 TreeComponent, 103 TreeNodeComponent, 104 TreeNodeDataViewComponent, 105 TreeNodePropertiesDataViewComponent, 106 PropertyGroupsComponent, 107 TransformMatrixComponent, 108 PropertiesTableComponent, 109 ImeAdditionalPropertiesComponent, 110 CoordinatesTableComponent, 111 TimelineComponent, 112 MiniTimelineComponent, 113 ExpandedTimelineComponent, 114 SingleTimelineComponent, 115 SnackBarComponent, 116 MatDrawer, 117 MatDrawerContent, 118 MatDrawerContainer, 119 LoadProgressComponent, 120 ], 121 imports: [ 122 BrowserModule, 123 HttpClientModule, 124 CommonModule, 125 MatCardModule, 126 MatButtonModule, 127 MatGridListModule, 128 FormsModule, 129 MatListModule, 130 MatCheckboxModule, 131 MatDividerModule, 132 MatIconModule, 133 MatProgressSpinnerModule, 134 MatProgressBarModule, 135 MatFormFieldModule, 136 MatInputModule, 137 MatSelectModule, 138 BrowserAnimationsModule, 139 HttpClientModule, 140 MatSliderModule, 141 MatRadioModule, 142 MatTooltipModule, 143 MatToolbarModule, 144 MatTabsModule, 145 MatSnackBarModule, 146 ScrollingModule, 147 DragDropModule, 148 ReactiveFormsModule, 149 ], 150 schemas: [CUSTOM_ELEMENTS_SCHEMA], 151 bootstrap: [AppComponent], 152}) 153export class AppModule {} 154