/device/google/atv/TvSampleLeanbackLauncher/src/main/java/com/example/sampleleanbacklauncher/apps/ |
D | NetworkLaunchItem.java | 30 import com.example.sampleleanbacklauncher.R; 44 mNetworkStateDrawable = context.getDrawable(R.drawable.wifi_not_connected_launcher); in NetworkLaunchItem() 45 mNetworkStateLabel = context.getString(R.string.network_settings_disconnected); in NetworkLaunchItem() 48 mNetworkStateLabel = context.getString(R.string.network_settings_disconnected); in NetworkLaunchItem() 59 mNetworkStateDrawable = context.getDrawable(R.drawable.wifi_not_connected_launcher); in NetworkLaunchItem() 60 mNetworkStateLabel = context.getString(R.string.network_settings_disconnected); in NetworkLaunchItem() 66 return context.getDrawable(R.drawable.ethernet_active_launcher); in getEthernetDrawable() 68 return context.getDrawable(R.drawable.ethernet_no_internet_launcher); in getEthernetDrawable() 78 return context.getDrawable(R.drawable.wifi_active_4_launcher); in getWifiDrawable() 80 return context.getDrawable(R.drawable.wifi_active_3_launcher); in getWifiDrawable() [all …]
|
D | AppFragment.java | 51 import com.example.sampleleanbacklauncher.R; 120 final View root = inflater.inflate(R.layout.app_launch_row, container, false); in onCreateView() 124 final TextView rowTitle = (TextView) root.findViewById(R.id.row_title); in onCreateView() 126 final RecyclerView list = (RecyclerView) root.findViewById(android.R.id.list); in onCreateView() 149 return R.id.apps_row; in getRootViewId() 151 return R.id.games_row; in getRootViewId() 153 return R.id.settings_row; in getRootViewId() 161 return getText(R.string.apps_row_title); in getRowTitle() 163 return getText(R.string.games_row_title); in getRowTitle() 165 return getText(R.string.settings_row_title); in getRowTitle() [all …]
|
/device/google/contexthub/firmware/os/algos/common/math/ |
D | quat.c | 21 void initQuat(Quat *q, const struct Mat33 *R) { in initQuat() argument 22 float Hx = R->elem[0][0]; in initQuat() 23 float My = R->elem[1][1]; in initQuat() 24 float Az = R->elem[2][2]; in initQuat() 30 q->x = copysignf(q->x, R->elem[1][2] - R->elem[2][1]); in initQuat() 31 q->y = copysignf(q->y, R->elem[2][0] - R->elem[0][2]); in initQuat() 32 q->z = copysignf(q->z, R->elem[0][1] - R->elem[1][0]); in initQuat() 35 void quatToMatrix(struct Mat33 *R, const Quat *q) { in quatToMatrix() argument 50 R->elem[0][0] = 1.0f - sq_q2 - sq_q3; in quatToMatrix() 51 R->elem[1][0] = q1_q2 - q3_q0; in quatToMatrix() [all …]
|
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/settings/ |
D | ConnectedDevicesSliceProvider.java | 86 import com.google.android.tv.btservices.R; 259 .setTitle(getString(R.string.connected_devices_slice_pref_title)) in createGeneralSlice() 284 .setTitle(getString(R.string.settings_pair_remote)) in createGeneralSlice() 287 R.drawable.ic_baseline_add_24dp)) in createGeneralSlice() 356 .setTitle(getContext().getString(R.string.settings_known_devices_category)) in updateConnectedDevicesSlice() 367 .setTitle(getContext().getString(R.string.settings_official_remote_category)) in updateConnectedDevicesSlice() 388 .setTitle(getString(R.string.settings_devices_control)); in updateDeviceControlSlice() 399 .setTitle(getString(R.string.settings_axel)) in updateAxelSlice() 400 .setSubtitle(getString(R.string.settings_axel_description)) in updateAxelSlice() 406 String customUri = getString(R.string.custom_bluetooth_slice_provider_uri); in updateCustomSlice() [all …]
|
D | BluetoothDevicePreferenceFragment.java | 40 import com.google.android.tv.btservices.R; 65 static final int YES = R.string.settings_choices_yes; 66 static final int NO = R.string.settings_choices_no; 67 static final int CONTINUE = R.string.settings_continue; 68 static final int CANCEL = R.string.settings_cancel; 134 R.string.settings_bt_update, in updateRemoteUpdate() 135 R.string.settings_bt_update_summary, in updateRemoteUpdate() 148 pref.setTitle(R.string.settings_bt_update); in updateRemoteUpdate() 150 pref.setSummary(R.string.settings_bt_battery_low); in updateRemoteUpdate() 153 pref.setSummary(R.string.settings_bt_update_software_available); in updateRemoteUpdate() [all …]
|
D | RemoteDfuActivity.java | 37 import com.google.android.tv.btservices.R; 84 private static final int NO_UPGRADE_ERR = R.string.settings_bt_update_not_necessary; 85 private static final int UPDATE_ERR = R.string.settings_bt_update_error; 86 private static final int BEFORE_UPDATE_FINISHED_ERR = R.string.settings_bt_update_failed; 87 private static final int LOW_BATTERY_ERR = R.string.settings_bt_battery_low; 131 mTitleView.setText(R.string.settings_bt_update_needs_repair); in onDoneNeedsPairing() 158 mTitleView.setText(R.string.settings_bt_update_please_wait); in onUnknownState() 191 setContentView(R.layout.remote_dfu); in onCreate() 193 mRemoteIcon = findViewById(R.id.icon); in onCreate() 194 mTitleView = findViewById(R.id.fullscreen_title); in onCreate() [all …]
|
D | ConnectedDevicesPreferenceFragment.java | 44 import com.google.android.tv.btservices.R; 141 category.setLayoutResource(R.layout.preference_category_compact_layout); in findOrCreateCategory() 178 pref.setSummary(R.string.settings_bt_update_available); in updateBtDevicePreference() 182 pref.setSummary(R.string.settings_bt_battery_low_warning); in updateBtDevicePreference() 184 pref.setSummary(context.getString(R.string.settings_remote_battery_level, in updateBtDevicePreference() 198 pref.setLayoutResource(R.layout.preference_item_layout); in createConnectedBtPreference() 298 R.string.settings_devices_paired, true); in updatePairedDevices() 312 KEY_CONNECTED_DEVICES, R.string.settings_devices_connected, false); in updateConnectedDevices() 324 return Configuration.get(context).isEnabled(R.bool.cec_settings_enabled); in isCecSettingsEnabled() 328 return Configuration.get(context).isEnabled(R.bool.axel_settings_enabled); in isAxelSettingsEnabled() [all …]
|
D | BluetoothDeviceInfoPreference.java | 26 import com.google.android.tv.btservices.R; 45 setLayoutResource(R.layout.bluetooth_info_preference); in BluetoothDeviceInfoPreference() 57 View serialNumberContainer = holder.itemView.findViewById(R.id.serial_number_container); in onBindViewHolder() 58 TextView serialNumberView = holder.itemView.findViewById(R.id.serial_number_text); in onBindViewHolder() 66 mBatteryView = holder.itemView.findViewById(R.id.battery_level_text); in onBindViewHolder() 67 mBatteryContainer = holder.itemView.findViewById(R.id.battery_container); in onBindViewHolder() 68 mFirmwareView = holder.itemView.findViewById(R.id.firmware_text); in onBindViewHolder() 69 mFirmwareContainer = holder.itemView.findViewById(R.id.firmware_container); in onBindViewHolder() 90 getContext().getString(R.string.settings_bt_battery_low); in update()
|
D | CecPreferenceFragment.java | 26 import com.google.android.tv.btservices.R; 44 mPrefGroup.setTitle(R.string.settings_hdmi_cec); in onCreatePreferences() 48 cecTogglePref.setTitle(R.string.settings_enable_hdmi_cec); in onCreatePreferences() 58 explain1Pref.setTitle(R.string.settings_cec_explain); in onCreatePreferences() 60 explain1Pref.setLayoutResource(R.layout.pref_wall_of_text); in onCreatePreferences() 64 explain2Pref.setTitle(R.string.settings_cec_feature_names); in onCreatePreferences() 66 explain2Pref.setLayoutResource(R.layout.pref_wall_of_text); in onCreatePreferences()
|
/device/generic/goldfish/wifi/mac80211_create_radios/ |
D | main.cpp | 27 #define RETURN(R) return (R); argument 28 #define RETURN_ERROR(C, R) \ argument 31 return (R); \ 33 #define RETURN_NL_ERROR(C, NLR, R) \ argument 36 return (R); \ 131 #define PUT_FLAG(MSG, TYPE, R) \ argument 133 (R) = nla_put_flag((MSG).get(), TYPE); \ 134 if (R) RETURN_NL_ERROR("nla_put_flag(" #TYPE ")", R, nullptr); \ 137 #define PUT_DATA(MSG, TYPE, V, SIZE, R) \ argument 139 (R) = nla_put((MSG).get(), TYPE, SIZE, V); \ [all …]
|
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/pairing/ |
D | BluetoothScannerFragment.java | 50 import com.google.android.tv.btservices.R; 100 mPrefGroup.setTitle(R.string.settings_bt_pair_title); in onCreatePreferences() 105 pairRemotePref.setLayoutResource(R.layout.preference_description_layout); in onCreatePreferences() 117 mAvailableCategory.setTitle(R.string.settings_bt_available_devices); in onCreatePreferences() 119 R.layout.preference_category_compact_progress_layout); in onCreatePreferences() 130 androidx.leanback.preference.R.dimen.lb_preference_item_secondary_text_size)); in getPairingDescription() 134 String deviceName = context.getString(R.string.pair_device_device_name); in getPairingDescription() 136 R.string.pair_device_description, in getPairingDescription() 145 R.drawable.ic_rcbtn_icon_one); in getPairingDescription() 159 R.drawable.ic_rcbtn_icon_two); in getPairingDescription() [all …]
|
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/ |
D | NotificationCenter.java | 117 CharSequence dfuName = mContext.getString(R.string.settings_notif_update_channel_name); in createNotificationChannel() 118 String dfuDescr = mContext.getString(R.string.settings_notif_update_channel_description); in createNotificationChannel() 122 CharSequence name = mContext.getString(R.string.settings_notif_battery_channel_name); in createNotificationChannel() 123 String descr = mContext.getString(R.string.settings_notif_battery_channel_description); in createNotificationChannel() 197 mContext.getString(R.string.settings_notif_update_action), in sendDfuNotificationImpl() 201 mContext.getString(R.string.settings_notif_update_dismiss), null) in sendDfuNotificationImpl() 205 Icon icon = Icon.createWithResource(mContext, R.drawable.ic_official_remote); in sendDfuNotificationImpl() 208 .setContentTitle(mContext.getString(R.string.settings_notif_update_title)) in sendDfuNotificationImpl() 209 .setContentText(mContext.getString(R.string.settings_notif_update_text)) in sendDfuNotificationImpl() 279 Icon icon = Icon.createWithResource(mContext, R.drawable.ic_official_remote); in postLowBatteryNotification() [all …]
|
D | BluetoothUtils.java | 70 context.getResources().getStringArray(R.array.known_bluetooth_device_labels))); in setRemoteLabels() 76 R.array.known_remote_labels))); in setRemoteLabels() 80 context.getResources().getStringArray(R.array.official_bt_device_labels))); in setRemoteLabels() 83 context.getResources().getStringArray(R.array.bt_device_service_updatable_labels))); in setRemoteLabels() 172 R.array.official_bt_device_manufacturer_names); in isOfficialDevice() 178 R.array.official_bt_device_model_names); in isOfficialDevice() 244 return R.drawable.ic_official_remote; in getIcon() 246 return R.drawable.ic_games; in getIcon() 248 return R.drawable.ic_headset; in getIcon() 250 return R.drawable.ic_mouse; in getIcon() [all …]
|
/device/google/atv/TvSampleLeanbackLauncher/src/main/java/com/example/sampleleanbacklauncher/notifications/ |
D | NotificationPanelItemView.java | 35 import com.example.sampleleanbacklauncher.R; 78 R.dimen.notification_progress_stroke_width); in initializeLayoutValues() 79 mProgressColor = res.getColor(R.color.notification_progress_stroke_color, null); in initializeLayoutValues() 80 mProgressMaxColor = res.getColor(R.color.notification_progress_stroke_max_color, null); in initializeLayoutValues() 81 mProgressDiameter = res.getDimensionPixelSize(R.dimen.notification_progress_circle_size); in initializeLayoutValues() 83 R.dimen.notification_progress_circle_padding_top); in initializeLayoutValues() 85 R.dimen.notification_progress_circle_padding_start); in initializeLayoutValues() 115 mIcon = findViewById(R.id.notification_icon); in onFinishInflate() 116 mTitle = findViewById(R.id.notification_title); in onFinishInflate() 117 mText = findViewById(R.id.notification_text); in onFinishInflate() [all …]
|
D | NotificationPanelDismissibleItemView.java | 29 import com.example.sampleleanbacklauncher.R; 57 R.dimen.notification_panel_item_show_button_translate_x); in initializeTranslationValues() 59 R.dimen.notification_panel_item_dismiss_translate_x); in initializeTranslationValues() 77 mDismissButton = findViewById(R.id.dismiss_button); in onFinishInflate() 78 mDismissText = findViewById(R.id.dismiss_text); in onFinishInflate() 81 mMainContentText.setBackgroundResource(R.drawable.notification_background_left); in onFinishInflate() 82 mDismissButton.setBackgroundResource(R.drawable.notification_background_right); in onFinishInflate() 84 mMainContentText.setBackgroundResource(R.drawable.notification_background_right); in onFinishInflate() 85 mDismissButton.setBackgroundResource(R.drawable.notification_background_left); in onFinishInflate() 107 setBackgroundColor(getContext().getColor(R.color.notification_selection_color)); in onFinishInflate()
|
/device/google/cuttlefish/host/commands/run_cvd/launch/ |
D | auto_cmd.h | 39 template <auto Fn, typename R, typename... Args> 48 if constexpr (std::is_same_v<R, Result<std::vector<MonitorCommand>>>) { in ResultSetup() 50 } else if constexpr (std::is_same_v<R, std::vector<MonitorCommand>>) { in ResultSetup() 52 } else if constexpr (std::is_same_v<R, Result<MonitorCommand>>) { in ResultSetup() 54 } else if constexpr (std::is_same_v<R, MonitorCommand>) { in ResultSetup() 57 R, Result<std::optional<MonitorCommand>>>) { in ResultSetup() 62 } else if constexpr (std::is_same_v<R, std::optional<MonitorCommand>>) { in ResultSetup() 68 static_assert(CommandAlwaysFalse<R>, "Unexpected AutoCmd return type"); in ResultSetup() 98 template <auto Fn, typename R, typename... Args> 99 struct GenericCommandImpl<Fn, R (*)(Args...)> { [all …]
|
/device/sample/apps/tv/SetupCustomizationSample/app/src/main/java/com/google/android/tv/setup/customizationsample/ |
D | BaseActivity.java | 30 setContentView(R.layout.activity_base_layout); in onCreate() 35 iv0 = findViewById(R.id.image0); in onCreate() 36 tv0 = findViewById(R.id.tv0); in onCreate() 37 tv1 = findViewById(R.id.tv1); in onCreate() 38 tv2 = findViewById(R.id.tv2); in onCreate() 138 LinearLayout llLeft = findViewById(R.id.ll_keyHandler1); in populateKeyHandlerViews() 140 LinearLayout llRight = findViewById(R.id.ll_keyHandler2); in populateKeyHandlerViews() 151 … TextView tvKey = (TextView) getLayoutInflater().inflate(R.layout.key_item, llLeft, false); in populateKeyHandlerViews() 156 … TextView tvVal = (TextView) getLayoutInflater().inflate(R.layout.key_item, llRight, false); in populateKeyHandlerViews() 163 LinearLayout llLeft = findViewById(R.id.ll_incomingExtra1); in populateIncomingExtrasView() [all …]
|
/device/sample/apps/tv/SetupValidation/app/src/main/java/com/google/android/tv/setup/customizationsample/ |
D | BaseActivity.java | 30 setContentView(R.layout.activity_base_layout); in onCreate() 35 iv0 = findViewById(R.id.image0); in onCreate() 36 tv0 = findViewById(R.id.tv0); in onCreate() 37 tv1 = findViewById(R.id.tv1); in onCreate() 38 tv2 = findViewById(R.id.tv2); in onCreate() 138 LinearLayout llLeft = findViewById(R.id.ll_keyHandler1); in populateKeyHandlerViews() 140 LinearLayout llRight = findViewById(R.id.ll_keyHandler2); in populateKeyHandlerViews() 151 … TextView tvKey = (TextView) getLayoutInflater().inflate(R.layout.key_item, llLeft, false); in populateKeyHandlerViews() 156 … TextView tvVal = (TextView) getLayoutInflater().inflate(R.layout.key_item, llRight, false); in populateKeyHandlerViews() 163 LinearLayout llLeft = findViewById(R.id.ll_incomingExtra1); in populateIncomingExtrasView() [all …]
|
/device/google/atv/TvSampleLeanbackLauncher/src/main/java/com/example/sampleleanbacklauncher/search/ |
D | SearchFragment.java | 35 import com.example.sampleleanbacklauncher.R; 61 final View root = inflater.inflate(R.layout.search, container, false); in onCreateView() 70 mSearchOrbVoice = root.findViewById(R.id.search_orb_voice); in onCreateView() 76 mSearchOrbKeyboard = root.findViewById(R.id.search_orb_keyboard); in onCreateView() 104 Toast.makeText(getContext(), getString(R.string.app_unavailable), in onClick() 122 root.findViewById(R.id.search_text_keyboard).setVisibility(visibility); in onFocusChange() 124 root.findViewById(R.id.search_text_voice).setVisibility(visibility); in onFocusChange() 129 ? R.dimen.search_item_focused_z : R.dimen.search_item_unfocused_z); in onFocusChange() 131 ? resources.getFraction(R.fraction.search_item_focused_zoom, 1, 1) : 1.0f; in onFocusChange() 132 int duration = resources.getInteger(R.integer.search_orb_scale_duration_ms); in onFocusChange()
|
/device/generic/goldfish/camera/ |
D | FakeRotatingCamera.cpp | 99 constexpr uint16_t R = toR5G6B5( 1, .1, .1); in loadTestPatternTextureA() local 102 B, R, R, R, R, R, B, B, in loadTestPatternTextureA() 103 R, B, B, B, B, B, R, B, in loadTestPatternTextureA() 104 B, B, B, B, B, B, R, B, in loadTestPatternTextureA() 105 B, R, R, R, R, R, B, B, in loadTestPatternTextureA() 106 R, B, B, B, B, B, R, B, in loadTestPatternTextureA() 107 R, B, B, B, B, B, R, B, in loadTestPatternTextureA() 108 R, B, B, B, B, B, R, B, in loadTestPatternTextureA() 109 B, R, R, R, R, R, B, R, in loadTestPatternTextureA() 358 const char kVertexShaderStr[] = R"CODE( in initOpenGL() [all …]
|
/device/sample/apps/tv/LeanbackCustomizer/src/com/google/android/leanbacklauncher/partnercustomizer/ |
D | PartnerReceiver.java | 91 resId = R.drawable.ic_ted_banner; in postNotification() 92 backupResId = R.drawable.ic_try_ted_banner; in postNotification() 93 titleId = R.string.ted; in postNotification() 94 backupTitleId = R.string.try_ted; in postNotification() 98 resId = R.drawable.ic_play_movies_banner; in postNotification() 99 backupResId = R.drawable.ic_try_play_movies_banner; in postNotification() 100 titleId = R.string.play_movies; in postNotification() 101 backupTitleId = R.string.try_play_movies; in postNotification() 126 .setSmallIcon(R.drawable.ic_launcher) in postNotification() 132 .setColor(mContext.getResources().getColor(R.color.partner_color)) in postNotification()
|
/device/google/atv/TvSampleLeanbackLauncher/src/main/java/com/example/sampleleanbacklauncher/ |
D | LauncherActivity.java | 34 setContentView(R.layout.launcher); in onCreate() 39 .add(R.id.launcher_container, in onCreate() 42 .add(R.id.launcher_container, in onCreate() 45 .add(R.id.launcher_container, in onCreate() 48 .add(R.id.launcher_container, in onCreate() 59 findViewById(R.id.launcher_container).animate().alpha(1f); in onResume() 70 findViewById(R.id.launcher_container).animate().alpha(0f); in onPause()
|
/device/google/contexthub/firmware/os/algos/ |
D | fusion.c | 213 struct Mat33 R; in fusion_init_complete() local 214 initMatrixColumns(&R, &east, &north, &up); in fusion_init_complete() 219 initQuat(&fusion->x0, &R); in fusion_init_complete() 441 struct Mat33 R; in fusionUpdate() local 442 initDiagonalMatrix(&R, sigma * sigma); in fusionUpdate() 447 mat33Add(&S, &R); in fusionUpdate() 540 struct Mat33 R; in fusionHandleAcc() local 541 fusionGetRotationMatrix(fusion, &R); in fusionHandleAcc() 548 mat33Apply(&m, &R, &fusion->Bm); in fusionHandleAcc() 565 mat33Apply(&aa, &R, &fusion->Ba); in fusionHandleAcc() [all …]
|
/device/google/redfin/ |
D | device-redfin.mk | 88 …$(LOCAL_PATH)/audio/cs35l41/R-cs35l41-dsp1-spk-cali.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/R-cs35l… 91 …$(LOCAL_PATH)/audio/cs35l41/R-cs35l41-dsp1-spk-prot.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/R-cs35l… 97 …$(LOCAL_PATH)/audio/cs35l41/B0/R-cs35l41-revB0-dsp1-spk-cali.bin:$(TARGET_COPY_OUT_VENDOR)/firmwar… 100 …$(LOCAL_PATH)/audio/cs35l41/B0/R-cs35l41-revB0-dsp1-spk-prot.bin:$(TARGET_COPY_OUT_VENDOR)/firmwar… 106 …$(LOCAL_PATH)/audio/cs35l41/B2/R-cs35l41-revB2-dsp1-spk-cali.bin:$(TARGET_COPY_OUT_VENDOR)/firmwar… 109 …$(LOCAL_PATH)/audio/cs35l41/B2/R-cs35l41-revB2-dsp1-spk-prot.bin:$(TARGET_COPY_OUT_VENDOR)/firmwar…
|
/device/google/cuttlefish/host/commands/run_cvd/ |
D | reporting.h | 35 template <auto Fn, typename R, typename... Args> 42 if constexpr (std::is_same_v<R, std::vector<std::string>>) { in Diagnostics() 44 } else if constexpr (std::is_same_v<R, std::string>) { in Diagnostics() 58 template <auto Fn, typename R, typename... Args> 59 struct DiagnosticInformationFnImpl<Fn, R (*)(Args...)> { 60 using Type = DiagnosticInformationFn<Fn, R, Args...>;
|