auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onPause ( ) { super . onPause ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( ( "onPause - mIsResponseSent[" + ( mIsResponseSent ) ) + "]" ) ) ; }

Target:
public void onPause ( ) { super . onPause ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( ( "onPause - mIsResponseSent[" + ( mIsResponseSent ) ) + "]" ) ) ; if ( ( mPopupMenu ) != null ) { mPopupMenu.dismiss ( ) ; } }
Source:
final boolean casBase ( long cmp , long val ) { return com.google.common.cache.Striped64.UNSAFE.compareAndSwapLong ( this , com.google.common.cache.Striped64.baseOffset , cmp , val ) ; }

Target:
final boolean casBusy ( ) { return com.google.common.cache.Striped64.busyUpdater.compareAndSet ( this , 0 , 1 ) ; }
Source:
public void run ( ) { new android.theme.app.HoloDeviceActivity.GenerateBitmapTask ( ) . execute ( ) ; }

Target:
public void run ( ) { new android.theme.app.HoloDeviceActivity.GenerateBitmapTask ( view , layoutName ) . execute ( ) ; }
Source:
public java.lang.String apply ( com.google.gct.testing.GoogleCloudTestingDimension dimension ) { return getStringRepresentation ( dimension ) ; }

Target:
public java.lang.String apply ( com.google.gct.testing.CloudConfigurationDimension dimension ) { return getStringRepresentation ( dimension ) ; }
Source:
static void constantIndexing6 ( int [ ] array ) { array [ 3 ] = 1 ; array [ 4 ] = 1 ; }

Target:
static void constantIndexing6 ( int [ ] array ) { array [ 3 ] = 111 ; array [ 4 ] = 111 ; }
Source:
public void increaseRetryCount ( ) { ( mRetryCount ) ++ ; if ( ( mRetryCount ) > ( mMaxRetryCount ) ) { mRetryCount = mMaxRetryCount ; } if ( com.android.internal.telephony.RetryManager.DBG ) log ( ( "increseRetryCount: " + ( mRetryCount ) ) ) ; }

Target:
public void increaseRetryCount ( ) { ( mRetryCount ) ++ ; if ( ( mRetryCount ) > ( mMaxRetryCount ) ) { mRetryCount = mMaxRetryCount ; } if ( com.android.internal.telephony.RetryManager.DBG ) log ( ( "increaseRetryCount: " + ( mRetryCount ) ) ) ; }
Source:
public com.android.ide.eclipse.adt.internal.editors.descriptors.TextAttributeDescriptor create ( java.lang.String xmlLocalName , java.lang.String uiName , java.lang.String nsUri , java.lang.String tooltip , com.android.ide.common.api.IAttributeInfo attrInfo ) { return new com.android.ide.eclipse.adt.internal.editors.descriptors.ReferenceAttributeDescriptor ( com.android.ide.eclipse.adt.internal.resources.ResourceType.DRAWABLE , xmlLocalName , uiName , nsUri , tooltip , new com.android.ide.common.resources.platform.AttributeInfo ( xmlLocalName , new com.android.ide.common.api.IAttributeInfo.Format [ ] { com.android.ide.common.api.IAttributeInfo.Format.REFERENCE } ) ) ; }

Target:
public com.android.ide.eclipse.adt.internal.editors.descriptors.TextAttributeDescriptor create ( java.lang.String xmlLocalName , java.lang.String uiName , java.lang.String nsUri , java.lang.String tooltip , com.android.ide.common.api.IAttributeInfo attrInfo ) { return new com.android.ide.eclipse.adt.internal.editors.descriptors.ReferenceAttributeDescriptor ( com.android.resources.ResourceType.DRAWABLE , xmlLocalName , uiName , nsUri , tooltip , new com.android.ide.common.resources.platform.AttributeInfo ( xmlLocalName , new com.android.ide.common.api.IAttributeInfo.Format [ ] { com.android.ide.common.api.IAttributeInfo.Format.REFERENCE } ) ) ; }
Source:
private int getAvailableLabel ( ) { int candidate = getMinimumUnreservedLabel ( ) ; for ( com.android.dx.cf.code.BasicBlock bb : result ) { int label = bb.getLabel ( ) ; if ( label >= candidate ) { candidate = label + 1 ; } } return candidate ; }

Target:
private int getAvailableLabel ( ) { int candidate = getMinimumUnreservedLabel ( ) ; for ( com.android.dx.rop.code.BasicBlock bb : result ) { int label = bb.getLabel ( ) ; if ( label >= candidate ) { candidate = label + 1 ; } } return candidate ; }
Source:
public void testRange ( ) throws java.lang.Exception { checkFormat ( com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences.create ( ) , "res/layout-xlarge/layout.xml" , "<LinearLayout><Button foo=\"bar\"></Button><CheckBox/></LinearLayout>" , ( "\n" + ( ( ( " <Button foo=\"bar\" >\n" + " </Button>\n" ) + "\n" ) + " <CheckBox />\n" ) ) , "\n" , "Button" , false , "CheckBox" ) ; }

Target:
public void testRange ( ) throws java.lang.Exception { checkFormat ( com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences.create ( ) , "res/layout-xlarge/layout.xml" , "<LinearLayout><Button foo=\"bar\"></Button><CheckBox/></LinearLayout>" , ( "\n" + ( ( ( " <Button foo=\"bar\" >\n" + " </Button>\n" ) + "\n" ) + " <CheckBox />\n" ) ) , "\n" , "Button" , false , "CheckBox" ) ; }
Source:
static int $opt$LongToInt ( long a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( int ) ( a ) ) ; }

Target:
static int $opt$noinline$LongToInt ( long a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( int ) ( a ) ) ; }
Source:
public void supplyPin2 ( java.lang.String pin2 , android.os.Message onComplete ) { mPhone.mCM.supplyIccPin2 ( pin2 , mHandler.obtainMessage ( com.android.internal.telephony.IccCard.EVENT_PINPUK_DONE , onComplete ) ) ; }

Target:
public void supplyPin ( java.lang.String pin , android.os.Message onComplete ) { mPhone.mCM.supplyIccPin ( pin , onComplete ) ; }
Source:
public void test_minus_longTemporalUnit_timeNotAllowed ( ) { TEST_2007_07_15.minus ( 7 , java.time.temporal.ChronoUnit.HOURS ) ; }

Target:
public void test_minus_longTemporalUnit_timeNotAllowed ( ) { tck.java.time.TCKLocalDate.TEST_2007_07_15.minus ( 7 , java.time.temporal.ChronoUnit.HOURS ) ; }
Source:
public void replaceWith ( com.android.layoutlib.utils.ResourceValue value ) { mValue = value.mValue ; }

Target:
public void replaceWith ( com.android.ide.common.layoutlib.ResourceValue value ) { mValue = value.mValue ; }
Source:
protected void visitString ( int type , int index ) { constantValue = new com.android.jack.dx.rop.cst.CstString ( dex.strings ( ) . get ( index ) ) ; }

Target:
protected void visitString ( int type , int index ) { assert ( cstIndexMap ) != null ; constantValue = cstIndexMap.getCstString ( index ) ; }
Source:
public void test_getBucketIndex_NPE ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex ii = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.US ) ; try { ii.getBucketIndex ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void test_getBucketIndex_NPE ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex ii = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.US ) ; try { ii.getBucketIndex ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
boolean isLeadingZeroPossible ( int countryCallingCode ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata mainMetadataForCallingCode = getMetadataForRegionOrCallingCode ( countryCallingCode , getRegionCodeForCountryCode ( countryCallingCode ) ) ; if ( mainMetadataForCallingCode == null ) { return false ; } return mainMetadataForCallingCode.isLeadingZeroPossible ( ) ; }

Target:
boolean isLeadingZeroPossible ( int countryCallingCode ) { com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata mainMetadataForCallingCode = getMetadataForRegionOrCallingCode ( countryCallingCode , getRegionCodeForCountryCode ( countryCallingCode ) ) ; if ( mainMetadataForCallingCode == null ) { return false ; } return mainMetadataForCallingCode.leadingZeroPossible ; }
Source:
synchronized void nAllocationRead ( int id , int [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }

Target:
native void rsnAllocationRead ( long con , long id , short [ ] d ) ;
Source:
private java.lang.String toHex ( java.lang.String password ) { if ( password == null ) { return new java.lang.String ( ) ; } byte [ ] bytes = password.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ; return new java.lang.String ( org.apache.commons.codec.binary.Hex.encodeHex ( bytes ) ) ; }

Target:
private java.lang.String toHex ( java.lang.String password ) { if ( password == null ) { return "" ; } byte [ ] bytes = password.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ; return new java.lang.String ( libcore.util.HexEncoding.encode ( bytes ) ) ; }
Source:
public void parseAndKeepRawInput ( java.lang.String numberToParse , java.lang.String defaultRegion , com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber ) throws com.google.i18n.phonenumbers.NumberParseException { parseHelper ( numberToParse , defaultRegion , true , true , phoneNumber ) ; }

Target:
public com.google.i18n.phonenumbers.Phonenumber.PhoneNumber parse ( java.lang.CharSequence numberToParse , java.lang.String defaultRegion ) throws com.google.i18n.phonenumbers.NumberParseException { com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber = new com.google.i18n.phonenumbers.Phonenumber.PhoneNumber ( ) ; parse ( numberToParse , defaultRegion , phoneNumber ) ; return phoneNumber ; }
Source:
private static native void startMethodTracingFd ( java.lang.String traceFileName , java.io.FileDescriptor fd , int bufferSize , int flags , boolean samplingEnabled , int intervalUs ) ;

Target:
private static native void startMethodTracingFd ( java.lang.String traceFileName , java.io.FileDescriptor fd , int bufferSize , int flags , boolean samplingEnabled , int intervalUs , boolean streamingOutput ) ;
Source:
public void callSessionResumeReceived ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsCallProfile imsCallProfile ) throws android.os.RemoteException { mNewListener.callSessionResumeReceived ( imsCallProfile ) ; }

Target:
public void callSessionRemoveParticipantsRequestDelivered ( com.android.ims.internal.IImsCallSession i ) throws android.os.RemoteException { mNewListener.callSessionRemoveParticipantsRequestDelivered ( ) ; }
Source:
public void testConnectTwice ( ) { mConnectionCallback.resetCounts ( ) ; createMediaBrowser ( android.media.cts.MediaBrowserTest.TEST_BROWSER_SERVICE ) ; connectMediaBrowserService ( ) ; try { mMediaBrowser.connect ( ) ; fail ( ) ; } catch ( java.lang.IllegalStateException e ) { } }

Target:
protected boolean check ( ) { return ( ( ( mConnectionCallback.mConnectionFailedCount ) > 0 ) && ( ( mConnectionCallback.mConnectedCount ) == 0 ) ) && ( ( mConnectionCallback.mConnectionSuspendedCount ) == 0 ) ; }
Source:
protected com.android.builder.resources.AssetFile createFileAndItems ( java.io.File file , com.android.utils.ILogger logger ) { return new com.android.builder.resources.AssetFile ( file , new com.android.builder.resources.AssetItem ( file.getName ( ) ) ) ; }

Target:
protected com.android.builder.resources.AssetFile createFileAndItems ( java.io.File sourceFolder , java.io.File file , com.android.utils.ILogger logger ) { return new com.android.builder.resources.AssetFile ( file , com.android.builder.resources.AssetItem.create ( sourceFolder , file ) ) ; }
Source:
public java.lang.Object getDecodedObject ( org.apache.harmony.security.asn1.BerInputStream in ) throws java.io.IOException { return new java.lang.String ( in.buffer , in.contentOffset , in.length , java.nio.charset.Charsets.ISO_8859_1 ) ; }

Target:
public java.lang.Object getDecodedObject ( org.apache.harmony.security.asn1.BerInputStream in ) throws java.io.IOException { return new java.lang.String ( in.buffer , in.contentOffset , in.length , java.nio.charset.StandardCharsets.ISO_8859_1 ) ; }
Source:
public void startWps ( android.os.Messenger replyTo , android.net.wifi.WpsInfo config ) { android.os.Message msg = obtainMessage ( android.net.wifi.WifiStateMachine.CMD_START_WPS , config ) ; msg.replyTo = replyTo ; sendMessage ( msg ) ; }

Target:
public java.lang.String getConfigFile ( ) { return mWifiConfigStore.getConfigFile ( ) ; }
Source:
public void test2_1SetEnabledAfterRelease ( ) throws java.lang.Exception { getEqualizer ( 0 ) ; mEqualizer.release ( ) ; try { mEqualizer.setEnabled ( true ) ; } catch ( java.lang.IllegalStateException e ) { } finally { releaseEqualizer ( ) ; } }

Target:
public void test2_1SetEnabledAfterRelease ( ) throws java.lang.Exception { getEqualizer ( getSessionId ( ) ) ; mEqualizer.release ( ) ; try { mEqualizer.setEnabled ( true ) ; } catch ( java.lang.IllegalStateException e ) { } finally { releaseEqualizer ( ) ; } }
Source:
public void cleanUp ( ) { if ( ( mSimUnlockProgressDialog ) != null ) { mSimUnlockProgressDialog.hide ( ) ; } mUpdateMonitor.removeCallback ( this ) ; }

Target:
public void cleanUp ( ) { if ( ( mSimUnlockProgressDialog ) != null ) { mSimUnlockProgressDialog.dismiss ( ) ; mSimUnlockProgressDialog = null ; } mUpdateMonitor.removeCallback ( this ) ; }
Source:
public com.android.build.gradle.AndroidSourceDirectorySet srcDirs ( java.lang.Object ... srcDirs ) { for ( java.lang.Object srcDir : srcDirs ) { source.add ( srcDir ) ; } return this ; }

Target:
public com.android.build.gradle.AndroidSourceDirectorySet srcDirs ( java.lang.Object ... srcDirs ) { java.util.Collections.addAll ( source , srcDirs ) ; return this ; }
Source:
private native java.lang.annotation.Annotation [ ] [ ] getParameterAnnotationsNative ( ) ;

Target:
public java.lang.annotation.Annotation [ ] [ ] getParameterAnnotations ( ) { return libcore.reflect.AnnotationAccess.getParameterAnnotations ( declaringClassOfOverriddenMethod , dexMethodIndex ) ; }
Source:
public void onComplete ( int resultCode , byte [ ] response ) { callback.onComplete ( resultCode , response ) ; }

Target:
public void onComplete ( int resultCode , android.telephony.euicc.EuiccNotification [ ] notifications ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , notifications ) ) ; }
Source:
public static com.android.internal.telephony.gsm.stk.FontSize fromInt ( int value ) { for ( com.android.internal.telephony.gsm.stk.FontSize e : com.android.internal.telephony.gsm.stk.FontSize.values ( ) ) { if ( ( e.mValue ) == value ) { return e ; } } return null ; }

Target:
public static com.android.internal.telephony.cat.FontSize fromInt ( int value ) { for ( com.android.internal.telephony.cat.FontSize e : com.android.internal.telephony.cat.FontSize.values ( ) ) { if ( ( e.mValue ) == value ) { return e ; } } return null ; }
Source:
public void run ( ) { if ( ( mCallback ) != null ) { if ( status == 0 ) descriptor.setValue ( value ) ; mCallback.onDescriptorRead ( this , descriptor , status ) ; } }

Target:
public void run ( ) { final android.bluetooth.BluetoothGattCallback callback = mCallback ; if ( callback != null ) { if ( status == 0 ) descriptor.setValue ( value ) ; callback.onDescriptorRead ( this , descriptor , status ) ; } }
Source:
private boolean record ( com.android.server.pm.dex.PackageDexUsageTests.TestData testData ) { return mPackageDexUsage.record ( testData.mPackageName , testData.mDexFile , testData.mOwnerUserId , testData.mLoaderIsa , testData.mUsedByOtherApps , testData.mPrimaryOrSplit , testData.mUsedBy ) ; }

Target:
private boolean record ( com.android.server.pm.dex.PackageDexUsageTests.TestData testData ) { return mPackageDexUsage.record ( testData.mPackageName , testData.mDexFile , testData.mOwnerUserId , testData.mLoaderIsa , testData.mUsedByOtherApps , testData.mPrimaryOrSplit , testData.mUsedBy , testData.mClassLoaderContext ) ; }
Source:
private static boolean isActiveVideoCall ( com.android.incallui.call.DialerCall call ) { return ( com.android.incallui.VideoCallPresenter.isVideoCall ( call ) ) && ( ( call.getState ( ) ) == ( com.android.incallui.call.DialerCall.State.ACTIVE ) ) ; }

Target:
private static boolean isActiveVideoCall ( com.android.incallui.call.DialerCall call ) { return ( com.android.incallui.VideoCallPresenter.isVideoCall ( call ) ) && ( ( call.getState ( ) ) == ( com.android.incallui.call.state.DialerCallState.ACTIVE ) ) ; }
Source:
public static void permuteArguments_boxingCallee ( boolean a , java.lang.Integer b ) { if ( a && ( ( b.intValue ( ) ) == 42 ) ) { return ; } java.lang.System.out.println ( ( ( ( "Unexpected arguments: " + a ) + ", " ) + b ) ) ; }

Target:
public static void fail ( java.lang.String message ) { java.lang.System.out.println ( ( "fail: " + message ) ) ; java.lang.Thread.dumpStack ( ) ; }
Source:
public void test_plus_Duration_zero ( ) { java.time.OffsetDateTime t = TEST_2008_6_30_11_30_59_000000500.plus ( java.time.Duration.ZERO ) ; org.testng.Assert.assertEquals ( t , TEST_2008_6_30_11_30_59_000000500 ) ; }

Target:
public void test_plus_Duration_zero ( ) { java.time.OffsetDateTime t = tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500.plus ( java.time.Duration.ZERO ) ; org.testng.Assert.assertEquals ( t , tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500 ) ; }
Source:
public android.os.IBinder onBind ( android.content.Intent intent ) { return mProvider.getBinder ( ) ; }

Target:
protected void dump ( java.io.FileDescriptor fd , java.io.PrintWriter writer , java.lang.String [ ] args ) { mProvider.dump ( fd , writer , args ) ; }
Source:
public static final void writeListXml ( java.util.List val , java.io.OutputStream out ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { org.xmlpull.v1.XmlSerializer serializer = android.util.Xml.newSerializer ( ) ; serializer.setOutput ( out , "utf-8" ) ; serializer.startDocument ( null , true ) ; serializer.setFeature ( "http://xmlpull.org/v1/doc/features.html#indent-output" , true ) ; com.android.internal.util.XmlUtils.writeListXml ( val , null , serializer ) ; serializer.endDocument ( ) ; }

Target:
public static final void writeListXml ( java.util.List val , java.io.OutputStream out ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { org.xmlpull.v1.XmlSerializer serializer = android.util.Xml.newSerializer ( ) ; serializer.setOutput ( out , java.nio.charset.StandardCharsets.UTF_8.name ( ) ) ; serializer.startDocument ( null , true ) ; serializer.setFeature ( "http://xmlpull.org/v1/doc/features.html#indent-output" , true ) ; com.android.internal.util.XmlUtils.writeListXml ( val , null , serializer ) ; serializer.endDocument ( ) ; }
Source:
public final int hashCode ( ) { return 305419896 ; }

Target:
public final int hashCode ( ) { return com.android.sched.util.location.NoLocation.class . hashCode ( ) ; }
Source:
private void doTest ( ) { com.intellij.codeInspection.LocalInspectionTool localInspectionTool = new com.google.gct.intellij.endpoints.validation.RestSignatureInspection ( ) ; java.lang.String testName = getTestName ( true ) ; myFixture.setTestDataPath ( getTestDataPath ( ) ) ; myFixture.testInspection ( ( "inspections/restSignatureInspection/" + testName ) , new com.intellij.codeInspection.ex.LocalInspectionToolWrapper ( localInspectionTool ) ) ; }

Target:
private void doTest ( ) { com.intellij.codeInspection.LocalInspectionTool localInspectionTool = new com.google.gct.idea.appengine.validation.RestSignatureInspection ( ) ; java.lang.String testName = getTestName ( true ) ; myFixture.setTestDataPath ( getTestDataPath ( ) ) ; myFixture.testInspection ( ( "inspections/restSignatureInspection/" + testName ) , new com.intellij.codeInspection.ex.LocalInspectionToolWrapper ( localInspectionTool ) ) ; }
Source:
void putUnchecked ( int pos , float [ ] dst , int srcOffset , int length ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
abstract void getUnchecked ( int pos , float [ ] dst , int dstOffset , int length ) ;
Source:
private void endAnimation ( final android.animation.ValueAnimator mValueAnimator ) throws java.lang.Throwable { java.lang.Thread animationRunnable = new java.lang.Thread ( ) { public void run ( ) { mValueAnimator.end ( ) ; } } ; this . runTestOnUiThread ( animationRunnable ) ; }

Target:
private void cancelAnimation ( final android.animation.ValueAnimator animator ) throws java.lang.Throwable { this . runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { animator.cancel ( ) ; } } ) ; }
Source:
public java.io.FileDescriptor accept ( java.io.FileDescriptor fd , java.net.InetSocketAddress peerAddress ) throws android.system.ErrnoException , java.net.SocketException { dalvik.system.BlockGuard.getThreadPolicy ( ) . onNetwork ( ) ; return tagSocket ( os.accept ( fd , peerAddress ) ) ; }

Target:
public java.io.FileDescriptor accept ( java.io.FileDescriptor fd , java.net.SocketAddress peerAddress ) throws android.system.ErrnoException , java.net.SocketException { dalvik.system.BlockGuard.getThreadPolicy ( ) . onNetwork ( ) ; return tagSocket ( os.accept ( fd , peerAddress ) ) ; }
Source:
public boolean remove ( java.lang.Object object ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public boolean add ( E element ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
protected java.lang.String getProposal ( ) { return invokeCodeCompletion ( ) ? "" : "TODO" ; }

Target:
protected java.lang.String getProposal ( org.w3c.dom.Element element ) { return invokeCodeCompletion ( ) ? "" : "TODO" ; }
Source:
protected void onPause ( ) { super . onPause ( ) ; unregisterReceiver ( mReceiver ) ; }

Target:
protected void onPause ( ) { super . onPause ( ) ; if ( ( ( ( mVirtualizerSupported ) || ( mBassBoostSupported ) ) || ( mEqualizerSupported ) ) || ( mPresetReverbSupported ) ) { unregisterReceiver ( mReceiver ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) { try { Main.stackOverflowTestSub ( 0.0 , 0.0 , 0.0 ) ; } catch ( java.lang.StackOverflowError soe ) { java.lang.System.out.println ( "caught SOE" ) ; } java.lang.System.out.println ( "SOE test done" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main.testSelfRecursion ( ) ; Main.testMutualRecursion ( ) ; java.lang.System.out.println ( "SOE test done" ) ; }
Source:
public void testWithRowString_columnIndexAndValueMatcher ( ) { assertTrue ( android.support.test.espresso.matcher.CursorMatchers.withRowString ( 6 , android.support.test.espresso.matcher.CursorMatchersTest.STRING_VALUE_MATCHER ) . matches ( cursor ) ) ; }

Target:
public void withRowString_columnIndexAndValueMatcher ( ) { org.junit.Assert.assertTrue ( android.support.test.espresso.matcher.CursorMatchers.withRowString ( 6 , android.support.test.espresso.matcher.CursorMatchersTest.STRING_VALUE_MATCHER ) . matches ( cursor ) ) ; }
Source:
public java.nio.channels.ServerSocketChannel getAdminChannel ( ) { assert ( adminChannel ) != null ; return adminChannel ; }

Target:
public com.android.jack.server.ServerParameters getServerParameters ( ) { assert ( serverParameters ) != null ; return serverParameters ; }
Source:
public void testNonTranslatable2 ( ) throws java.lang.Exception { TranslationDetector.COMPLETE_REGIONS = true ; assertEquals ( ( "res/values-nb/nontranslatable.xml:3: Error: Non-translatable resources should only be defined in the base values/ folder [ExtraTranslation]\n" + ( ( ( " <string name=\"dummy\" translatable=\"false\">Ignore Me</string>\n" + " ~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "res/values/nontranslatable.xml=>res/values-nb/nontranslatable.xml" ) ) ; }

Target:
public void testNonTranslatable2 ( ) throws java.lang.Exception { TranslationDetector.sCompleteRegions = true ; assertEquals ( ( "res/values-nb/nontranslatable.xml:3: Error: Non-translatable resources should only be defined in the base values/ folder [ExtraTranslation]\n" + ( ( ( " <string name=\"dummy\" translatable=\"false\">Ignore Me</string>\n" + " ~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "res/values/nontranslatable.xml=>res/values-nb/nontranslatable.xml" ) ) ; }
Source:
public void testPrivate ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/private.xml:3: Error: Illegal resource reference: @*android resources are private and not always present [PrivateResource]\n" + ( ( ( " <ImageView android:id=\"@+id/android_logo\" android:layout_width=\"wrap_content\" android:layout_height=\"wrap_content\" android:src=\"@*android:drawable/android_button\" android:focusable=\"false\" android:clickable=\"false\" />\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "res/layout/private.xml" ) ) ; }

Target:
public void testPrivateInXml ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "res/layout/private.xml:11: Warning: The resource @string/my_private_string is marked as private in the library [PrivateResource]\n" + " android:text=\"@string/my_private_string\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( xml ( "res/layout/private.xml" , ( "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " android:id=\"@+id/newlinear\"\n" ) + " android:orientation=\"vertical\"\n" ) + " android:layout_width=\"match_parent\"\n" ) + " android:layout_height=\"match_parent\">\n" ) + "\n" ) + " <TextView\n" ) + " android:layout_width=\"wrap_content\"\n" ) + " android:layout_height=\"wrap_content\"\n" ) + " android:text=\"@string/my_private_string\" />\n" ) + "\n" ) + " <TextView\n" ) + " android:layout_width=\"wrap_content\"\n" ) + " android:layout_height=\"wrap_content\"\n" ) + " android:text=\"@string/my_public_string\" />\n" ) + "</LinearLayout>\n" ) ) ) ) ) ; }
Source:
public static boolean isGenericSignature ( @ javax.annotation.Nonnull org.objectweb.asm.tree.ClassNode cn ) { if ( ( ( cn.signature ) != null ) && ( cn.signature.contains ( com.android.jill.frontend.java.AsmHelper.GENERIC_SIGNATURE_START ) ) ) { assert cn.signature.contains ( com.android.jill.frontend.java.AsmHelper.GENERIC_SIGNATURE_END ) ; return true ; } return false ; }

Target:
public static boolean hasValidGenericSignature ( @ javax.annotation.Nonnull org.objectweb.asm.tree.MethodNode mn ) { if ( ( mn.signature ) != null ) { try { GenericSignatureParser.PARSER.parseMethodSignature ( mn.signature ) ; return true ; } catch ( java.lang.reflect.GenericSignatureFormatError e ) { } } return false ; }
Source:
void removeCall ( java.lang.String callId ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.removeCall ( callId ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void addConferenceCall ( java.lang.String callId , android.telecom.ParcelableConference parcelableConference ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.addConferenceCall ( callId , parcelableConference , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public static java.util.List < android.content.PeriodicSync > getPeriodicSyncs ( android.accounts.Account account , java.lang.String authority ) { try { return android.content.ContentResolver.getContentService ( ) . getPeriodicSyncs ( account , authority ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( "the ContentService should always be reachable" , e ) ; } }

Target:
public static void cancelSync ( android.accounts.Account account , java.lang.String authority ) { try { android.content.ContentResolver.getContentService ( ) . cancelSync ( account , authority , null ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public java.util.Map < java.lang.String , com.android.builder.resources.Resource > getResourceMap ( ) { return mItems ; }

Target:
public com.google.common.collect.ListMultimap < java.lang.String , com.android.builder.resources.Resource > getResourceMap ( ) { return mItems ; }
Source:
private static libcore.io.StructStatFs doStat ( java.lang.String path ) { try { return Libcore.os.statfs ( path ) ; } catch ( libcore.io.ErrnoException e ) { throw new java.lang.IllegalArgumentException ( ( "Invalid path: " + path ) , e ) ; } }

Target:
private static libcore.io.StructStatVfs doStat ( java.lang.String path ) { try { return Libcore.os.statvfs ( path ) ; } catch ( libcore.io.ErrnoException e ) { throw new java.lang.IllegalArgumentException ( ( "Invalid path: " + path ) , e ) ; } }
Source:
void send404 ( java.io.PrintStream ps ) throws java.io.IOException { ps.println ( ( "Not Found\n\n" + "The requested resource was not found.\n" ) ) ; }

Target:
void send404 ( java.io.PrintStream ps ) throws java.io.IOException { if ( ( delay ) > 0 ) { try { java.lang.Thread.sleep ( delay ) ; } catch ( java.lang.InterruptedException e ) { } } ps.println ( ( "Not Found\n\n" + "The requested resource was not found.\n" ) ) ; }
Source:
protected void logStartUnitTest ( com.android.rs.unittest.UnitTest test ) { java.lang.String thisDeviceName = android.os.Build.DEVICE ; int thisApiVersion = android.os.Build.VERSION.SDK_INT ; android.util.Log.i ( com.android.rs.testcompat.RSSupportLibTestsListActivity.TAG , java.lang.String.format ( ( "RenderScript support lib testing (%s) " + "on device %s, API version %d" ) , test.toString ( ) , thisDeviceName , thisApiVersion ) ) ; }

Target:
protected void logStartUnitTest ( com.android.rs.unittest.UnitTest test ) { test.logStart ( com.android.rs.testcompat.RSSupportLibTestsListActivity.TAG , "RenderScript Support Library Testing" ) ; }
Source:
public java.lang.String select ( java.lang.Object context , double number ) { android.icu.text.PluralRules.FixedDecimal dec = ( ( android.icu.text.PluralRules.FixedDecimal ) ( context ) ) ; assert ( dec.source ) == number ; return pluralRules.select ( dec ) ; }

Target:
public java.lang.String select ( java.lang.Object context , double number ) { android.icu.text.PluralRules.FixedDecimal dec = ( ( android.icu.text.PluralRules.FixedDecimal ) ( context ) ) ; assert ( dec.source ) == ( dec.isNegative ? - number : number ) ; return pluralRules.select ( dec ) ; }
Source:
public com.android.server.wifi.WifiLinkLayerStats syncGetLinkLayerStats ( com.android.internal.util.AsyncChannel channel ) { android.os.Message resultMsg = channel.sendMessageSynchronously ( com.android.server.wifi.WifiStateMachine.CMD_GET_LINK_LAYER_STATS ) ; com.android.server.wifi.WifiLinkLayerStats result = ( ( com.android.server.wifi.WifiLinkLayerStats ) ( resultMsg.obj ) ) ; resultMsg.recycle ( ) ; return result ; }

Target:
public android.net.wifi.WifiLinkLayerStats syncGetLinkLayerStats ( com.android.internal.util.AsyncChannel channel ) { android.os.Message resultMsg = channel.sendMessageSynchronously ( com.android.server.wifi.WifiStateMachine.CMD_GET_LINK_LAYER_STATS ) ; android.net.wifi.WifiLinkLayerStats result = ( ( android.net.wifi.WifiLinkLayerStats ) ( resultMsg.obj ) ) ; resultMsg.recycle ( ) ; return result ; }
Source:
public void run ( ) { if ( ( mCallback ) != null ) { mCallback.onMtuChanged ( this , mtu , status ) ; } }

Target:
public void run ( ) { final android.bluetooth.BluetoothGattCallback callback = mCallback ; if ( callback != null ) { callback.onReadRemoteRssi ( this , rssi , status ) ; } }
Source:
public void write ( java.lang.String s , int off , int len ) { }

Target:
protected static boolean getBooleanProperty ( java.lang.String key , boolean defVal ) { return com.ibm.icu.dev.test.TestFmwk.getParams ( ) . getBooleanProperty ( key , defVal ) ; }
Source:
public java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder > getFolders ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType type ) { return mFolderMap.get ( type ) ; }

Target:
public java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder > getFolders ( com.android.resources.ResourceFolderType type ) { return mFolderMap.get ( type ) ; }
Source:
public abstract void installPackage ( @ com.android.annotations.NonNull java.io.File apkFile , int timeout , com.android.utils.ILogger logger ) throws com.android.builder.testing.api.DeviceException ;

Target:
public abstract void installPackage ( @ com.android.annotations.NonNull java.io.File apkFile , @ com.android.annotations.NonNull java.util.Collection < java.lang.String > options , int timeout , com.android.utils.ILogger logger ) throws com.android.builder.testing.api.DeviceException ;
Source:
protected android.bluetooth.BluetoothDevice getRemoteDevice ( ) { return mRemoteDevice ; }

Target:
java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.util.List < android.bluetooth.BluetoothDevice > devices = new java.util.ArrayList < > ( ) ; if ( ( mRemoteDevice ) != null ) { devices.add ( mRemoteDevice ) ; } return devices ; }
Source:
protected java.lang.String getFormat ( ) { return android.telephony.SmsMessage.FORMAT_3GPP2 ; }

Target:
protected java.lang.String getFormat ( ) { return com.android.internal.telephony.SmsConstants.FORMAT_3GPP2 ; }
Source:
public void onResume ( ) { super . onResume ( ) ; com.android.dialer.common.LogUtil.i ( "AnswerFragment.onResume" , null ) ; restoreSwipeHintTexts ( ) ; inCallScreenDelegate.onInCallScreenResumed ( ) ; }

Target:
public void onResume ( ) { android.os.Trace.beginSection ( "AnswerFragment.onResume" ) ; super . onResume ( ) ; com.android.dialer.common.LogUtil.i ( "AnswerFragment.onResume" , null ) ; restoreSwipeHintTexts ( ) ; inCallScreenDelegate.onInCallScreenResumed ( ) ; android.os.Trace.endSection ( ) ; }
Source:
public void traverse ( @ javax.annotation.Nonnull com.android.sched.scheduler.ScheduleInstance < ? super com.android.sched.item.Component > schedule ) throws java.lang.Exception { schedule.process ( this ) ; traverseElements ( schedule ) ; }

Target:
public void traverse ( @ javax.annotation.Nonnull com.android.sched.scheduler.ScheduleInstance < ? super com.android.sched.item.Component > schedule ) throws java.lang.Exception { schedule.process ( this ) ; catchLocal.traverse ( schedule ) ; traverseElements ( schedule ) ; }
Source:
public void requestR1ANQPElementsWithoutRC ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mHandler.requestANQP ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.R1_ANQP_WITHOUT_RC ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mManager.requestANQPElements ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_SCAN_DETAIL , false , false ) ) ; }

Target:
public void requestR1ANQPElementsWithoutRC ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mHandler.requestANQP ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.R1_ANQP_WITHOUT_RC ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mManager.requestANQPElements ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_ANQP_KEY , false , false ) ) ; }
Source:
public static java.lang.String getFreeWidgetId ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiNode ) { java.lang.String name = uiNode.getDescriptor ( ) . getXmlLocalName ( ) ; if ( "TabWidget" . equals ( name ) ) { return "@android:id/tabs" ; } return "@+id/" + ( com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.getFreeWidgetId ( uiNode.getUiRoot ( ) , new java.lang.Object [ ] { name , null , null , null } ) ) ; }

Target:
public static java.lang.String getFreeWidgetId ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiRoot , java.lang.String name ) { if ( "TabWidget" . equals ( name ) ) { return "@android:id/tabs" ; } return "@+id/" + ( com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.getFreeWidgetId ( uiRoot , new java.lang.Object [ ] { name , null , null , null } ) ) ; }
Source:
public void verifyParcelWithHomeSPAndCredential ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = android.net.wifi.hotspot2.PasspointConfigurationTest.createHomeSp ( ) ; config.credential = android.net.wifi.hotspot2.PasspointConfigurationTest.createCredential ( ) ; android.net.wifi.hotspot2.PasspointConfigurationTest.verifyParcel ( config ) ; }

Target:
public void verifyParcelWithoutPolicy ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = android.net.wifi.hotspot2.PasspointConfigurationTest.createConfig ( ) ; config.policy = null ; android.net.wifi.hotspot2.PasspointConfigurationTest.verifyParcel ( config ) ; }
Source:
private static native int nextImpl ( int address , int n ) ;

Target:
private static native int currentImpl ( int address , java.lang.String text ) ;
Source:
public void setEnvironment ( android.hardware.cts.helpers.TestSensorEnvironment environment ) { mEnvironment = environment ; }

Target:
public void clearEvents ( ) { synchronized ( mCollectedEvents ) { mCollectedEvents.clear ( ) ; } }
Source:
public android.net.IpSecTransform.Builder setAuthentication ( @ android.net.IpSecTransform.TransformDirection int direction , android.net.IpSecAlgorithm algo ) { mConfig.flow [ direction ] . authentication = algo ; return this ; }

Target:
public android.net.IpSecTransform.Builder setEncryption ( @ android.net.IpSecTransform.TransformDirection int direction , android.net.IpSecAlgorithm algo ) { mConfig.setEncryption ( direction , algo ) ; return this ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { Main.doTest ( ) ; new Main.TestConfig ( ) . doFollowReferencesTest ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { Main.doTest ( ) ; new Main.TestConfig ( ) . doFollowReferencesTest ( ) ; Main.doStringTest ( ) ; }
Source:
java.util.Map < K , V > map ( ) { return this ; }

Target:
public java.util.NavigableSet < K > navigableKeySet ( ) { java.util.NavigableSet < K > result = navigableKeySet ; return result == null ? navigableKeySet = new com.google.common.collect.Maps.NavigableKeySet < K , V > ( this ) : result ; }
Source:
public com.android.build.gradle.internal.dsl.BuildType proguardFile ( java.lang.Object proguardFile ) { proguardFiles.add ( project.file ( proguardFile ) ) ; return this ; }

Target:
public com.android.build.gradle.internal.dsl.BuildType consumerProguardFiles ( @ com.android.annotations.NonNull java.lang.Object ... proguardFileArray ) { getConsumerProguardFiles ( ) . addAll ( project.files ( proguardFileArray ) . getFiles ( ) ) ; return this ; }
Source:
public com.android.ims.internal.IImsUt getUtInterface ( ) throws android.os.RemoteException { synchronized ( mLock ) { return this . getUt ( ) ; } }

Target:
public com.android.ims.internal.IImsUt getUtInterface ( ) throws android.os.RemoteException { synchronized ( mLock ) { return this . getUt ( ) . getInterface ( ) ; } }
Source:
public static < T > T readBytes ( java.io.File file , com.google.common.io.ByteProcessor < T > processor ) throws java.io.IOException { return com.google.common.io.ByteStreams.readBytes ( com.google.common.io.Files.newInputStreamSupplier ( file ) , processor ) ; }

Target:
public static < T > T readBytes ( java.io.File file , com.google.common.io.ByteProcessor < T > processor ) throws java.io.IOException { return com.google.common.io.Files.asByteSource ( file ) . read ( processor ) ; }
Source:
public static com.google.common.io.OutputSupplier < java.io.OutputStreamWriter > newWriterSupplier ( java.io.File file , java.nio.charset.Charset charset ) { return com.google.common.io.Files.newWriterSupplier ( file , charset , false ) ; }

Target:
public static com.google.common.io.CharSink asCharSink ( java.io.File file , java.nio.charset.Charset charset , com.google.common.io.FileWriteMode ... modes ) { return com.google.common.io.Files.asByteSink ( file , modes ) . asCharSink ( charset ) ; }
Source:
public static long $opt$getLongField ( Main m ) { return m.longField ; }

Target:
public static long $opt$noinline$getLongField ( Main m ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return m.longField ; }
Source:
private boolean hasAcknowledgedFeatures ( ) { if ( isVvm3 ( ) ) { return true ; } return ( preferences.getInt ( com.android.dialer.app.voicemail.error.VoicemailTosMessageCreator.PREF_DIALER_FEATURE_VERSION_ACKNOWLEDGED_KEY , 0 ) ) >= ( com.android.dialer.app.voicemail.error.VoicemailTosMessageCreator.CURRENT_VOICEMAIL_FEATURE_VERSION ) ; }

Target:
private boolean hasAcknowledgedFeatures ( ) { if ( isVvm3 ( ) ) { return true ; } return ( preferences.getInt ( VoicemailVersionConstants.PREF_DIALER_FEATURE_VERSION_ACKNOWLEDGED_KEY , 0 ) ) >= ( com.android.voicemail.VoicemailVersionConstants.CURRENT_VOICEMAIL_FEATURE_VERSION ) ; }
Source:
public void onComplete ( int resultCode ) { callback.onComplete ( resultCode , null ) ; }

Target:
public void onComplete ( int resultCode , java.lang.String address ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , address ) ) ; }
Source:
public java.lang.String uninstallPackage ( java.lang.String packageName ) throws com.android.ddmlib.TimeoutException , java.io.IOException { com.android.ddmlib.Device.InstallReceiver receiver = new com.android.ddmlib.Device.InstallReceiver ( ) ; executeShellCommand ( ( "pm uninstall " + packageName ) , receiver ) ; return receiver.getErrorMessage ( ) ; }

Target:
public java.lang.String uninstallPackage ( java.lang.String packageName ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException { com.android.ddmlib.Device.InstallReceiver receiver = new com.android.ddmlib.Device.InstallReceiver ( ) ; executeShellCommand ( ( "pm uninstall " + packageName ) , receiver , com.android.ddmlib.Device.INSTALL_TIMEOUT ) ; return receiver.getErrorMessage ( ) ; }
Source:
public com.android.dx.io.EncodedValue adjustEncodedArray ( com.android.dx.io.EncodedValue encodedArray ) { com.android.dx.util.ByteArrayAnnotatedOutput out = new com.android.dx.util.ByteArrayAnnotatedOutput ( 32 ) ; new com.android.dx.merge.IndexMap.EncodedValueTransformer ( encodedArray , out ) . readArray ( ) ; return new com.android.dx.io.EncodedValue ( out.toByteArray ( ) ) ; }

Target:
public com.android.dx.io.EncodedValue adjustEncodedArray ( com.android.dx.io.EncodedValue encodedArray ) { com.android.dx.util.ByteArrayAnnotatedOutput out = new com.android.dx.util.ByteArrayAnnotatedOutput ( 32 ) ; new com.android.dx.merge.IndexMap.EncodedValueTransformer ( out ) . transformArray ( new com.android.dx.io.EncodedValueReader ( encodedArray.asByteInput ( ) , ENCODED_ARRAY ) ) ; return new com.android.dx.io.EncodedValue ( out.toByteArray ( ) ) ; }
Source:
public com.google.common.collect.UnmodifiableIterator < V > iterator ( ) { return com.google.common.collect.Maps.valueIterator ( map ( ) . entrySet ( ) . iterator ( ) ) ; }

Target:
public int size ( ) { return map.size ( ) ; }
Source:
public void updateCall ( android.bluetooth.BluetoothHeadsetClientCall call ) { mCurrentCall = call ; }

Target:
public void updateCall ( android.bluetooth.BluetoothHeadsetClientCall call ) { if ( call == null ) { android.util.Log.e ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , "Updating call to a null value." ) ; return ; } mCurrentCall = call ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearPassedTestCaseCount ( ) { bitField0_ = ( bitField0_ ) & ( ~ 4096 ) ; passedTestCaseCount_ = 0 ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setBuildSystemFingerprintBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 4096 ; buildSystemFingerprint_ = value ; onChanged ( ) ; return this ; }
Source:
public java.lang.Integer gattServerCreateGattServerCallback ( ) { com.googlecode.android_scripting.facade.bluetooth.GattServerFacade.GattServerCallbackCount += 1 ; int index = com.googlecode.android_scripting.facade.bluetooth.GattServerFacade.GattServerCallbackCount ; mBluetoothGattServerCallbackList.put ( index , new com.googlecode.android_scripting.facade.bluetooth.GattServerFacade.myBluetoothGattServerCallback ( index ) ) ; return index ; }

Target:
public java.lang.Integer gattServerCreateGattServerCallback ( ) { com.googlecode.android_scripting.facade.bluetooth.GattServerFacade.sGattServerCallbackCount += 1 ; int index = com.googlecode.android_scripting.facade.bluetooth.GattServerFacade.sGattServerCallbackCount ; mBluetoothGattServerCallbackList.put ( index , new com.googlecode.android_scripting.facade.bluetooth.GattServerFacade.BtGattServerCallback ( index ) ) ; return index ; }
Source:
boolean isNumberPossibleForDesc ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneNumberDesc numberDesc ) { java.util.regex.Matcher possibleNumberPatternMatcher = regexCache.getPatternForRegex ( numberDesc.possibleNumberPattern ) . matcher ( nationalNumber ) ; return possibleNumberPatternMatcher.matches ( ) ; }

Target:
boolean isNumberPossibleForDesc ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc numberDesc ) { java.util.regex.Matcher possibleNumberPatternMatcher = regexCache.getPatternForRegex ( numberDesc.getPossibleNumberPattern ( ) ) . matcher ( nationalNumber ) ; return possibleNumberPatternMatcher.matches ( ) ; }
Source:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , int timeoutMs , int legacyType ) { sendRequestForNetwork ( request.networkCapabilities , networkCallback , timeoutMs , android.net.ConnectivityManager.REQUEST , legacyType ) ; }

Target:
private void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , int timeoutMs , int legacyType , android.os.Handler handler ) { android.net.ConnectivityManager.CallbackHandler cbHandler = new android.net.ConnectivityManager.CallbackHandler ( handler ) ; android.net.NetworkCapabilities nc = request.networkCapabilities ; sendRequestForNetwork ( nc , networkCallback , timeoutMs , android.net.ConnectivityManager.REQUEST , legacyType , cbHandler ) ; }
Source:
public void testSerializingSubclass ( ) throws java.io.IOException , java.lang.ClassNotFoundException { java.text.AttributedCharacterIterator.Attribute a = new libcore.java.text.AttributedCharacterIteratorAttributeTest.CustomAttribute ( ) ; try { libcore.util.SerializationTester.reserialize ( a ) ; fail ( ) ; } catch ( java.io.InvalidObjectException expected ) { } }

Target:
public void testSerializingSubclass ( ) throws java.io.IOException , java.lang.ClassNotFoundException { java.text.AttributedCharacterIterator.Attribute a = new libcore.java.text.AttributedCharacterIteratorAttributeTest.CustomAttribute ( ) ; try { libcore.libcore.util.SerializationTester.reserialize ( a ) ; fail ( ) ; } catch ( java.io.InvalidObjectException expected ) { } }
Source:
private static boolean canManageConference ( com.android.incallui.Call call ) { return ( call != null ) && ( call.can ( PhoneCapabilities.MANAGE_CONFERENCE ) ) ; }

Target:
private boolean shouldShowManageConference ( ) { if ( ( mPrimary ) == null ) { return false ; } return mPrimary.can ( PhoneCapabilities.MANAGE_CONFERENCE ) ; }
Source:
public void onCancel ( android.content.DialogInterface arg0 ) { if ( android.net.wifi.p2p.WifiP2pService.DBG ) logd ( ( ( getName ( ) ) + " ignore connect" ) ) ; sendMessage ( android.net.wifi.p2p.WifiP2pService.PEER_CONNECTION_USER_REJECT ) ; }

Target:
public void onDeleteGroup ( int netId ) { if ( android.net.wifi.p2p.WifiP2pService.DBG ) logd ( ( "called onDeleteGroup() netId=" + netId ) ) ; mWifiNative.removeNetwork ( netId ) ; mWifiNative.saveConfig ( ) ; sendP2pPersistentGroupsChangedBroadcast ( ) ; }
Source:
public void freeCache ( java.lang.String uuid , long freeStorageSize ) throws com.android.internal.os.InstallerConnection.InstallerException { mInstaller.execute ( "freecache" , uuid , freeStorageSize ) ; }

Target:
public void destroyAppProfiles ( java.lang.String packageName ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.destroyAppProfiles ( packageName ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }