auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private com.android.ims.internal.IImsRcsFeature createRcsFeatureInternal ( int slotId , com.android.ims.internal.IImsFeatureStatusCallback c ) { android.telephony.ims.feature.RcsFeature f = onCreateRcsFeature ( slotId ) ; if ( f != null ) { setupFeature ( f , slotId , ImsFeature.RCS , c ) ; return f.getBinder ( ) ; } else { return null ; } }

Target:
private android.telephony.ims.aidl.IImsRcsFeature createRcsFeatureInternal ( int slotId , com.android.ims.internal.IImsFeatureStatusCallback c ) { android.telephony.ims.feature.RcsFeature f = createRcsFeature ( slotId ) ; if ( f != null ) { setupFeature ( f , slotId , ImsFeature.FEATURE_RCS , c ) ; return f.getBinder ( ) ; } else { android.util.Log.e ( android.telephony.ims.ImsService.LOG_TAG , "createRcsFeatureInternal: null feature returned." ) ; return null ; } }
Source:
private int getMonitorDpi ( ) { if ( ( mSettingsController ) != null ) { com.android.sdkuilib.internal.widgets.AvdStartDialog.sMonitorDpi = mSettingsController.getMonitorDensity ( ) ; } if ( ( com.android.sdkuilib.internal.widgets.AvdStartDialog.sMonitorDpi ) == ( - 1 ) ) { com.android.sdkuilib.internal.widgets.AvdStartDialog.sMonitorDpi = java.awt.Toolkit.getDefaultToolkit ( ) . getScreenResolution ( ) ; } return com.android.sdkuilib.internal.widgets.AvdStartDialog.sMonitorDpi ; }

Target:
private int getMonitorDpi ( ) { if ( ( mSettingsController ) != null ) { com.android.sdkuilib.internal.widgets.AvdStartDialog.sMonitorDpi = mSettingsController.getSettings ( ) . getMonitorDensity ( ) ; } if ( ( com.android.sdkuilib.internal.widgets.AvdStartDialog.sMonitorDpi ) == ( - 1 ) ) { com.android.sdkuilib.internal.widgets.AvdStartDialog.sMonitorDpi = java.awt.Toolkit.getDefaultToolkit ( ) . getScreenResolution ( ) ; } return com.android.sdkuilib.internal.widgets.AvdStartDialog.sMonitorDpi ; }
Source:
public static void testSendCmasPresAlert ( android.app.Activity activity , int messageId ) { android.telephony.SmsCbMessage cbMessage = com.android.cellbroadcastreceiver.tests.SendCdmaCmasMessages.createCmasSmsMessage ( SmsEnvelope.SERVICE_CATEGORY_CMAS_PRESIDENTIAL_LEVEL_ALERT , messageId , "en" , com.android.cellbroadcastreceiver.tests.SendCdmaCmasMessages.PRES_ALERT , SmsCbCmasInfo.CMAS_CATEGORY_GEO , SmsCbCmasInfo.CMAS_RESPONSE_TYPE_PREPARE , SmsCbCmasInfo.CMAS_SEVERITY_EXTREME , SmsCbCmasInfo.CMAS_URGENCY_EXPECTED , SmsCbCmasInfo.CMAS_CERTAINTY_LIKELY ) ; android.content.Intent intent = new android.content.Intent ( Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , cbMessage ) ; activity.sendOrderedBroadcastAsUser ( intent , UserHandle.ALL , Manifest.permission.RECEIVE_EMERGENCY_BROADCAST , AppOpsManager.OP_RECEIVE_EMERGECY_SMS , null , null , Activity.RESULT_OK , null , null ) ; }

Target:
private static void sendBroadcast ( android.app.Activity activity , android.telephony.SmsCbMessage cbMessage ) { android.content.Intent intent = new android.content.Intent ( Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , cbMessage ) ; intent.setPackage ( com.android.cellbroadcastreceiver.tests.SendCdmaCmasMessages.CB_RECEIVER_PKG ) ; activity.sendOrderedBroadcastAsUser ( intent , UserHandle.ALL , Manifest.permission.RECEIVE_EMERGENCY_BROADCAST , AppOpsManager.OP_RECEIVE_EMERGECY_SMS , null , null , Activity.RESULT_OK , null , null ) ; }
Source:
public com.android.ide.eclipse.adt.editors.layout.gscripts.Point getCenter ( ) { return new com.android.ide.eclipse.adt.editors.layout.gscripts.Point ( ( ( x ) + ( ( w ) > 0 ? ( w ) / 2 : 0 ) ) , ( ( y ) + ( ( h ) > 0 ? ( h ) / 2 : 0 ) ) ) ; }

Target:
public com.android.ide.common.api.Point getCenter ( ) { return new com.android.ide.common.api.Point ( ( ( x ) + ( ( w ) > 0 ? ( w ) / 2 : 0 ) ) , ( ( y ) + ( ( h ) > 0 ? ( h ) / 2 : 0 ) ) ) ; }
Source:
private void checkFormatCall ( com.android.tools.lint.detector.api.JavaContext context , lombok.ast.MethodInvocation node ) { org.w3c.dom.Node current = node.getParent ( ) ; while ( ( ( current != null ) && ( ! ( current instanceof lombok.ast.MethodDeclaration ) ) ) && ( ! ( current instanceof lombok.ast.ConstructorDeclaration ) ) ) { current = current.getParent ( ) ; } if ( current != null ) { checkStringFormatCall ( context , current , node ) ; } }

Target:
static org.w3c.dom.Node getParentMethod ( @ com.android.annotations.NonNull org.w3c.dom.Node node ) { org.w3c.dom.Node current = node.getParent ( ) ; while ( ( ( current != null ) && ( ! ( current instanceof lombok.ast.MethodDeclaration ) ) ) && ( ! ( current instanceof lombok.ast.ConstructorDeclaration ) ) ) { current = current.getParent ( ) ; } return current ; }
Source:
public com.google.common.base.Optional < com.android.manifmerger.XmlDocument > merge ( com.android.manifmerger.XmlDocument lowerPriorityDocument , com.android.manifmerger.MergingReport.Builder mergingReportBuilder ) { mergingReportBuilder.getActionRecorder ( ) . recordDefaultNodeAction ( getRootNode ( ) ) ; getRootNode ( ) . mergeWithLowerPriorityNode ( lowerPriorityDocument.getRootNode ( ) , mergingReportBuilder ) ; return com.google.common.base.Optional.of ( new com.android.manifmerger.XmlDocument ( mPositionXmlParser , mSourceLocation , mRootElement ) ) ; }

Target:
public com.android.manifmerger.XmlDocument reparse ( ) { return new com.android.manifmerger.XmlDocument ( mPositionXmlParser , mSourceLocation , mRootElement ) ; }
Source:
private static boolean isBatteryPower ( ) { if ( ( org.chromium.base.PowerMonitor.sInstance ) == null ) org.chromium.base.PowerMonitor.create ( ) ; return org.chromium.base.PowerMonitor.sInstance.mIsBatteryPower ; }

Target:
public void onApplicationStateChange ( int newState ) { if ( newState == ( ApplicationState.HAS_RUNNING_ACTIVITIES ) ) { mHandler.removeCallbacks ( org.chromium.base.PowerMonitor.sSuspendTask ) ; org.chromium.base.PowerMonitor.nativeOnMainActivityResumed ( ) ; } else if ( newState == ( ApplicationState.HAS_PAUSED_ACTIVITIES ) ) { mHandler.postDelayed ( org.chromium.base.PowerMonitor.sSuspendTask , org.chromium.base.PowerMonitor.SUSPEND_DELAY_MS ) ; } }
Source:
private synchronized void addMediaPlayerInfo ( com.android.bluetooth.avrcp.MediaPlayerInfo info ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , info.toString ( ) ) ; ( mLastUsedPlayerID ) ++ ; mMediaPlayerInfoList.put ( mLastUsedPlayerID , info ) ; }

Target:
private synchronized com.android.bluetooth.avrcp.MediaPlayerInfo removeMediaPlayerInfo ( java.lang.String packageName ) { int removeKey = - 1 ; for ( java.util.Map.Entry < java.lang.Integer , com.android.bluetooth.avrcp.MediaPlayerInfo > entry : mMediaPlayerInfoList.entrySet ( ) ) { if ( entry.getValue ( ) . getPackageName ( ) . equals ( packageName ) ) { removeKey = entry.getKey ( ) ; break ; } } if ( removeKey != ( - 1 ) ) { return mMediaPlayerInfoList.remove ( removeKey ) ; } return null ; }
Source:
public void setTarget ( @ com.android.annotations.NonNull java.lang.String target ) { mTarget = mSdkParser.resolveTarget ( target , mLogger ) ; if ( ( mTarget ) == null ) { throw new java.lang.RuntimeException ( ( "Unknown target: " + target ) ) ; } }

Target:
public void setTarget ( @ com.android.annotations.NonNull java.lang.String target ) { if ( target == null ) { throw new java.lang.RuntimeException ( "Compilation target not set!" ) ; } mTarget = mSdkParser.resolveTarget ( target , mLogger ) ; if ( ( mTarget ) == null ) { throw new java.lang.RuntimeException ( ( "Unknown target: " + target ) ) ; } }
Source:
public static void startMethodTracing ( java.lang.String traceFileName , java.io.FileDescriptor fd , int bufferSize , int flags ) { if ( ( traceFileName == null ) || ( fd == null ) ) { throw new java.lang.NullPointerException ( ) ; } dalvik.system.VMDebug.startMethodTracingNative ( traceFileName , fd , bufferSize , flags ) ; }

Target:
public static void startMethodTracing ( java.lang.String traceFileName , java.io.FileDescriptor fd , int bufferSize , int flags ) { if ( traceFileName == null ) { throw new java.lang.NullPointerException ( "traceFileName == null" ) ; } if ( fd == null ) { throw new java.lang.NullPointerException ( "fd == null" ) ; } dalvik.system.VMDebug.startMethodTracingNative ( traceFileName , fd , bufferSize , flags ) ; }
Source:
public void nulledAddedDiffedFieldValues ( ) { com.android.ahat.heapdump.FieldValue nulled = new com.android.ahat.heapdump.FieldValue ( "name" , "type" , null ) ; com.android.ahat.heapdump.DiffedFieldValue x = com.android.ahat.heapdump.DiffedFieldValue.added ( nulled ) ; org.junit.Assert.assertEquals ( "name" , x.name ) ; org.junit.Assert.assertEquals ( "type" , x.type ) ; org.junit.Assert.assertNull ( x.current ) ; org.junit.Assert.assertEquals ( DiffedFieldValue.Status.ADDED , x.status ) ; }

Target:
public void normalDeletedDiffedFieldValues ( ) { com.android.ahat.heapdump.FieldValue normal = new com.android.ahat.heapdump.FieldValue ( "name" , com.android.ahat.DiffFieldsTest.t0 , com.android.ahat.heapdump.Value.pack ( 1 ) ) ; com.android.ahat.heapdump.DiffedFieldValue x = com.android.ahat.heapdump.DiffedFieldValue.deleted ( normal ) ; org.junit.Assert.assertEquals ( "name" , x.name ) ; org.junit.Assert.assertEquals ( com.android.ahat.DiffFieldsTest.t0 , x.type ) ; org.junit.Assert.assertEquals ( com.android.ahat.heapdump.Value.pack ( 1 ) , x.baseline ) ; org.junit.Assert.assertEquals ( DiffedFieldValue.Status.DELETED , x.status ) ; }
Source:
public boolean setCurrentInputMethodSubtype ( android.view.inputmethod.InputMethodSubtype subtype ) { synchronized ( mH ) { try { return mService.setCurrentInputMethodSubtype ( subtype ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.view.inputmethod.InputMethodManager.TAG , ( "IME died: " + ( mCurId ) ) , e ) ; return false ; } } }

Target:
public void focusOut ( android.view.View view ) { synchronized ( mH ) { if ( android.view.inputmethod.InputMethodManager.DEBUG ) android.util.Log.v ( android.view.inputmethod.InputMethodManager.TAG , ( ( ( "focusOut: view=" + ( android.view.inputmethod.InputMethodManager.dumpViewInfo ( view ) ) ) + " mServedView=" ) + ( android.view.inputmethod.InputMethodManager.dumpViewInfo ( mServedView ) ) ) ) ; if ( ( mServedView ) != view ) { if ( false && ( view.hasWindowFocus ( ) ) ) { mNextServedView = null ; android.view.inputmethod.InputMethodManager.scheduleCheckFocusLocked ( view ) ; } } } }
Source:
public java.lang.String createNetworkSpecifier ( @ android.net.wifi.aware.WifiAwareManager.DataPathRole int role , @ android.annotation.Nullable byte [ ] peer , @ android.annotation.Nullable byte [ ] token ) { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "createNetworkSpecifier: called post GC on WifiAwareManager" ) ; return "" ; } if ( mTerminated ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "createNetworkSpecifier: called after termination" ) ; return "" ; } return mgr.createNetworkSpecifier ( mClientId , role , peer , token ) ; }

Target:
public java.lang.String createNetworkSpecifierOpen ( @ android.net.wifi.aware.WifiAwareManager.DataPathRole int role , @ android.annotation.Nullable byte [ ] peer ) { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "createNetworkSpecifierOpen: called post GC on WifiAwareManager" ) ; return "" ; } if ( mTerminated ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "createNetworkSpecifierOpen: called after termination" ) ; return "" ; } return mgr.createNetworkSpecifier ( mClientId , role , peer , null ) ; }
Source:
public java.lang.Object [ ] getTestObjects ( ) { java.util.Locale [ ] locales = com.ibm.icu.dev.test.serializable.SerializableTest.getLocales ( ) ; com.ibm.icu.text.DateFormat [ ] formats = new com.ibm.icu.text.DateFormat [ locales.length ] ; for ( int i = 0 ; i < ( locales.length ) ; i += 1 ) { com.ibm.icu.util.ULocale uloc = com.ibm.icu.util.ULocale.forLocale ( locales [ i ] ) ; formats [ i ] = com.ibm.icu.dev.test.serializable.FormatTests.getCannedSimpleDateFormat ( ( ( java.lang.String ) ( com.ibm.icu.dev.test.serializable.FormatTests.DateFormatHandler.cannedPatterns.get ( uloc.toString ( ) ) ) ) , uloc ) ; } return formats ; }

Target:
public java.lang.Object [ ] getTestObjects ( ) { java.util.Locale [ ] locales = com.ibm.icu.dev.test.serializable.SerializableTestUtility.getLocales ( ) ; com.ibm.icu.text.DateFormat [ ] formats = new com.ibm.icu.text.DateFormat [ locales.length ] ; for ( int i = 0 ; i < ( locales.length ) ; i += 1 ) { com.ibm.icu.util.ULocale uloc = com.ibm.icu.util.ULocale.forLocale ( locales [ i ] ) ; formats [ i ] = com.ibm.icu.dev.test.serializable.FormatHandler.getCannedSimpleDateFormat ( ( ( java.lang.String ) ( com.ibm.icu.dev.test.serializable.FormatHandler.DateFormatHandler.cannedPatterns.get ( uloc.toString ( ) ) ) ) , uloc ) ; } return formats ; }
Source:
private int getDexoptNeeded ( java.lang.String path , java.lang.String isa , java.lang.String compilerFilter , boolean newProfile ) { int dexoptNeeded ; try { dexoptNeeded = dalvik.system.DexFile.getDexOptNeeded ( path , isa , compilerFilter , newProfile ) ; } catch ( java.io.IOException ioe ) { android.util.Slog.w ( com.android.server.pm.PackageDexOptimizer.TAG , ( "IOException reading apk: " + path ) , ioe ) ; return com.android.server.pm.PackageDexOptimizer.DEX_OPT_FAILED ; } return adjustDexoptNeeded ( dexoptNeeded ) ; }

Target:
private int getDexoptNeeded ( java.lang.String path , java.lang.String isa , java.lang.String compilerFilter , boolean newProfile , boolean downgrade ) { int dexoptNeeded ; try { dexoptNeeded = dalvik.system.DexFile.getDexOptNeeded ( path , isa , compilerFilter , newProfile , downgrade ) ; } catch ( java.io.IOException ioe ) { android.util.Slog.w ( com.android.server.pm.PackageDexOptimizer.TAG , ( "IOException reading apk: " + path ) , ioe ) ; return com.android.server.pm.PackageDexOptimizer.DEX_OPT_FAILED ; } return adjustDexoptNeeded ( dexoptNeeded ) ; }
Source:
public void test_formatStyle ( java.time.temporal.Temporal temporal , java.time.format.FormatStyle style , java.lang.String formattedStr ) { java.time.format.DateTimeFormatterBuilder builder = new java.time.format.DateTimeFormatterBuilder ( ) ; java.time.format.DateTimeFormatter formatter = builder.appendLocalized ( style , style ) . appendLiteral ( " " ) . appendZoneOrOffsetId ( ) . toFormatter ( ) ; formatter = formatter.withLocale ( java.util.Locale.US ) ; org.testng.Assert.assertEquals ( formatter.format ( temporal ) , formattedStr ) ; }

Target:
public void test_formatStyle ( java.time.temporal.Temporal temporal , java.time.format.FormatStyle style , java.lang.String formattedStr ) { java.time.format.DateTimeFormatterBuilder builder = new java.time.format.DateTimeFormatterBuilder ( ) ; java.time.format.DateTimeFormatter formatter = builder.appendLocalized ( style , style ) . appendLiteral ( " " ) . appendZoneOrOffsetId ( ) . toFormatter ( ) ; formatter = formatter.withLocale ( java.util.Locale.UK ) ; org.testng.Assert.assertEquals ( formatter.format ( temporal ) , formattedStr ) ; }
Source:
final void cleanUpActivityServicesLocked ( com.android.server.am.ActivityRecord r ) { if ( ( r.connections ) != null ) { java.util.Iterator < com.android.server.am.ConnectionRecord > it = r.connections.iterator ( ) ; while ( it.hasNext ( ) ) { com.android.server.am.ConnectionRecord c = it.next ( ) ; mService.removeConnectionLocked ( c , null , r ) ; } r.connections = null ; } }

Target:
final void cleanUpActivityServicesLocked ( com.android.server.am.ActivityRecord r ) { if ( ( r.connections ) != null ) { java.util.Iterator < com.android.server.am.ConnectionRecord > it = r.connections.iterator ( ) ; while ( it.hasNext ( ) ) { com.android.server.am.ConnectionRecord c = it.next ( ) ; mService.mServices.removeConnectionLocked ( c , null , r ) ; } r.connections = null ; } }
Source:
private com.android.ide.common.blame.SourceFragmentPositionRange parseLineNumber ( java.lang.String lineNumberAsText ) throws com.android.ide.common.blame.parser.ParsingFailedException { int lineNumber = - 1 ; if ( lineNumberAsText != null ) { try { lineNumber = java.lang.Integer.parseInt ( lineNumberAsText ) ; } catch ( java.lang.NumberFormatException e ) { throw new com.android.ide.common.blame.parser.ParsingFailedException ( ) ; } } return new com.android.ide.common.blame.SourceFragmentPositionRange ( lineNumber , ( - 1 ) , ( - 1 ) ) ; }

Target:
private com.android.ide.common.blame.SourcePosition parseLineNumber ( java.lang.String lineNumberAsText ) throws com.android.ide.common.blame.parser.ParsingFailedException { int lineNumber = - 1 ; if ( lineNumberAsText != null ) { try { lineNumber = java.lang.Integer.parseInt ( lineNumberAsText ) ; } catch ( java.lang.NumberFormatException e ) { throw new com.android.ide.common.blame.parser.ParsingFailedException ( ) ; } } return new com.android.ide.common.blame.SourcePosition ( lineNumber , ( - 1 ) , ( - 1 ) ) ; }
Source:
private static void finishAnnotationValueInit ( ) { int depth = 0 ; while ( ( com.google.doclava.Converter.mAnnotationValuesNeedingInit.size ( ) ) > 0 ) { java.util.HashSet < com.google.doclava.AnnotationValue > set = com.google.doclava.Converter.mAnnotationValuesNeedingInit ; com.google.doclava.Converter.mAnnotationValuesNeedingInit = new java.util.HashSet < com.google.doclava.AnnotationValue > ( ) ; for ( com.google.doclava.AnnotationValue o : set ) { com.google.doclava.AnnotationValueInfo v = com.google.doclava.Converter.mAnnotationValues.get ( o ) ; com.google.doclava.Converter.initAnnotationValue ( o , v ) ; } depth ++ ; } com.google.doclava.Converter.mAnnotationValuesNeedingInit = null ; }

Target:
private static void finishAnnotationValueInit ( ) { int depth = 0 ; while ( ( com.google.doclava.Converter.mAnnotationValuesNeedingInit.size ( ) ) > 0 ) { java.util.HashSet < com.sun.javadoc.AnnotationValue > set = com.google.doclava.Converter.mAnnotationValuesNeedingInit ; com.google.doclava.Converter.mAnnotationValuesNeedingInit = new java.util.HashSet < com.sun.javadoc.AnnotationValue > ( ) ; for ( com.sun.javadoc.AnnotationValue o : set ) { com.google.doclava.AnnotationValueInfo v = com.google.doclava.Converter.mAnnotationValues.get ( o ) ; com.google.doclava.Converter.initAnnotationValue ( o , v ) ; } depth ++ ; } com.google.doclava.Converter.mAnnotationValuesNeedingInit = null ; }
Source:
public void getIccCardStatus ( android.os.Message result ) { if ( ( mIccCardStatus ) != null ) { resultSuccess ( result , mIccCardStatus ) ; } else { resultFail ( result , null , new java.lang.RuntimeException ( "IccCardStatus not set" ) ) ; } }

Target:
public void getIccCardStatus ( android.os.Message result ) { com.android.internal.telephony.test.SimulatedCommandsVerifier.getInstance ( ) . getIccCardStatus ( result ) ; if ( ( mIccCardStatus ) != null ) { resultSuccess ( result , mIccCardStatus ) ; } else { resultFail ( result , null , new java.lang.RuntimeException ( "IccCardStatus not set" ) ) ; } }
Source:
public boolean parse3339 ( java.lang.String s ) { if ( s == null ) { throw new java.lang.NullPointerException ( "time string is null" ) ; } if ( nativeParse3339 ( s ) ) { timezone = android.text.format.Time.TIMEZONE_UTC ; return true ; } return false ; }

Target:
private static int getChar ( java.lang.String s , int spos , int mul ) { char c = s.charAt ( spos ) ; if ( java.lang.Character.isDigit ( c ) ) { return ( java.lang.Character.getNumericValue ( c ) ) * mul ; } else { throw new android.util.TimeFormatException ( ( "Parse error at pos=" + spos ) ) ; } }
Source:
byte [ ] getIncomingSmsFingerprint ( ) { java.io.ByteArrayOutputStream output = new java.io.ByteArrayOutputStream ( ) ; output.write ( mEnvelope.teleService ) ; output.write ( mEnvelope.origAddress.origBytes , 0 , mEnvelope.origAddress.origBytes.length ) ; output.write ( mEnvelope.bearerData , 0 , mEnvelope.bearerData.length ) ; return output.toByteArray ( ) ; }

Target:
byte [ ] getIncomingSmsFingerprint ( ) { java.io.ByteArrayOutputStream output = new java.io.ByteArrayOutputStream ( ) ; output.write ( mEnvelope.teleService ) ; output.write ( mEnvelope.origAddress.origBytes , 0 , mEnvelope.origAddress.origBytes.length ) ; output.write ( mEnvelope.bearerData , 0 , mEnvelope.bearerData.length ) ; output.write ( mEnvelope.origSubaddress.origBytes , 0 , mEnvelope.origSubaddress.origBytes.length ) ; return output.toByteArray ( ) ; }
Source:
public static void computeFract ( android.renderscript.cts.TestFract.ArgumentsFloatFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 12 ; args.outFloor = ( ( float ) ( java.lang.StrictMath.floor ( args.inV ) ) ) ; args.out = ( ( float ) ( java.lang.StrictMath.min ( ( ( args.inV ) - ( args.outFloor ) ) , 0.99999994F ) ) ) ; }

Target:
public static void computeAsin ( android.renderscript.cts.TestAsin.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.asin ( args.inV ) , 4 , 128 ) ; }
Source:
public void terminateSession ( int sessionId ) { com.android.server.wifi.nan.WifiNanSessionState session = mSessions.get ( sessionId ) ; if ( session == null ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanClientState.TAG , ( "terminateSession: sessionId doesn't exist - " + sessionId ) ) ; return ; } session.terminate ( ) ; mSessions.delete ( sessionId ) ; }

Target:
public void terminateSession ( int sessionId ) { com.android.server.wifi.nan.WifiNanDiscoverySessionState session = mSessions.get ( sessionId ) ; if ( session == null ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanClientState.TAG , ( "terminateSession: sessionId doesn't exist - " + sessionId ) ) ; return ; } session.terminate ( ) ; mSessions.delete ( sessionId ) ; }
Source:
private static java.lang.Class < ? > getProxyClass ( ) throws java.lang.Exception { if ( ( art.Test910.proxyClass ) != null ) { return art.Test910.proxyClass ; } art.Test910.proxyClass = java.lang.reflect.Proxy.getProxyClass ( art.Main.class . getClassLoader ( ) , new java.lang.Class [ ] { java.lang.Runnable.class } ) ; return art.Test910.proxyClass ; }

Target:
private static java.lang.Class < ? > getProxyClass ( ) throws java.lang.Exception { if ( ( art.Test910.proxyClass ) != null ) { return art.Test910.proxyClass ; } for ( int i = 1 ; i <= 21 ; i ++ ) { art.Test910.proxyClass = art.Test910.createProxyClass ( i ) ; java.lang.String name = art.Test910.proxyClass.getName ( ) ; if ( name.equals ( "$Proxy20" ) ) { return art.Test910.proxyClass ; } } return art.Test910.proxyClass ; }
Source:
private void clear ( ) { synchronized ( mLock ) { mConnectionEventList.clear ( ) ; if ( ( mCurrentConnectionEvent ) != null ) { mConnectionEventList.add ( mCurrentConnectionEvent ) ; } mScanReturnEntries.clear ( ) ; mWifiSystemStateEntries.clear ( ) ; mRecordStartTimeSec = ( mClock.getElapsedSinceBootMillis ( ) ) / 1000 ; mRssiPollCounts.clear ( ) ; mWifiAlertReasonCounts.clear ( ) ; mWifiScoreCounts.clear ( ) ; mWifiLogProto.clear ( ) ; } }

Target:
private void clear ( ) { synchronized ( mLock ) { mConnectionEventList.clear ( ) ; if ( ( mCurrentConnectionEvent ) != null ) { mConnectionEventList.add ( mCurrentConnectionEvent ) ; } mScanReturnEntries.clear ( ) ; mWifiSystemStateEntries.clear ( ) ; mRecordStartTimeSec = ( mClock.getElapsedSinceBootMillis ( ) ) / 1000 ; mRssiPollCounts.clear ( ) ; mRssiDeltaCounts.clear ( ) ; mWifiAlertReasonCounts.clear ( ) ; mWifiScoreCounts.clear ( ) ; mWifiLogProto.clear ( ) ; mScanResultRssiTimestampMillis = - 1 ; } }
Source:
public org.bouncycastle.math.ec.ECFieldElement subtract ( org.bouncycastle.math.ec.ECFieldElement b ) { java.math.BigInteger x2 = b.toBigInteger ( ) ; java.math.BigInteger x3 = x.subtract ( x2 ) ; if ( ( x3.signum ( ) ) < 0 ) { x3 = x3.add ( q ) ; } return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , x3 ) ; }

Target:
public org.bouncycastle.math.ec.ECFieldElement squarePlusProduct ( org.bouncycastle.math.ec.ECFieldElement x , org.bouncycastle.math.ec.ECFieldElement y ) { java.math.BigInteger ax = this . x ; java.math.BigInteger xx = x.toBigInteger ( ) ; java.math.BigInteger yx = y.toBigInteger ( ) ; java.math.BigInteger aa = ax.multiply ( ax ) ; java.math.BigInteger xy = xx.multiply ( yx ) ; return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , modReduce ( aa.add ( xy ) ) ) ; }
Source:
public void testEmptyIterator ( ) { java.util.TreeSet q = new java.util.TreeSet ( ) ; int i = 0 ; java.util.Iterator it = q.iterator ( ) ; while ( it.hasNext ( ) ) { assertTrue ( q.contains ( it.next ( ) ) ) ; ++ i ; } assertEquals ( 0 , i ) ; }

Target:
public void testEmptyIterator ( ) { assertIteratorExhausted ( new java.util.TreeSet ( ) . iterator ( ) ) ; }
Source:
public int getCurrentTtyMode ( java.lang.String callingPackage ) { try { com.android.server.telecom.Log.startSession ( "TSI.gCTM" ) ; if ( ! ( canReadPhoneState ( callingPackage , "getCurrentTtyMode" ) ) ) { return android.telecom.TelecomManager.TTY_MODE_OFF ; } synchronized ( mLock ) { return mCallsManager.getCurrentTtyMode ( ) ; } } finally { com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public int getCurrentTtyMode ( java.lang.String callingPackage ) { try { android.telecom.Log.startSession ( "TSI.gCTM" ) ; if ( ! ( canReadPhoneState ( callingPackage , "getCurrentTtyMode" ) ) ) { return android.telecom.TelecomManager.TTY_MODE_OFF ; } synchronized ( mLock ) { return mCallsManager.getCurrentTtyMode ( ) ; } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
public void bouncyCastle ( ) throws java.lang.Exception { java.io.File bouncyCastleJack = com.android.jack.TestTools.createTempFile ( "bouncyjack" , ".zip" ) ; com.android.jack.TestTools.compileSourceToJack ( new com.android.jack.Options ( ) , com.android.jack.ToolchainTest.BOUNCY_SOURCELIST , com.android.jack.ToolchainTest.corePath.getAbsolutePath ( ) , bouncyCastleJack , true ) ; java.io.File bouncyCastle = com.android.jack.TestTools.createTempFile ( "bouncy" , ".dex" ) ; com.android.jack.TestTools.compileJackToDex ( new com.android.jack.Options ( ) , bouncyCastleJack , bouncyCastle , false ) ; }

Target:
public void bouncyCastle ( ) throws java.lang.Exception { java.io.File bouncyCastleJack = com.android.jack.TestTools.createTempFile ( "bouncyjack" , ".zip" ) ; com.android.jack.TestTools.compileSourceToJack ( new com.android.jack.Options ( ) , com.android.jack.ToolchainTest.BOUNCY_SOURCELIST , com.android.jack.ToolchainTest.corePath.getAbsolutePath ( ) , bouncyCastleJack , true ) ; java.io.File bouncyCastleOutFolder = com.android.jack.TestTools.createTempDir ( "bouncy" , "dex" ) ; com.android.jack.TestTools.compileJackToDex ( new com.android.jack.Options ( ) , bouncyCastleJack , bouncyCastleOutFolder , false ) ; }
Source:
private com.android.ims.ImsCall createNewCall ( com.android.ims.internal.ImsCallSession session , com.android.ims.ImsCallProfile profile ) { com.android.ims.ImsCall call = new com.android.ims.ImsCall ( mContext , profile ) ; try { call.attachSession ( session ) ; } catch ( com.android.ims.ImsException e ) { if ( call != null ) { call.close ( ) ; call = null ; } } return call ; }

Target:
private com.android.ims.ImsCall createNewCall ( android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsCallProfile profile ) { com.android.ims.ImsCall call = new com.android.ims.ImsCall ( mContext , profile ) ; try { call.attachSession ( session ) ; } catch ( com.android.ims.ImsException e ) { if ( call != null ) { call.close ( ) ; call = null ; } } return call ; }
Source:
private void logNudFailed ( android.net.LinkProperties.ProvisioningChange delta ) { long duration = ( android.os.SystemClock.elapsedRealtime ( ) ) - ( mLastProbeTimeMs ) ; boolean isFromProbe = duration < ( android.net.ip.IpReachabilityMonitor.getProbeWakeLockDuration ( ) ) ; boolean isProvisioningLost = delta == ( android.net.LinkProperties.ProvisioningChange.LOST_PROVISIONING ) ; int eventType = android.net.metrics.IpReachabilityEvent.nudFailureEventType ( isFromProbe , isProvisioningLost ) ; mMetricsLog.log ( new android.net.metrics.IpReachabilityEvent ( mInterfaceName , eventType ) ) ; }

Target:
private void logEvent ( int probeType , int errorCode ) { int eventType = probeType | ( errorCode & 255 ) ; mMetricsLog.log ( mInterfaceName , new android.net.metrics.IpReachabilityEvent ( eventType ) ) ; }
Source:
public void execute ( java.lang.String programName ) { executionResult = executeCommandWithTimeout ( constructCommand ( programName ) , true ) ; }

Target:
public void execute ( java.lang.String programName ) { java.lang.String command = "" ; java.lang.String androidRoot = Options.androidRoot.trim ( ) ; if ( ( androidRoot.length ( ) ) != 0 ) { command = ( "PATH=" + androidRoot ) + "/bin " ; command += ( "ANDROID_ROOT=" + androidRoot ) + " " ; command += ( ( ( "LD_LIBRARY_PATH=" + androidRoot ) + "/lib:" ) + androidRoot ) + "/lib64 " ; } command += constructCommand ( programName ) ; executionResult = executeCommandWithTimeout ( command , true ) ; }
Source:
public static < T > java.util.Iterator < T > consumingIterator ( final java.util.Iterator < T > iterator ) { com.google.common.base.Preconditions.checkNotNull ( iterator ) ; return new com.google.common.collect.UnmodifiableIterator < T > ( ) { @ java.lang.Override public boolean hasNext ( ) { return iterator.hasNext ( ) ; } @ java.lang.Override public T next ( ) { T next = iterator.next ( ) ; iterator.remove ( ) ; return next ; } } ; }

Target:
public java.lang.String toString ( ) { return "Iterators.consumingIterator(...)" ; }
Source:
protected boolean start ( ) { if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , "start()" ) ; initializeNative ( ) ; mAppOps = getSystemService ( android.app.AppOpsManager.class ) ; mAdvertiseManager = new com.android.bluetooth.gatt.AdvertiseManager ( this , com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; mAdvertiseManager.start ( ) ; mScanManager = new com.android.bluetooth.gatt.ScanManager ( this ) ; mScanManager.start ( ) ; return true ; }

Target:
protected boolean start ( ) { if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , "start()" ) ; initializeNative ( ) ; mAppOps = getSystemService ( android.app.AppOpsManager.class ) ; mAdvertiseManager = new com.android.bluetooth.gatt.AdvertiseManager ( this , com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; mAdvertiseManager.start ( ) ; mScanManager = new com.android.bluetooth.gatt.ScanManager ( this ) ; mScanManager.start ( ) ; mPeriodicScanManager = new com.android.bluetooth.gatt.PeriodicScanManager ( com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; mPeriodicScanManager.start ( ) ; return true ; }
Source:
public void testNoResolveEntries ( ) { org.mockito.Mockito.when ( mPackageManager.queryIntentServicesAsUser ( org.mockito.Matchers.any ( android.content.Intent.class ) , org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; mFilter.startFilterLookup ( mCall , mCallback ) ; org.mockito.Mockito.verify ( mCallback ) . onCallFilteringComplete ( org.mockito.Matchers.eq ( mCall ) , org.mockito.Matchers.eq ( com.android.server.telecom.tests.CallScreeningServiceFilterTest.PASS_RESULT ) ) ; }

Target:
public void testNoResolveEntries ( ) { org.mockito.Mockito.when ( mPackageManager.queryIntentServicesAsUser ( org.mockito.ArgumentMatchers.nullable ( android.content.Intent.class ) , org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; mFilter.startFilterLookup ( mCall , mCallback ) ; org.mockito.Mockito.verify ( mCallback ) . onCallFilteringComplete ( org.mockito.Matchers.eq ( mCall ) , org.mockito.Matchers.eq ( com.android.server.telecom.tests.CallScreeningServiceFilterTest.PASS_RESULT ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; if ( ( ownerType ) != null ) { builder.append ( com.google.common.reflect.Types.toString ( ownerType ) ) . append ( '.' ) ; } builder.append ( rawType.getName ( ) ) . append ( '<' ) . append ( com.google.common.reflect.Types.COMMA_JOINER.join ( com.google.common.collect.Iterables.transform ( argumentsList , com.google.common.reflect.Types.TYPE_TO_STRING ) ) ) . append ( '>' ) ; return builder.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; if ( ( ownerType ) != null ) { builder.append ( com.google.common.reflect.Types.JavaVersion.CURRENT.typeName ( ownerType ) ) . append ( '.' ) ; } builder.append ( rawType.getName ( ) ) . append ( '<' ) . append ( com.google.common.reflect.Types.COMMA_JOINER.join ( com.google.common.collect.Iterables.transform ( argumentsList , com.google.common.reflect.Types.TYPE_NAME ) ) ) . append ( '>' ) ; return builder.toString ( ) ; }
Source:
public android.webkit.WebBackForwardList copyBackForwardList ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.webkit.WebBackForwardList ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.webkit.WebBackForwardList > ( ) { @ java.lang.Override public android.webkit.WebBackForwardList call ( ) { return copyBackForwardList ( ) ; } } ) ; return ret ; } return new com.android.webview.chromium.WebBackForwardListChromium ( mAwContents.getNavigationHistory ( ) ) ; }

Target:
public void findNext ( final boolean forwards ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { findNext ( forwards ) ; } } ) ; return ; } mAwContents.findNext ( forwards ) ; }
Source:
public static com.android.sdklib.repository.descriptors.IPkgDesc newTool ( @ com.android.annotations.NonNull final com.android.sdklib.repository.FullRevision revision , @ com.android.annotations.NonNull final com.android.sdklib.repository.FullRevision minPlatformToolsRev ) { return new com.android.sdklib.repository.descriptors.PkgDesc ( ) { @ java.lang.Override public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_TOOLS ; } @ java.lang.Override public com.android.sdklib.repository.FullRevision getFullRevision ( ) { return revision ; } @ java.lang.Override public com.android.sdklib.repository.FullRevision getMinPlatformToolsRev ( ) { return minPlatformToolsRev ; } } ; }

Target:
public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { return isGenericUpdateFor ( existingDesc ) ; }
Source:
synchronized void nScriptSetVarJ ( long id , int slot , long val ) { validate ( ) ; rsnScriptSetVarJ ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptForEach ( long id , int slot , long ain , long aout , byte [ ] params , boolean mUseInc ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , mIncCon , id , slot , ain , aout , mUseInc ) ; } else { rsnScriptForEach ( mContext , mIncCon , id , slot , ain , aout , params , mUseInc ) ; } }
Source:
public com.android.sdklib.devices.Device build ( ) { if ( ( mSoftware.size ( ) ) <= 0 ) { throw generateBuildException ( "Device software not configured" ) ; } else if ( ( mState.size ( ) ) <= 0 ) { throw generateBuildException ( "Device states not configured" ) ; } if ( ( mMeta ) == null ) { mMeta = new com.android.sdklib.devices.Meta ( ) ; } for ( com.android.sdklib.devices.State s : mState ) { if ( s.mDefaultState ) { mDefaultState = s ; break ; } } return new com.android.sdklib.devices.Device ( this ) ; }

Target:
public com.android.sdklib.devices.Device build ( ) { if ( ( mSoftware.size ( ) ) <= 0 ) { throw generateBuildException ( "Device software not configured" ) ; } else if ( ( mState.size ( ) ) <= 0 ) { throw generateBuildException ( "Device states not configured" ) ; } if ( ( mMeta ) == null ) { mMeta = new com.android.sdklib.devices.Meta ( ) ; } for ( com.android.sdklib.devices.State s : mState ) { if ( s.isDefaultState ( ) ) { mDefaultState = s ; break ; } } return new com.android.sdklib.devices.Device ( this ) ; }
Source:
public boolean isInCall ( android.content.Context context ) { if ( com.android.dialer.telecom.TelecomUtil.hasReadPhoneStatePermission ( context ) ) { return com.android.dialer.telecom.TelecomUtil.getTelecomManager ( context ) . isInCall ( ) ; } return false ; }

Target:
public boolean isInCall ( android.content.Context context ) { if ( com.android.dialer.telecom.TelecomUtil.hasReadPhoneStatePermission ( context ) ) { if ( ( android.os.Build.VERSION.SDK_INT ) >= ( android.os.Build.VERSION_CODES.O ) ) { return com.android.dialer.telecom.TelecomUtil.getTelecomManager ( context ) . isInManagedCall ( ) ; } else { return com.android.dialer.telecom.TelecomUtil.getTelecomManager ( context ) . isInCall ( ) ; } } return false ; }
Source:
public void testReadAfterWrite ( ) throws java.lang.Exception { com.android.server.wifi.WifiConfigStoreData writeData = createSingleOpenNetworkStoreData ( ) ; mWifiConfigStore.switchUserStoreAndRead ( mUserStore ) ; mWifiConfigStore.write ( true , writeData ) ; com.android.server.wifi.WifiConfigStoreData readData = mWifiConfigStore.read ( ) ; com.android.server.wifi.WifiConfigStoreDataTest.assertConfigStoreDataEqual ( writeData , readData ) ; }

Target:
public void testReadAfterWriteWithNoUserStore ( ) throws java.lang.Exception { mWifiConfigStore.registerStoreData ( mStoreData ) ; mStoreData.setUserData ( com.android.server.wifi.WifiConfigStoreTest.TEST_USER_DATA ) ; mStoreData.setShareData ( com.android.server.wifi.WifiConfigStoreTest.TEST_SHARE_DATA ) ; mWifiConfigStore.write ( true ) ; mWifiConfigStore.read ( ) ; assertEquals ( com.android.server.wifi.WifiConfigStoreTest.TEST_SHARE_DATA , mStoreData.getShareData ( ) ) ; assertNull ( mStoreData.getUserData ( ) ) ; }
Source:
private void decodeImageBounds ( ) throws android.drm.mobile1.DrmException { com.android.mms.ui.UriImage uriImage = new com.android.mms.ui.UriImage ( mContext , getUriWithDrmCheck ( ) ) ; mWidth = uriImage.getWidth ( ) ; mHeight = uriImage.getHeight ( ) ; if ( com.android.mms.model.ImageModel.LOCAL_LOGV ) { android.util.Log.v ( com.android.mms.model.ImageModel.TAG , ( ( ( "Image bounds: " + ( mWidth ) ) + "x" ) + ( mHeight ) ) ) ; } }

Target:
private void decodeImageBounds ( android.net.Uri uri ) { com.android.mms.ui.UriImage uriImage = new com.android.mms.ui.UriImage ( mContext , uri ) ; mWidth = uriImage.getWidth ( ) ; mHeight = uriImage.getHeight ( ) ; if ( com.android.mms.model.ImageModel.LOCAL_LOGV ) { android.util.Log.v ( com.android.mms.model.ImageModel.TAG , ( ( ( "Image bounds: " + ( mWidth ) ) + "x" ) + ( mHeight ) ) ) ; } }
Source:
public synchronized void onAcceptFailed ( ) { mServerSockets = null ; if ( ( ( ! ( mInterrupted ) ) && ( ( mAdapter ) != null ) ) && ( mAdapter.isEnabled ( ) ) ) { startSocketListeners ( ) ; } }

Target:
public synchronized void onAcceptFailed ( ) { cleanUpSdpRecord ( ) ; if ( ( mServerSockets ) != null ) { mServerSockets.shutdown ( false ) ; mServerSockets = null ; } if ( ( ( ! ( mInterrupted ) ) && ( ( mAdapter ) != null ) ) && ( mAdapter.isEnabled ( ) ) ) { startSocketListeners ( ) ; } }
Source:
public void worked ( int work ) { }

Target:
public void createConfigFile ( ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog dialog = new com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog ( mConfigChooser.getShell ( ) , mEditedFile.getName ( ) , mConfigChooser.getConfiguration ( ) . getFullConfig ( ) ) ; if ( ( dialog.open ( ) ) != ( org.eclipse.jface.window.Window.OK ) ) { return ; } com.android.ide.common.resources.configuration.FolderConfiguration config = new com.android.ide.common.resources.configuration.FolderConfiguration ( ) ; dialog.getConfiguration ( config ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.CreateNewConfigJob job = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.CreateNewConfigJob ( this , mEditedFile , config ) ; job.schedule ( ) ; }
Source:
public java.lang.String getImsi ( ) { return mImsi ; }

Target:
public boolean matchesMccMnc ( java.lang.String mccMnc ) { if ( mccMnc == null ) { return false ; } if ( ( mccMnc.length ( ) ) != ( com.android.server.wifi.IMSIParameter.MCC_MNC_LENGTH ) ) { return false ; } int checkLength = com.android.server.wifi.IMSIParameter.MCC_MNC_LENGTH ; if ( ( mPrefix ) && ( ( mImsi.length ( ) ) < ( com.android.server.wifi.IMSIParameter.MCC_MNC_LENGTH ) ) ) { checkLength = mImsi.length ( ) ; } return mImsi.regionMatches ( false , 0 , mccMnc , 0 , checkLength ) ; }
Source:
public void registerMediaButtonIntent ( android.app.PendingIntent pi , android.content.ComponentName eventReceiver ) { if ( pi == null ) { android.util.Log.e ( android.media.AudioManager.TAG , "Cannot call registerMediaButtonIntent() with a null parameter" ) ; return ; } android.media.session.MediaSessionLegacyHelper helper = android.media.session.MediaSessionLegacyHelper.getHelper ( getContext ( ) ) ; helper.addMediaButtonListener ( pi , eventReceiver , getContext ( ) ) ; }

Target:
public void registerMediaButtonIntent ( android.app.PendingIntent pi , android.content.ComponentName eventReceiver ) { if ( pi == null ) { android.util.Log.e ( android.media.AudioManager.TAG , "Cannot call registerMediaButtonIntent() with a null parameter" ) ; return ; } android.media.session.MediaSessionLegacyHelper helper = android.media.session.MediaSessionLegacyHelper.getHelper ( mApplicationContext ) ; helper.addMediaButtonListener ( pi , eventReceiver , mApplicationContext ) ; }
Source:
protected void configureShell ( org.eclipse.swt.widgets.Shell shell ) { super . configureShell ( shell ) ; shell.setText ( ( "Traceview: " + ( mTraceName ) ) ) ; java.io.InputStream in = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "icons/traceview128.png" ) ; if ( in != null ) { shell.setImage ( new org.eclipse.swt.graphics.Image ( shell.getDisplay ( ) , in ) ) ; } shell.setBounds ( 100 , 10 , 1282 , 900 ) ; }

Target:
protected void configureShell ( org.eclipse.swt.widgets.Shell shell ) { super . configureShell ( shell ) ; shell.setText ( ( "Traceview: " + ( mTraceName ) ) ) ; java.io.InputStream in = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "icons/traceview-128.png" ) ; if ( in != null ) { shell.setImage ( new org.eclipse.swt.graphics.Image ( shell.getDisplay ( ) , in ) ) ; } shell.setBounds ( 100 , 10 , 1282 , 900 ) ; }
Source:
public boolean isPaused ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return isPaused ( ) ; } } ) ; return ret ; } return mAwContents.isPaused ( ) ; }

Target:
public android.webkit.WebBackForwardList copyBackForwardList ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.webkit.WebBackForwardList ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.webkit.WebBackForwardList > ( ) { @ java.lang.Override public android.webkit.WebBackForwardList call ( ) { return copyBackForwardList ( ) ; } } ) ; return ret ; } return new com.android.webview.chromium.WebBackForwardListChromium ( mAwContents.getNavigationHistory ( ) ) ; }
Source:
public void testFailures ( ) { assertEquals ( false , rq.checkAndSet ( "" , config ) ) ; assertEquals ( false , rq.checkAndSet ( "rus" , config ) ) ; assertEquals ( false , rq.checkAndSet ( "rUSA" , config ) ) ; assertEquals ( false , rq.checkAndSet ( "abc" , config ) ) ; }

Target:
public void testCheckCaseInsensitive ( ) { assertEquals ( true , rq.checkAndSet ( "rus" , config ) ) ; assertTrue ( ( ( config.getRegionQualifier ( ) ) != null ) ) ; assertEquals ( "US" , config.getRegionQualifier ( ) . getValue ( ) ) ; assertEquals ( "rUS" , config.getRegionQualifier ( ) . toString ( ) ) ; assertEquals ( "rUS" , config.getRegionQualifier ( ) . toString ( ) ) ; assertEquals ( "rUS" , com.android.ide.common.resources.configuration.RegionQualifier.getFolderSegment ( "us" ) ) ; }
Source:
public int acquireDrmInfo ( android.drm.DrmInfoRequest drmInfoRequest ) { if ( ( null == drmInfoRequest ) || ( ! ( drmInfoRequest.isValid ( ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Given drmInfoRequest is invalid/null" ) ; } int result = android.drm.DrmManagerClient.ERROR_UNKNOWN ; if ( null != ( mEventHandler ) ) { android.os.Message msg = mEventHandler.obtainMessage ( android.drm.DrmManagerClient.ACTION_ACQUIRE_DRM_INFO , drmInfoRequest ) ; result = ( mEventHandler.sendMessage ( msg ) ) ? android.drm.DrmManagerClient.ERROR_NONE : result ; } return result ; }

Target:
public int acquireRights ( android.drm.DrmInfoRequest drmInfoRequest ) { android.drm.DrmInfo drmInfo = acquireDrmInfo ( drmInfoRequest ) ; return processDrmInfo ( drmInfo ) ; }
Source:
public static com.android.manifmerger.XmlDocument load ( com.android.manifmerger.XmlLoader.SourceLocation sourceLocation , java.lang.String xml ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( xml ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , sourceLocation , domDocument.getDocumentElement ( ) ) : null ; }

Target:
public static com.android.manifmerger.XmlDocument load ( com.android.manifmerger.KeyResolver < java.lang.String > selectors , com.android.manifmerger.XmlLoader.SourceLocation sourceLocation , java.lang.String xml ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( xml ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , sourceLocation , selectors , domDocument.getDocumentElement ( ) ) : null ; }
Source:
public boolean canGoBack ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return canGoBack ( ) ; } } ) ; return ret ; } return mAwContents.canGoBack ( ) ; }

Target:
public android.webkit.WebBackForwardList restoreState ( final android.os.Bundle inState ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.webkit.WebBackForwardList ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.webkit.WebBackForwardList > ( ) { @ java.lang.Override public android.webkit.WebBackForwardList call ( ) { return restoreState ( inState ) ; } } ) ; return ret ; } if ( inState == null ) return null ; if ( ! ( mAwContents.restoreState ( inState ) ) ) return null ; return copyBackForwardList ( ) ; }
Source:
private void createGraphvizFile ( java.lang.String countryIso , java.time.Instant startInclusive , java.time.Instant endExclusive , java.lang.String outputFile ) throws java.io.IOException { com.android.libcore.timezone.tzlookup.proto.CountryZonesFile.Country country = countryMap.get ( countryIso ) ; com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree tree = com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree.create ( country , startInclusive , endExclusive ) ; tree.createGraphvizFile ( outputFile ) ; }

Target:
private void createGraphvizFile ( java.lang.String countryIso , java.time.Instant startInclusive , java.time.Instant endExclusive , boolean compress , java.lang.String outputFile ) throws java.io.IOException { com.android.libcore.timezone.tzlookup.proto.CountryZonesFile.Country country = countryMap.get ( countryIso ) ; com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree tree = com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree.create ( country , startInclusive , endExclusive , compress ) ; tree.createGraphvizFile ( outputFile ) ; }