のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

2015-02-20から1日間の記事一覧

Quick Settings NotificationPanelView

1512 @Override 1513 protected void onConfigurationChanged(Configuration newConfig) { 1514 super.onConfigurationChanged(newConfig); 1515 mAfforanceHelper.onConfigurationChanged(); 1516 }

Quick Settings

281 @Override 282 public void onAnnouncementRequested(CharSequence announcement) { 283 announceForAccessibility(announcement); 284 } 5234 public void announceForAccessibility(CharSequence text) { 5235 if (AccessibilityManager.getInstance(m…

Quick Settings FlashLight

72 @Override 73 protected void handleUpdateState(BooleanState state, Object arg) { 74 if (state.value) { 75 mWasLastOn = SystemClock.uptimeMillis(); 76 } 77 78 if (arg instanceof Boolean) { 79 state.value = (Boolean) arg; 80 } 81 82 if (!s…

Quick Settings Airplane mode

156 protected void handleRefreshState(Object arg) { 157 handleUpdateState(mTmpState, arg); 158 final boolean changed = mTmpState.copyTo(mState); 159 if (changed) { 160 handleStateChanged(); 161 } 162 } 63 @Override 64 protected void handle…

zen mode

120 @Override 121 protected void onFinishInflate() { 122 super.onFinishInflate(); 123 124 mZenButtons = (SegmentedButtons) findViewById(R.id.zen_buttons); 125 mZenButtons.addButton(R.string.interruption_level_none, <=="なし" Global.ZEN_MOD…

zen mode

435 public void onConfigurationChanged(Configuration newConfig) { 436 updateWidth(); 437 if (mZenPanel != null) { 438 mZenPanel.updateLocale(); 439 } 440 } 244 public void updateLocale() { 245 mZenButtons.updateLocale(); 246 } 91 public vo…

tag getSimpleName

51 public abstract class QSTile<TState extends State> implements Listenable { 52 protected final String TAG = "QSTile." + getClass().getSimpleName(); 53 protected static final boolean DEBUG = Log.isLoggable("QSTile", Log.DEBUG);</tstate>

QSTileHost set up

860 // Set up the quick settings tile panel 861 mQSPanel = (QSPanel) mStatusBarWindow.findViewById(R.id.quick_settings_panel); 862 if (mQSPanel != null) { 863 final QSTileHost qsh = new QSTileHost(mContext, this, 864 mBluetoothController, …

QSTileHost

63 /** Platform implementation of the quick settings tile host **/ 64 public class QSTileHost implements QSTile.Host { 65 private static final String TAG = "QSTileHost"; 66 private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG…

QSTile::Host

QSTileHostは、QSTile.Hostインタフェースを実装している。 63 /** Platform implementation of the quick settings tile host **/ 64 public class QSTileHost implements QSTile.Host { 279 public interface Host { 280 void startSettingsActivity(Inten…