Esempio n. 1
0
        @Override
        public void afterTextChanged(Editable s) {
          synchronized (mLockObect) {
            mGrepText = s.toString();

            try {
              if (mLoggerService != null) {
                mLoggerService.setGrepText(mGrepText);
              }
            } catch (RemoteException e) {
              e.printStackTrace();
            }
          }
        }
Esempio n. 2
0
        @Override
        public void onServiceConnected(ComponentName name, IBinder service) {
          mLoggerService = ILoggerService.Stub.asInterface(service);
          try {
            mLoggerService.setOppacity(mOppacity);
            mLoggerService.setVerticalLogLinesWeight(mVerticalLogLinesWeight);
            mLoggerService.setVerticalLogLinesOffset(mVerticalLogLinesOffset);
            mLoggerService.setHorizontalLogLinesWeight(mHorizontalLogLinesWeight);
            mLoggerService.setHorizontalLogLinesOffset(mHorizontalLogLinesOffset);
            mLoggerService.setFontsize(mFontSize);
            mLoggerService.setFontColor(mFontColor);
            mLoggerService.enableGrep(mGrepEnable);
            mLoggerService.setGrepText(mGrepText);
            mLoggerService.setSelectedContents(mDisplayContents);

            mLoggerService.startLogger();
          } catch (RemoteException e) {
            e.printStackTrace();
          }
        }