auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testSCR2632 ( ) throws java.lang.Exception { getSettings ( ) . getRootSettings ( ) . ENABLE_JAVADOC_FORMATTING = true ; getSettings ( ) . getRootSettings ( ) . WRAP_COMMENTS = true ; getSettings ( ) . getRootSettings ( ) . RIGHT_MARGIN = 20 ; doTextTest ( ( "/**\n" + ( ( ( " * <p />\n" + " * Another paragraph of the description placed after blank line.\n" ) + " */\n" ) + "class A{}" ) ) , ( "/**\n" + ( ( ( ( ( ( ( " * <p/>\n" + " * Another paragraph\n" ) + " * of the description\n" ) + " * placed after\n" ) + " * blank line.\n" ) + " */\n" ) + "class A {\n" ) + "}" ) ) ) ; }

Target:
public void testSCR2632 ( ) throws java.lang.Exception { getSettings ( ) . getRootSettings ( ) . ENABLE_JAVADOC_FORMATTING = true ; getSettings ( ) . getRootSettings ( ) . WRAP_COMMENTS = true ; getSettings ( ) . getRootSettings ( ) . RIGHT_MARGIN = 20 ; com.intellij.openapi.roots.LanguageLevelProjectExtension.getInstance ( getProject ( ) ) . setLanguageLevel ( LanguageLevel.JDK_1_7 ) ; doTextTest ( ( "/**\n" + ( ( ( " * <p />\n" + " * Another paragraph of the description placed after blank line.\n" ) + " */\n" ) + "class A{}" ) ) , ( "/**\n" + ( ( ( ( ( ( ( " * <p/>\n" + " * Another paragraph\n" ) + " * of the description\n" ) + " * placed after\n" ) + " * blank line.\n" ) + " */\n" ) + "class A {\n" ) + "}" ) ) ) ; }
Source:
public void testSuppressInnerClasses ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/ApiCallTest4.java:9: Error: Call requires API level 14 (current min is 1): android.widget.GridLayout#<init> [NewApi]\n" + ( ( ( ( ( ( " new GridLayout(null, null, 0);\n" + " ~~~~~~~~~~\n" ) + "src/test/pkg/ApiCallTest4.java:38: Error: Call requires API level 14 (current min is 1): android.widget.GridLayout#<init> [NewApi]\n" ) + " new GridLayout(null, null, 0);\n" ) + " ~~~~~~~~~~\n" ) + "2 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "apicheck/ApiCallTest4.java.txt=>src/test/pkg/ApiCallTest4.java" , "apicheck/ApiCallTest4.class.data=>bin/classes/test/pkg/ApiCallTest4.class" , "apicheck/ApiCallTest4$1.class.data=>bin/classes/test/pkg/ApiCallTest4$1.class" , "apicheck/ApiCallTest4$InnerClass1.class.data=>bin/classes/test/pkg/ApiCallTest4$InnerClass1.class" , "apicheck/ApiCallTest4$InnerClass2.class.data=>bin/classes/test/pkg/ApiCallTest4$InnerClass2.class" , "apicheck/ApiCallTest4$InnerClass1$InnerInnerClass1.class.data=>bin/classes/test/pkg/ApiCallTest4$InnerClass1$InnerInnerClass1.class" ) ) ; }

Target:
public void testSuppressInnerClasses ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/ApiCallTest4.java:9: Error: Call requires API level 14 (current min is 1): new android.widget.GridLayout [NewApi]\n" + ( ( ( ( ( " new GridLayout(null, null, 0);\n" + " ~~~~~~~~~~\n" ) + "src/test/pkg/ApiCallTest4.java:38: Error: Call requires API level 14 (current min is 1): new android.widget.GridLayout [NewApi]\n" ) + " new GridLayout(null, null, 0);\n" ) + " ~~~~~~~~~~\n" ) + "2 errors, 0 warnings\n" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "apicheck/ApiCallTest4.java.txt=>src/test/pkg/ApiCallTest4.java" , "apicheck/ApiCallTest4.class.data=>bin/classes/test/pkg/ApiCallTest4.class" , "apicheck/ApiCallTest4$1.class.data=>bin/classes/test/pkg/ApiCallTest4$1.class" , "apicheck/ApiCallTest4$InnerClass1.class.data=>bin/classes/test/pkg/ApiCallTest4$InnerClass1.class" , "apicheck/ApiCallTest4$InnerClass2.class.data=>bin/classes/test/pkg/ApiCallTest4$InnerClass2.class" , "apicheck/ApiCallTest4$InnerClass1$InnerInnerClass1.class.data=>bin/classes/test/pkg/ApiCallTest4$InnerClass1$InnerInnerClass1.class" ) ) ; }
Source:
private static com.android.jack.dx.rop.cst.CstString createSourceFile ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { com.android.jack.dx.rop.cst.CstString sourceFile = null ; com.android.jack.ir.sourceinfo.SourceInfo sourceInfo = type.getSourceInfo ( ) ; if ( sourceInfo != ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { java.lang.String sourceFileName = sourceInfo.getFileName ( ) ; java.lang.String fileSeparator = com.android.sched.util.file.FileUtils.getFileSeparator ( ) ; int separatorPos = sourceFileName.lastIndexOf ( fileSeparator ) ; if ( separatorPos > 0 ) { sourceFileName = sourceFileName.substring ( ( separatorPos + 1 ) ) ; } sourceFile = new com.android.jack.dx.rop.cst.CstString ( sourceFileName ) ; } return sourceFile ; }

Target:
private static com.android.jack.dx.rop.cst.CstString createSourceFile ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { com.android.jack.dx.rop.cst.CstString sourceFile = null ; com.android.jack.ir.sourceinfo.SourceInfo sourceInfo = type.getSourceInfo ( ) ; if ( sourceInfo != ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { java.lang.String sourceFileName = sourceInfo.getFileName ( ) ; int separatorPos = sourceFileName.lastIndexOf ( java.io.File.separatorChar ) ; if ( separatorPos > 0 ) { sourceFileName = sourceFileName.substring ( ( separatorPos + 1 ) ) ; } sourceFile = new com.android.jack.dx.rop.cst.CstString ( sourceFileName ) ; } return sourceFile ; }
Source:
public void requestShutdown ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SHUTDOWN , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getCLIR ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_GET_CLIR , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.getClir ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "getCLIR" , e ) ; } } }
Source:
public synchronized void mute ( android.os.IBinder cb , boolean state ) { android.media.AudioService.VolumeStreamState.VolumeDeathHandler handler = getDeathHandler ( cb , state ) ; if ( handler == null ) { android.util.Log.e ( android.media.AudioService.TAG , ( "Could not get client death handler for stream: " + ( mStreamType ) ) ) ; return ; } handler.mute ( state ) ; }

Target:
public void mute ( android.os.IBinder cb , boolean state ) { synchronized ( android.media.AudioService.VolumeStreamState.class ) { android.media.AudioService.VolumeStreamState.VolumeDeathHandler handler = getDeathHandler ( cb , state ) ; if ( handler == null ) { android.util.Log.e ( android.media.AudioService.TAG , ( "Could not get client death handler for stream: " + ( mStreamType ) ) ) ; return ; } handler.mute ( state ) ; } }
Source:
private java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > createAnnotations ( org.w3c.dom.Element itemElement ) { java.util.List < org.w3c.dom.Element > children = com.android.tools.lint.ExternalAnnotationRepository.getChildren ( itemElement ) ; java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > result = com.google.common.collect.Lists.newArrayListWithExpectedSize ( children.size ( ) ) ; for ( org.w3c.dom.Element annotationElement : children ) { com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation = createAnnotation ( annotationElement ) ; result.add ( annotation ) ; } return result ; }

Target:
private java.util.List < com.intellij.psi.PsiAnnotation > createAnnotations ( org.w3c.dom.Element itemElement ) { java.util.List < org.w3c.dom.Element > children = com.android.tools.lint.ExternalAnnotationRepository.getChildren ( itemElement ) ; java.util.List < com.intellij.psi.PsiAnnotation > result = com.google.common.collect.Lists.newArrayListWithExpectedSize ( children.size ( ) ) ; for ( org.w3c.dom.Element annotationElement : children ) { com.intellij.psi.PsiAnnotation annotation = createAnnotation ( annotationElement ) ; result.add ( annotation ) ; } return result ; }
Source:
public void test_setEndIndexI ( ) { java.text.FieldPosition fpos = new java.text.FieldPosition ( 1 ) ; fpos.setEndIndex ( 3 ) ; fpos.setBeginIndex ( 2 ) ; assertEquals ( "EndIndex should have been set to 3" , 3 , fpos.getEndIndex ( ) ) ; }

Target:
public void test_setEndIndexI ( ) { java.text.FieldPosition fpos = new java.text.FieldPosition ( 1 ) ; fpos.setEndIndex ( 3 ) ; fpos.setBeginIndex ( 2 ) ; assertEquals ( "EndIndex should have been set to 3" , 3 , fpos.getEndIndex ( ) ) ; fpos.setEndIndex ( java.lang.Integer.MAX_VALUE ) ; assertEquals ( "endIndex should have been set to Integer.MAX_VALUE" , java.lang.Integer.MAX_VALUE , fpos.getEndIndex ( ) ) ; fpos.setEndIndex ( ( - 1 ) ) ; assertEquals ( "endIndex should have been set to -1" , ( - 1 ) , fpos.getEndIndex ( ) ) ; }
Source:
public com.android.jack.ir.ast.cfg.JBasicBlock mergeIntoSuccessor ( ) { com.android.jack.ir.ast.cfg.JBasicBlock successor = getPrimarySuccessor ( ) ; java.util.List < com.android.jack.ir.ast.cfg.JBasicBlockElement > elements = this . getElements ( true ) ; int count = ( elements.size ( ) ) - 1 ; for ( int i = 0 ; i < count ; i ++ ) { successor.insertElement ( i , elements.get ( i ) ) ; } this . detach ( successor ) ; return successor ; }

Target:
public com.android.jack.ir.ast.cfg.JBasicBlock mergeIntoSuccessor ( ) { com.android.jack.ir.ast.cfg.JBasicBlock successor = getPrimarySuccessor ( ) ; if ( ( successor.getPredecessorCount ( ) ) != 1 ) { throw new java.lang.AssertionError ( ) ; } java.util.List < com.android.jack.ir.ast.cfg.JBasicBlockElement > elements = this . getElements ( true ) ; int count = ( elements.size ( ) ) - 1 ; for ( int i = 0 ; i < count ; i ++ ) { successor.insertElement ( i , elements.get ( i ) ) ; } this . detach ( successor ) ; return successor ; }
Source:
public static com.google.devtools.common.options.OptionPriority getLockedPriority ( com.google.devtools.common.options.OptionPriority priority ) { return new com.google.devtools.common.options.OptionPriority ( priority.priorityCategory , priority.index , true ) ; }

Target:
public static com.google.devtools.common.options.OptionPriority getChildPriority ( com.google.devtools.common.options.OptionPriority parentPriority ) throws com.google.devtools.common.options.OptionsParsingException { if ( parentPriority.alreadyExpanded ) { throw new com.google.devtools.common.options.OptionsParsingException ( "Tried to expand option too many times" ) ; } parentPriority.alreadyExpanded = true ; return new com.google.devtools.common.options.OptionPriority ( parentPriority.priorityCategory , com.google.common.collect.ImmutableList.< java.lang.Integer > builder ( ) . addAll ( parentPriority.priorityIndices ) . add ( 0 ) . build ( ) ) ; }
Source:
public boolean onClick ( ) { android.widget.Toast.makeText ( context , java.lang.String.format ( java.util.Locale.ENGLISH , ( ( "TODO: " + ( isBlocked ? "Unblock " : "Block " ) ) + " number %s." ) , blockReportSpamDialogInfo.getNormalizedNumber ( ) ) , Toast.LENGTH_SHORT ) . show ( ) ; return true ; }

Target:
public boolean onClick ( ) { if ( ! isBlocked ) { com.android.dialer.blockreportspam.ShowBlockReportSpamDialogNotifier.notifyShowDialogToBlockNumber ( context , blockReportSpamDialogInfo ) ; } else { android.widget.Toast.makeText ( context , java.lang.String.format ( java.util.Locale.ENGLISH , "TODO: Unblock number %s." , blockReportSpamDialogInfo.getNormalizedNumber ( ) ) , Toast.LENGTH_SHORT ) . show ( ) ; } return true ; }
Source:
public void run ( ) { pair.execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { pair.listener.stopping ( from ) ; } } ) ; }

Target:
private void stopping ( final com.google.common.util.concurrent.Service.State from ) { if ( from == ( com.google.common.util.concurrent.Service.State.STARTING ) ) { com.google.common.util.concurrent.AbstractService.STOPPING_FROM_STARTING_CALLBACK.enqueueOn ( listeners ) ; } else if ( from == ( com.google.common.util.concurrent.Service.State.RUNNING ) ) { com.google.common.util.concurrent.AbstractService.STOPPING_FROM_RUNNING_CALLBACK.enqueueOn ( listeners ) ; } else { throw new java.lang.AssertionError ( ) ; } }
Source:
synchronized void nAllocationData1D ( long id , int off , int mip , int count , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData1D ( mContext , id , off , mip , count , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt , int mSize , boolean usePadding ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes , dt.mID , mSize , usePadding ) ; }
Source:
private static void splitAndAdd ( java.lang.String searchPath , boolean directoriesOnly , java.util.List < java.io.File > resultList ) { if ( searchPath == null ) { return ; } for ( java.lang.String path : searchPath.split ( ":" ) ) { try { android.system.StructStat sb = Libcore.os.stat ( path ) ; if ( ( ! directoriesOnly ) || ( S_ISDIR ( sb.st_mode ) ) ) { resultList.add ( new java.io.File ( path ) ) ; } } catch ( android.system.ErrnoException ignored ) { } } }

Target:
private static void splitAndAdd ( java.lang.String searchPath , boolean directoriesOnly , java.util.List < java.io.File > resultList ) { if ( searchPath == null ) { return ; } for ( java.lang.String path : searchPath.split ( ":" ) ) { try { android.system.StructStat sb = Libcore.os.stat ( path ) ; if ( ( ! directoriesOnly ) || ( android.system.OsConstants.S_ISDIR ( sb.st_mode ) ) ) { resultList.add ( new java.io.File ( path ) ) ; } } catch ( android.system.ErrnoException ignored ) { } } }
Source:
public void testManifestPlaceholdersMerge ( ) { com.android.builder.model.ProductFlavor productFlavor = mCustom.mergeOver ( mCustom2 ) ; java.util.Map < java.lang.String , java.lang.String > manifestPlaceholders = productFlavor.getManifestPlaceholders ( ) ; assertEquals ( 3 , manifestPlaceholders.size ( ) ) ; assertEquals ( "oneValue" , manifestPlaceholders.get ( "one" ) ) ; assertEquals ( "twoValue" , manifestPlaceholders.get ( "two" ) ) ; assertEquals ( "threeValue" , manifestPlaceholders.get ( "three" ) ) ; }

Target:
public void testResourceConfigMerge ( ) { com.android.builder.model.ProductFlavor flavor = com.android.builder.core.DefaultProductFlavor.mergeFlavors ( mCustom2 , mCustom ) ; java.util.Collection < java.lang.String > configs = flavor.getResourceConfigurations ( ) ; assertEquals ( 2 , configs.size ( ) ) ; assertTrue ( configs.contains ( "hdpi" ) ) ; assertTrue ( configs.contains ( "ldpi" ) ) ; }
Source:
public final void onSendSmsResult ( int messageRef , @ android.telephony.ims.internal.SmsImplBase.SendStatusResult int status , int reason ) throws android.os.RemoteException , java.lang.IllegalStateException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.IllegalStateException ( "Feature not ready." ) ; } mListener.onSendSmsResult ( messageRef , status , reason ) ; } }

Target:
public final void onSendSmsResult ( int token , int messageRef , @ android.telephony.ims.internal.SmsImplBase.SendStatusResult int status , int reason ) throws android.os.RemoteException , java.lang.IllegalStateException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.IllegalStateException ( "Feature not ready." ) ; } mListener.onSendSmsResult ( token , messageRef , status , reason ) ; } }
Source:
void startCreateConnection ( com.android.server.telecom.PhoneAccountRegistrar phoneAccountRegistrar ) { if ( ( mCreateConnectionProcessor ) != null ) { com.android.server.telecom.Log.w ( this , ( "mCreateConnectionProcessor in startCreateConnection is not null. This is" + ( ( " due to a race between NewOutgoingCallIntentBroadcaster and " + "phoneAccountSelected, but is harmlessly resolved by ignoring the second " ) + "invocation." ) ) ) ; return ; } mCreateConnectionProcessor = new com.android.server.telecom.CreateConnectionProcessor ( this , mRepository , this , phoneAccountRegistrar , mContext ) ; mCreateConnectionProcessor.process ( ) ; }

Target:
void startCreateConnection ( com.android.server.telecom.PhoneAccountRegistrar phoneAccountRegistrar ) { if ( ( mCreateConnectionProcessor ) != null ) { android.telecom.Log.w ( this , ( "mCreateConnectionProcessor in startCreateConnection is not null. This is" + ( ( " due to a race between NewOutgoingCallIntentBroadcaster and " + "phoneAccountSelected, but is harmlessly resolved by ignoring the second " ) + "invocation." ) ) ) ; return ; } mCreateConnectionProcessor = new com.android.server.telecom.CreateConnectionProcessor ( this , mRepository , this , phoneAccountRegistrar , mContext ) ; mCreateConnectionProcessor.process ( ) ; }
Source:
private static void waitForServiceStartAndConnect ( ) { if ( ! ( android.webkit.WebViewZygote.sStartedService ) ) { throw new android.util.AndroidRuntimeException ( ( "Tried waiting for the WebView Zygote Service to " + "start running without first starting the service." ) ) ; } java.lang.String serviceName ; synchronized ( android.webkit.WebViewZygote.sLock ) { serviceName = android.webkit.WebViewZygote.getServiceNameLocked ( ) ; } try { android.os.SystemService.waitForState ( serviceName , SystemService.State.RUNNING , 5000 ) ; } catch ( java.util.concurrent.TimeoutException e ) { android.util.Log.e ( android.webkit.WebViewZygote.LOGTAG , ( "Timed out waiting for " + serviceName ) ) ; return ; } synchronized ( android.webkit.WebViewZygote.sLock ) { android.webkit.WebViewZygote.connectToZygoteIfNeededLocked ( ) ; } }

Target:
private static void stopZygoteLocked ( ) { if ( ( android.webkit.WebViewZygote.sZygote ) != null ) { android.webkit.WebViewZygote.sZygote.close ( ) ; java.lang.Process.killProcess ( android.webkit.WebViewZygote.sZygote.getPid ( ) ) ; android.webkit.WebViewZygote.sZygote = null ; } }
Source:
public boolean find ( int start ) { if ( ( start < 0 ) || ( start > ( input.length ( ) ) ) ) { throw new java.lang.IndexOutOfBoundsException ( ( ( ( "start=" + start ) + "; length=" ) + ( input.length ( ) ) ) ) ; } synchronized ( this ) { matchFound = java.util.regex.Matcher.findImpl ( address , input , start , matchOffsets ) ; } return matchFound ; }

Target:
public boolean lookingAt ( ) { synchronized ( this ) { matchFound = java.util.regex.Matcher.lookingAtImpl ( address , matchOffsets ) ; } return matchFound ; }
Source:
public void setFieldValue ( java.lang.String key , java.lang.String value , java.lang.String prefix ) { if ( android.text.TextUtils.isEmpty ( value ) ) { mFields.put ( key , android.net.wifi.WifiEnterpriseConfig.EMPTY_VALUE ) ; } else { mFields.put ( key , convertToQuotedString ( ( prefix + value ) ) ) ; } }

Target:
private void setFieldValue ( java.lang.String key , java.lang.String value , java.lang.String prefix ) { if ( android.text.TextUtils.isEmpty ( value ) ) { mFields.put ( key , android.net.wifi.WifiEnterpriseConfig.EMPTY_VALUE ) ; } else { java.lang.String valueToSet ; if ( ! ( android.net.wifi.WifiEnterpriseConfig.UNQUOTED_KEYS.contains ( key ) ) ) { valueToSet = convertToQuotedString ( ( prefix + value ) ) ; } else { valueToSet = prefix + value ; } mFields.put ( key , valueToSet ) ; } }
Source:
public void testSetupDriverForClientModeError ( ) { com.android.server.wifi.WificondControl wificondControl = org.mockito.Mockito.mock ( com.android.server.wifi.WificondControl.class ) ; android.net.wifi.IWificond wificond = org.mockito.Mockito.mock ( android.net.wifi.IWificond.class ) ; org.mockito.Mockito.when ( wificondControl.setupDriverForClientMode ( ) ) . thenReturn ( null ) ; mWifiNative.setWificondControl ( wificondControl ) ; android.net.wifi.IClientInterface returnedClientInterface = mWifiNative.setupForClientMode ( ) ; org.junit.Assert.assertEquals ( null , returnedClientInterface ) ; org.mockito.Mockito.verify ( mWifiNative ) . startHal ( org.mockito.Mockito.eq ( true ) ) ; org.mockito.Mockito.verify ( wificondControl ) . setupDriverForClientMode ( ) ; }

Target:
public void testSetupDriverForClientModeError ( ) { org.mockito.Mockito.when ( mWificondControl.setupDriverForClientMode ( ) ) . thenReturn ( null ) ; android.net.wifi.IClientInterface returnedClientInterface = mWifiNative.setupForClientMode ( ) ; org.junit.Assert.assertEquals ( null , returnedClientInterface ) ; org.mockito.Mockito.verify ( mWifiVendorHal ) . startVendorHal ( org.mockito.Mockito.eq ( true ) ) ; org.mockito.Mockito.verify ( mWificondControl ) . setupDriverForClientMode ( ) ; }
Source:
public void visitClassElementValue ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Annotation annotation , proguard.classfile.visitor.ClassElementValue classElementValue ) { println ( ( ( ( ( ( ( visitorInfo ( classElementValue ) ) + " Class element value [" ) + ( ( classElementValue.u2elementNameIndex ) == 0 ? "(default)" : clazz.getString ( classElementValue.u2elementNameIndex ) ) ) + ", " ) + ( clazz.getString ( classElementValue.u2classInfoIndex ) ) ) + "]" ) ) ; }

Target:
public void visitClassElementValue ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Annotation annotation , proguard.classfile.visitor.ClassElementValue classElementValue ) { println ( ( ( ( ( ( ( visitorInfo ( classElementValue ) ) + " Class element value [" ) + ( ( classElementValue.u2elementNameIndex ) == 0 ? "(default)" : classElementValue.getMethodName ( clazz ) ) ) + ", " ) + ( classElementValue.getClassName ( clazz ) ) ) + "]" ) ) ; }
Source:
void removeExtras ( java.lang.String callId , java.util.List < java.lang.String > keys ) { android.telecom.Log.v ( this , "removeExtras: %s %s" , callId , keys ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.removeExtras ( callId , keys ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void removeExtras ( java.lang.String callId , java.util.List < java.lang.String > keys ) { android.telecom.Log.v ( this , "removeExtras: %s %s" , callId , keys ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.removeExtras ( callId , keys , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public long getPhotoId ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return java.lang.Math.max ( com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getPhotoId ( ) , 0 ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return java.lang.Math.max ( com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getPhotoId ( ) , 0 ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return 0 ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public long getPhotoId ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return java.lang.Math.max ( com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getPhotoId ( ) , 0 ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return java.lang.Math.max ( com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getPhotoId ( ) , 0 ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PHONE_NUMBER_CACHE : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return 0 ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public void run ( ) { try { java.io.File output = java.io.File.createTempFile ( "predex" , ".jar" ) ; output.deleteOnExit ( ) ; outputFiles [ ii ] = output ; com.android.builder.internal.compiler.PreDexCache.getCache ( ) . preDexLibrary ( input , output , false , dexOptions , mBuildToolInfo , false , clr ) ; } catch ( java.lang.Exception ignored ) { } }

Target:
public void testSinglePreDexLibrary ( ) throws com.android.ide.common.process.ProcessException , java.io.IOException , java.lang.InterruptedException { java.lang.String content = "Some Content" ; java.io.File input = com.android.builder.internal.compiler.PreDexCacheTest.createInputFile ( content ) ; java.io.File output = java.io.File.createTempFile ( "predex" , ".jar" ) ; output.deleteOnExit ( ) ; com.android.builder.internal.compiler.PreDexCache.getCache ( ) . preDexLibrary ( input , output , false , new com.android.builder.internal.compiler.PreDexCacheTest.FakeDexOptions ( ) , mBuildToolInfo , false , new com.android.builder.internal.compiler.PreDexCacheTest.FakeJavaProcessExecutor ( ) , new com.android.builder.internal.compiler.PreDexCacheTest.FakeProcessOutputHandler ( ) ) ; com.android.builder.internal.compiler.PreDexCacheTest.checkOutputFile ( content , output ) ; }
Source:
public void shutdown ( ) { for ( android.content.BroadcastReceiver receiver : listeningDevices.values ( ) ) { mService.unregisterReceiver ( receiver ) ; } listeningDevices.clear ( ) ; mService.unregisterReceiver ( mPairingHelper ) ; }

Target:
public void shutdown ( ) { for ( android.content.BroadcastReceiver receiver : listeningDevices.values ( ) ) { try { mService.unregisterReceiver ( receiver ) ; } catch ( java.lang.IllegalArgumentException ex ) { com.googlecode.android_scripting.Log.e ( ( "Failed to unregister " + ex ) ) ; } } listeningDevices.clear ( ) ; mService.unregisterReceiver ( mPairingHelper ) ; }
Source:
private com.android.ims.internal.ImsCallSession createCallSession ( int serviceId , com.android.ims.ImsCallProfile profile ) throws com.android.ims.ImsException { try { return new com.android.ims.internal.ImsCallSession ( mImsServiceProxy.createCallSession ( serviceId , profile , null ) ) ; } catch ( android.os.RemoteException e ) { return null ; } }

Target:
private com.android.ims.internal.ImsCallSession createCallSession ( int serviceId , com.android.ims.ImsCallProfile profile ) throws com.android.ims.ImsException { try { return new com.android.ims.internal.ImsCallSession ( mImsServiceProxy.createCallSession ( serviceId , profile , null ) ) ; } catch ( android.os.RemoteException e ) { android.telephony.Rlog.w ( com.android.ims.ImsManager.TAG , ( "CreateCallSession: Error, remote exception: " + ( e.getMessage ( ) ) ) ) ; throw new com.android.ims.ImsException ( "createCallSession()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }
Source:
java.lang.String [ ] load ( android.icu.impl.ICUResourceBundle zoneStrings , java.lang.String key ) { if ( ( ( zoneStrings == null ) || ( key == null ) ) || ( ( key.length ( ) ) == 0 ) ) { return null ; } try { zoneStrings.getAllTableItemsWithFallback ( key , this ) ; } catch ( java.util.MissingResourceException e ) { return null ; } return getNames ( ) ; }

Target:
void loadNames ( android.icu.impl.ICUResourceBundle zoneStrings , java.lang.String key ) { assert zoneStrings != null ; assert key != null ; assert ( key.length ( ) ) > 0 ; names = null ; try { zoneStrings.getAllItemsWithFallback ( key , this ) ; } catch ( java.util.MissingResourceException e ) { } }
Source:
public void setPaddingRelative ( int start , int top , int end , int bottom ) { resetResolvedPaddingInternal ( ) ; mUserPaddingStart = start ; mUserPaddingEnd = end ; mLeftPaddingDefined = true ; mRightPaddingDefined = true ; switch ( getLayoutDirection ( ) ) { case android.view.View.LAYOUT_DIRECTION_RTL : mUserPaddingLeftInitial = end ; mUserPaddingRightInitial = start ; internalSetPadding ( end , top , start , bottom ) ; break ; case android.view.View.LAYOUT_DIRECTION_LTR : default : mUserPaddingLeftInitial = start ; mUserPaddingRightInitial = end ; internalSetPadding ( start , top , end , bottom ) ; } }

Target:
public void setPaddingRelative ( int start , int top , int end , int bottom ) { resetResolvedPadding ( ) ; mUserPaddingStart = start ; mUserPaddingEnd = end ; mLeftPaddingDefined = true ; mRightPaddingDefined = true ; switch ( getLayoutDirection ( ) ) { case android.view.View.LAYOUT_DIRECTION_RTL : mUserPaddingLeftInitial = end ; mUserPaddingRightInitial = start ; internalSetPadding ( end , top , start , bottom ) ; break ; case android.view.View.LAYOUT_DIRECTION_LTR : default : mUserPaddingLeftInitial = start ; mUserPaddingRightInitial = end ; internalSetPadding ( start , top , end , bottom ) ; } }
Source:
private android.graphics.Bitmap getBadgedWifiBitmap ( int badgeEnum , int rssi ) { android.graphics.drawable.LayerDrawable layerDrawable = new android.graphics.drawable.LayerDrawable ( new android.graphics.drawable.Drawable [ ] { mContext.getDrawable ( com.android.networkrecommendation.WifiNotificationHelper.WIFI_PIE_FOR_BADGING [ rssi ] ) , mContext.getDrawable ( getWifiBadgeResourceForEnum ( badgeEnum ) ) } ) ; layerDrawable.setTint ( mContext.getColor ( R.color.color_tint ) ) ; android.content.res.Resources resources = mContext.getResources ( ) ; return com.android.internal.util.ImageUtils.buildScaledBitmap ( layerDrawable , resources.getDimensionPixelSize ( android.R.dimen.notification_large_icon_width ) , resources.getDimensionPixelSize ( android.R.dimen.notification_large_icon_height ) ) ; }

Target:
private android.graphics.Bitmap getBadgedWifiBitmap ( int badgeEnum , int rssi ) { android.graphics.drawable.LayerDrawable layerDrawable = new android.graphics.drawable.LayerDrawable ( new android.graphics.drawable.Drawable [ ] { mContext.getDrawable ( com.android.networkrecommendation.WifiNotificationHelper.WIFI_PIE_FOR_BADGING [ rssi ] ) , mContext.getDrawable ( getWifiBadgeResourceForEnum ( badgeEnum ) ) } ) ; layerDrawable.setTint ( mContext.getColor ( R.color.color_tint ) ) ; android.content.res.Resources resources = mContext.getResources ( ) ; return com.android.networkrecommendation.ImageUtils.buildScaledBitmap ( layerDrawable , resources.getDimensionPixelSize ( android.R.dimen.notification_large_icon_width ) , resources.getDimensionPixelSize ( android.R.dimen.notification_large_icon_height ) ) ; }
Source:
public boolean canSupportCarrierVideoCall ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getCanSupportCarrierVideoCall ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return false ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public boolean canSupportCarrierVideoCall ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getCanSupportCarrierVideoCall ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PHONE_NUMBER_CACHE : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return false ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public synchronized com.android.internal.net.LegacyVpnInfo getLegacyVpnInfo ( ) { enforceControlPermission ( ) ; if ( ( mLegacyVpnRunner ) == null ) return null ; final com.android.internal.net.LegacyVpnInfo info = new com.android.internal.net.LegacyVpnInfo ( ) ; info.key = mConfig.user ; info.state = com.android.internal.net.LegacyVpnInfo.stateFromNetworkInfo ( mNetworkInfo ) ; if ( mNetworkInfo.isConnected ( ) ) { info.intent = mStatusIntent ; } return info ; }

Target:
public synchronized com.android.internal.net.LegacyVpnInfo getLegacyVpnInfo ( ) { enforceControlPermission ( ) ; return getLegacyVpnInfoPrivileged ( ) ; }
Source:
public boolean setDfsFlag ( boolean dfsOn ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.setDfsFlagNative ( com.android.server.wifi.WifiNative.sWlan0Index , dfsOn ) ; } else { return false ; } } }

Target:
public boolean setDfsFlag ( boolean dfsOn ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.setDfsFlag ( dfsOn ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.setDfsFlagNative ( com.android.server.wifi.WifiNative.sWlan0Index , dfsOn ) ; } else { return false ; } } } }
Source:
public static void main ( java.lang.String [ ] args ) { if ( ( args.length ) == 0 ) { args = new java.lang.String [ ] { "com.android.ahat.DiffFieldsTest" , "com.android.ahat.DiffTest" , "com.android.ahat.InstanceTest" , "com.android.ahat.NativeAllocationTest" , "com.android.ahat.ObjectHandlerTest" , "com.android.ahat.OverviewHandlerTest" , "com.android.ahat.PerformanceTest" , "com.android.ahat.RootedHandlerTest" , "com.android.ahat.QueryTest" , "com.android.ahat.SiteHandlerTest" } ; } org.junit.runner.JUnitCore.main ( args ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { if ( ( args.length ) == 0 ) { args = new java.lang.String [ ] { "com.android.ahat.DiffFieldsTest" , "com.android.ahat.DiffTest" , "com.android.ahat.DominatorsTest" , "com.android.ahat.InstanceTest" , "com.android.ahat.NativeAllocationTest" , "com.android.ahat.ObjectHandlerTest" , "com.android.ahat.OverviewHandlerTest" , "com.android.ahat.PerformanceTest" , "com.android.ahat.RootedHandlerTest" , "com.android.ahat.QueryTest" , "com.android.ahat.SiteHandlerTest" } ; } org.junit.runner.JUnitCore.main ( args ) ; }
Source:
public void flingScroll ( final int vx , final int vy ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { flingScroll ( vx , vy ) ; } } ) ; return ; } mAwContents.flingScroll ( vx , vy ) ; }

Target:
public void removeJavascriptInterface ( final java.lang.String interfaceName ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { removeJavascriptInterface ( interfaceName ) ; } } ) ; return ; } mAwContents.removeJavascriptInterface ( interfaceName ) ; }
Source:
public android.bluetooth.le.PeriodicAdvertisingParameters.Builder setInterval ( int interval ) { if ( ( interval < ( android.bluetooth.le.PeriodicAdvertisingParameters.INTERVAL_MIN ) ) || ( interval > ( android.bluetooth.le.PeriodicAdvertisingParameters.INTERVAL_MAX ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( ( "Invalid interval (must be " + ( android.bluetooth.le.PeriodicAdvertisingParameters.INTERVAL_MIN ) ) + "-" ) + ( android.bluetooth.le.PeriodicAdvertisingParameters.INTERVAL_MAX ) ) + ")" ) ) ; } this . interval = interval ; return this ; }

Target:
public android.bluetooth.le.PeriodicAdvertisingParameters.Builder setInterval ( int interval ) { if ( ( interval < ( android.bluetooth.le.PeriodicAdvertisingParameters.INTERVAL_MIN ) ) || ( interval > ( android.bluetooth.le.PeriodicAdvertisingParameters.INTERVAL_MAX ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( ( "Invalid interval (must be " + ( android.bluetooth.le.PeriodicAdvertisingParameters.INTERVAL_MIN ) ) + "-" ) + ( android.bluetooth.le.PeriodicAdvertisingParameters.INTERVAL_MAX ) ) + ")" ) ) ; } mInterval = interval ; return this ; }
Source:
public void onMessageSent ( int messageId ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "messageId" , messageId ) ; synchronized ( mLock ) { java.lang.Long startTime = mMessageStartTime.get ( messageId ) ; if ( startTime != null ) { mResults.putLong ( "latencyMs" , ( ( java.lang.System.currentTimeMillis ( ) ) - ( startTime.longValue ( ) ) ) ) ; mMessageStartTime.remove ( messageId ) ; } } mEventFacade.postEvent ( "WifiAwareSessionOnMessageSent" , mResults ) ; }

Target:
public void onMessageSendSucceeded ( int messageId ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "messageId" , messageId ) ; synchronized ( mLock ) { java.lang.Long startTime = mMessageStartTime.get ( messageId ) ; if ( startTime != null ) { mResults.putLong ( "latencyMs" , ( ( java.lang.System.currentTimeMillis ( ) ) - ( startTime.longValue ( ) ) ) ) ; mMessageStartTime.remove ( messageId ) ; } } mEventFacade.postEvent ( "WifiAwareSessionOnMessageSent" , mResults ) ; }
Source:
public void removeRights ( java.lang.String path ) { if ( ( null == path ) || ( path.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Given path should be non null" ) ; } else if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } _removeRights ( mUniqueId , path ) ; }

Target:
public java.lang.String getOriginalMimeType ( java.lang.String path ) { if ( ( null == path ) || ( path.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Given path should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getOriginalMimeType ( mUniqueId , path ) ; }
Source:
public void adjustVolume ( int direction , int flags , java.lang.String callingPackage ) { adjustSuggestedStreamVolume ( direction , AudioManager.USE_DEFAULT_STREAM_TYPE , flags , callingPackage ) ; }

Target:
private boolean hasRmtSbmxFullVolDeathHandlerFor ( android.os.IBinder cb ) { java.util.Iterator < android.media.AudioService.RmtSbmxFullVolDeathHandler > it = mRmtSbmxFullVolDeathHandlers.iterator ( ) ; while ( it.hasNext ( ) ) { if ( it.next ( ) . isHandlerFor ( cb ) ) { return true ; } } return false ; }
Source:
public boolean switchToNextInputMethod ( android.os.IBinder imeToken , boolean onlyCurrentIme ) { synchronized ( mH ) { try { return mService.switchToNextInputMethod ( imeToken , onlyCurrentIme ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.view.inputmethod.InputMethodManager.TAG , ( "IME died: " + ( mCurId ) ) , e ) ; return false ; } } }

Target:
public boolean switchToNextInputMethod ( android.os.IBinder imeToken , boolean onlyCurrentIme ) { synchronized ( mH ) { try { return mService.switchToNextInputMethod ( imeToken , onlyCurrentIme ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }
Source:
public final com.android.server.am.ContentProviderHolder getContentProvider ( android.app.IApplicationThread caller , java.lang.String name , boolean stable ) { enforceNotIsolatedCaller ( "getContentProvider" ) ; if ( caller == null ) { java.lang.String msg = "null IApplicationThread when getting content provider " + name ; android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , msg ) ; throw new java.lang.SecurityException ( msg ) ; } return getContentProviderImpl ( caller , name , null , stable ) ; }

Target:
public final com.android.server.am.ContentProviderHolder getContentProvider ( android.app.IApplicationThread caller , java.lang.String name , int userId , boolean stable ) { enforceNotIsolatedCaller ( "getContentProvider" ) ; if ( caller == null ) { java.lang.String msg = "null IApplicationThread when getting content provider " + name ; android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , msg ) ; throw new java.lang.SecurityException ( msg ) ; } userId = handleIncomingUser ( android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , userId , false , true , "getContentProvider" , null ) ; return getContentProviderImpl ( caller , name , null , stable , userId ) ; }
Source:
public void testNotifyPackageUpdated ( ) { notifyDexLoad ( mFooUser0 , mBarUser0.getBaseAndSplitDexPaths ( ) , mUser0 ) ; com.android.server.pm.dex.PackageDexUsage.PackageUseInfo pui = getPackageUseInfo ( mBarUser0 ) ; org.junit.Assert.assertTrue ( pui.isUsedByOtherApps ( ) ) ; org.junit.Assert.assertTrue ( pui.getDexUseInfoMap ( ) . isEmpty ( ) ) ; mDexManager.notifyPackageUpdated ( mBarUser0.getPackageName ( ) , mBarUser0.mPackageInfo.applicationInfo.sourceDir , mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs ) ; pui = getPackageUseInfo ( mBarUser0 ) ; org.junit.Assert.assertFalse ( pui.isUsedByOtherApps ( ) ) ; }

Target:
public void testNotifyPackageUpdated ( ) { notifyDexLoad ( mFooUser0 , mBarUser0.getBaseAndSplitDexPaths ( ) , mUser0 ) ; com.android.server.pm.dex.PackageDexUsage.PackageUseInfo pui = getPackageUseInfo ( mBarUser0 ) ; assertIsUsedByOtherApps ( mBarUser0 , pui , true ) ; org.junit.Assert.assertTrue ( pui.getDexUseInfoMap ( ) . isEmpty ( ) ) ; mDexManager.notifyPackageUpdated ( mBarUser0.getPackageName ( ) , mBarUser0.mPackageInfo.applicationInfo.sourceDir , mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs ) ; pui = getPackageUseInfo ( mBarUser0 ) ; assertIsUsedByOtherApps ( mBarUser0 , pui , false ) ; }
Source:
protected static void addProperties ( @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.lang.String > properties , @ javax.annotation.Nonnull java.util.List < java.lang.String > args ) { for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : properties.entrySet ( ) ) { args.add ( "-D" ) ; args.add ( ( ( ( entry.getKey ( ) ) + "=" ) + ( entry.getValue ( ) ) ) ) ; } }

Target:
protected static void addProperties ( @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.lang.String > properties , @ javax.annotation.Nonnull java.util.List < java.lang.String > commandLine ) { for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : properties.entrySet ( ) ) { commandLine.add ( "-D" ) ; commandLine.add ( ( ( ( entry.getKey ( ) ) + "=" ) + ( entry.getValue ( ) ) ) ) ; } }
Source:
public boolean hasChanged ( @ com.android.annotations.NonNull java.util.EnumSet < com.android.sdklib.repository.descriptors.PkgType > filters ) { for ( com.android.sdklib.repository.descriptors.PkgType filter : filters ) { for ( com.android.sdklib.repository.local.LocalSdk.DirInfo dirInfo : mVisitedDirs.get ( filter ) ) { if ( dirInfo.hasChanged ( ) ) { return true ; } } } return false ; }

Target:
public boolean hasChanged ( @ com.android.annotations.NonNull java.util.EnumSet < com.android.sdklib.repository.descriptors.PkgType > filters ) { for ( com.android.sdklib.repository.descriptors.PkgType filter : filters ) { for ( com.android.sdklib.repository.local.LocalDirInfo dirInfo : mVisitedDirs.get ( filter ) ) { if ( dirInfo.hasChanged ( ) ) { return true ; } } } return false ; }
Source:
private static java.util.List < org.jetbrains.plugins.github.api.GithubRepo > doGetAvailableRepos ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.api.GithubAuthData auth , @ org.jetbrains.annotations.Nullable java.lang.String user ) throws java.io.IOException { java.lang.String path = ( user == null ) ? "/user/repos" : ( ( "/users/" + user ) + "/repos?" ) + ( org.jetbrains.plugins.github.api.GithubApiUtil.PER_PAGE ) ; org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubRepo > request = new org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubRepo > ( path , org.jetbrains.plugins.github.api.GithubRepo.class , org.jetbrains.plugins.github.api.GithubRepoRaw [ ] . class ) ; return request.getAll ( auth ) ; }

Target:
public static java.util.List < org.jetbrains.plugins.github.api.GithubRepo > getUserRepos ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.util.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user ) throws java.io.IOException { java.lang.String path = ( ( "/users/" + user ) + "/repos?" ) + ( org.jetbrains.plugins.github.api.GithubApiUtil.PER_PAGE ) ; org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubRepo > request = new org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubRepo > ( path , org.jetbrains.plugins.github.api.GithubRepo.class , org.jetbrains.plugins.github.api.GithubRepoRaw [ ] . class ) ; return request.getAll ( auth ) ; }
Source:
public synchronized boolean onConnect ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothSocket socket ) { boolean isValid = mMapService.onConnect ( device , this ) ; if ( isValid ) { mRemoteDevice = device ; mConnSocket = socket ; } return isValid ; }

Target:
public synchronized boolean onConnect ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothSocket socket ) { if ( ! ( mAcceptNewConnections ) ) { return false ; } boolean isValid = mMapService.onConnect ( device , this ) ; if ( isValid ) { mRemoteDevice = device ; mConnSocket = socket ; mAcceptNewConnections = false ; } return isValid ; }
Source:
private static java.lang.invoke.CallSite linkerMethod ( ) throws java.lang.Throwable { java.lang.invoke.MethodHandle mh_add = java.lang.invoke.MethodHandles.lookup ( ) . findStatic ( com.android.jack.java7.invokecustom.test003.Tests.class , "add" , java.lang.invoke.MethodType.methodType ( int . class , int . class , int . class , int . class , int . class , int . class , int . class ) ) ; return new java.lang.invoke.ConstantCallSite ( mh_add ) ; }

Target:
private static java.lang.invoke.CallSite linkerMethod ( java.lang.invoke.MethodHandles.Lookup caller , java.lang.String name , java.lang.invoke.MethodType methodType ) throws java.lang.Throwable { java.lang.invoke.MethodHandle mh_add = java.lang.invoke.MethodHandles.lookup ( ) . findStatic ( com.android.jack.java7.invokecustom.test003.Tests.class , name , methodType ) ; return new java.lang.invoke.ConstantCallSite ( mh_add ) ; }