Пример #1
0
 @Override
 public void createConnection(
     PhoneAccountHandle connectionManagerPhoneAccount,
     String id,
     ConnectionRequest request,
     boolean isIncoming,
     boolean isUnknown) {
   SomeArgs args = SomeArgs.obtain();
   args.arg1 = connectionManagerPhoneAccount;
   args.arg2 = id;
   args.arg3 = request;
   args.argi1 = isIncoming ? 1 : 0;
   args.argi2 = isUnknown ? 1 : 0;
   mHandler.obtainMessage(MSG_CREATE_CONNECTION, args).sendToTarget();
 }
 public void onRectangleOnScreenRequestedLocked(Rect rectangle, boolean immediate) {
   if (DEBUG_RECTANGLE_REQUESTED) {
     Slog.i(LOG_TAG, "Rectangle on screen requested: " + rectangle);
   }
   if (!mMagnifedViewport.isMagnifyingLocked()) {
     return;
   }
   Rect magnifiedRegionBounds = mTempRect2;
   mMagnifedViewport.getMagnifiedFrameInContentCoordsLocked(magnifiedRegionBounds);
   if (magnifiedRegionBounds.contains(rectangle)) {
     return;
   }
   SomeArgs args = SomeArgs.obtain();
   args.argi1 = rectangle.left;
   args.argi2 = rectangle.top;
   args.argi3 = rectangle.right;
   args.argi4 = rectangle.bottom;
   mHandler
       .obtainMessage(MyHandler.MESSAGE_NOTIFY_RECTANGLE_ON_SCREEN_REQUESTED, args)
       .sendToTarget();
 }