auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void addGeneratedSourceFolders ( @ com.android.annotations.NonNull org.gradle.api.Task task , @ com.android.annotations.NonNull java.io.File ... generatedSourceFolders ) { if ( ( extraGeneratedSourceFolders ) == null ) { extraGeneratedSourceFolders = com.google.common.collect.Lists.newArrayList ( ) ; } javaCompileTask.dependsOn ( task ) ; for ( java.io.File f : generatedSourceFolders ) { extraGeneratedSourceFolders.add ( f ) ; javaCompileTask.source ( f ) ; } }

Target:
public void registerJavaGeneratingTask ( @ com.android.annotations.NonNull org.gradle.api.Task task , @ com.android.annotations.NonNull java.io.File ... generatedSourceFolders ) { if ( ( extraGeneratedSourceFolders ) == null ) { extraGeneratedSourceFolders = com.google.common.collect.Lists.newArrayList ( ) ; } javaCompileTask.dependsOn ( task ) ; for ( java.io.File f : generatedSourceFolders ) { javaCompileTask.source ( f ) ; } addJavaSourceFoldersToModel ( generatedSourceFolders ) ; }
Source:
private static org.eclipse.swt.graphics.RGB resolveThemeColor ( com.android.ide.common.resources.ResourceResolver resources , java.lang.String resourceName ) { com.android.ide.common.rendering.api.ResourceValue textColor = resources.findItemInTheme ( resourceName ) ; textColor = resources.resolveResValue ( textColor ) ; if ( textColor == null ) { return null ; } java.lang.String value = textColor.getValue ( ) ; while ( value != null ) { if ( value.startsWith ( "#" ) ) { try { int rgba = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.getColor ( value ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.intToRgb ( rgba ) ; } catch ( java.lang.NumberFormatException nfe ) { } return null ; } if ( value.startsWith ( "@" ) ) { boolean isFramework = textColor.isFramework ( ) ; textColor = resources.findResValue ( value , isFramework ) ; if ( textColor != null ) { value = textColor.getValue ( ) ; } else { break ; } } else { java.io.File file = new java.io.File ( value ) ; if ( ( file.exists ( ) ) && ( file.getName ( ) . endsWith ( com.android.ide.eclipse.adt.AdtConstants.DOT_XML ) ) ) { javax.xml.parsers.DocumentBuilderFactory factory = javax.xml.parsers.DocumentBuilderFactory.newInstance ( ) ; java.io.BufferedInputStream bis = null ; try { bis = new java.io.BufferedInputStream ( new java.io.FileInputStream ( file ) ) ; org.xml.sax.InputSource is = new org.xml.sax.InputSource ( bis ) ; factory.setNamespaceAware ( true ) ; factory.setValidating ( false ) ; javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder ( ) ; org.w3c.dom.Document document = builder.parse ( is ) ; org.w3c.dom.NodeList items = document.getElementsByTagName ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.PreviewIconFactory.TAG_ITEM ) ; value = com.android.ide.eclipse.adt.internal.editors.layout.gle2.PreviewIconFactory.findColorValue ( items ) ; continue ; } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Failed parsing color file %1$s" , file.getName ( ) ) ; } finally { if ( bis != null ) { try { bis.close ( ) ; } catch ( java.io.IOException e ) { } } } } return null ; } } return null ; }

Target:
private static org.eclipse.swt.graphics.RGB resolveThemeColor ( com.android.ide.common.resources.ResourceResolver resources , java.lang.String resourceName ) { com.android.ide.common.rendering.api.ResourceValue textColor = resources.findItemInTheme ( resourceName ) ; return com.android.ide.eclipse.adt.internal.resources.ResourceHelper.resolveColor ( resources , textColor ) ; }
Source:
public int acquireDrmInfo ( android.drm.DrmInfoRequest drmInfoRequest ) { if ( ( null == drmInfoRequest ) || ( ! ( drmInfoRequest.isValid ( ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Given drmInfoRequest is invalid/null" ) ; } int result = android.drm.DrmManagerClient.ERROR_UNKNOWN ; if ( null != ( mEventHandler ) ) { android.os.Message msg = mEventHandler.obtainMessage ( android.drm.DrmManagerClient.ACTION_ACQUIRE_DRM_INFO , drmInfoRequest ) ; result = ( mEventHandler.sendMessage ( msg ) ) ? android.drm.DrmManagerClient.ERROR_NONE : result ; } return result ; }

Target:
public android.content.ContentValues getMetadata ( android.net.Uri uri ) { if ( ( null == uri ) || ( ( android.net.Uri.EMPTY ) == uri ) ) { throw new java.lang.IllegalArgumentException ( "Uri should be non null" ) ; } return getMetadata ( convertUriToPath ( uri ) ) ; }
Source:
public java.util.List < java.lang.String > getKeepUninstalledPackages ( @ android.annotation.NonNull android.content.ComponentName admin ) { throwIfParentInstance ( "getKeepUninstalledPackages" ) ; if ( ( mService ) != null ) { try { return mService.getKeepUninstalledPackages ( admin ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return null ; }

Target:
public void setApplicationRestrictions ( @ android.annotation.Nullable android.content.ComponentName admin , java.lang.String packageName , android.os.Bundle settings ) { throwIfParentInstance ( "setApplicationRestrictions" ) ; if ( ( mService ) != null ) { try { mService.setApplicationRestrictions ( admin , mContext.getPackageName ( ) , packageName , settings ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }
Source:
public void execute ( com.android.build.gradle.model.AndroidBinary androidBinary ) { com.android.build.gradle.model.DefaultAndroidBinary binary = ( ( com.android.build.gradle.model.DefaultAndroidBinary ) ( androidBinary ) ) ; binary.setVariantData ( variantManager.createVariantData ( binary.getBuildType ( ) , binary.getProductFlavors ( ) ) ) ; variantManager.getVariantDataList ( ) . add ( binary.getVariantData ( ) ) ; }

Target:
public void execute ( com.android.build.gradle.model.AndroidBinary androidBinary ) { com.android.build.gradle.model.DefaultAndroidBinary binary = ( ( com.android.build.gradle.model.DefaultAndroidBinary ) ( androidBinary ) ) ; java.util.List < com.android.build.gradle.managed.adaptor.ProductFlavorAdaptor > adaptedFlavors = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.android.build.gradle.managed.ProductFlavor flavor : binary.getProductFlavors ( ) ) { adaptedFlavors.add ( new com.android.build.gradle.managed.adaptor.ProductFlavorAdaptor ( flavor ) ) ; } binary.setVariantData ( variantManager.createVariantData ( new com.android.build.gradle.managed.adaptor.BuildTypeAdaptor ( binary.getBuildType ( ) ) , adaptedFlavors ) ) ; variantManager.getVariantDataList ( ) . add ( binary.getVariantData ( ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { boolean secondary = false ; if ( ( ( args.length ) > 0 ) && ( args [ ( ( args.length ) - 1 ) ] . equals ( "--secondary" ) ) ) { secondary = true ; } new Main ( secondary ) . run ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 0 ] ) ; boolean secondary = false ; if ( ( ( args.length ) > 0 ) && ( args [ ( ( args.length ) - 1 ) ] . equals ( "--secondary" ) ) ) { secondary = true ; } new Main ( secondary ) . run ( ) ; }
Source:
private com.android.jack.ir.ast.JMethod createProbesArrayInitMethod ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface declaredType , @ javax.annotation.Nonnegative int probeCount , @ javax.annotation.Nonnull com.android.jack.transformations.request.TransformationRequest transformationRequest , @ javax.annotation.Nonnull com.android.jack.ir.ast.JField coverageDataField , long classId ) { com.android.jack.ir.sourceinfo.SourceInfo sourceInfo = declaredType.getSourceInfo ( ) ; com.android.jack.ir.ast.JType returnType = com.android.jack.coverage.CodeCoverageTransformer.getCoverageDataType ( ) ; com.android.jack.ir.ast.JMethodId methodId = new com.android.jack.ir.ast.JMethodId ( new com.android.jack.ir.ast.JMethodIdWide ( com.android.jack.coverage.CodeCoverageTransformer.COVERAGE_DATA_INIT_METHOD_NAME , com.android.jack.ir.ast.MethodKind.STATIC ) , returnType ) ; com.android.jack.ir.ast.JMethod coverageInitMethod = new com.android.jack.ir.ast.JMethod ( sourceInfo , methodId , declaredType , com.android.jack.coverage.CodeCoverageTransformer.COVERAGE_DATA_INIT_METHOD_MODIFIERS ) ; fillCoverageInitMethodBody ( coverageInitMethod , declaredType , probeCount , transformationRequest , coverageDataField , classId ) ; return coverageInitMethod ; }

Target:
private com.android.jack.ir.ast.JMethod createProbesArrayInitMethod ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface declaredType , @ javax.annotation.Nonnegative int probeCount , @ javax.annotation.Nonnull com.android.jack.transformations.request.TransformationRequest transformationRequest , @ javax.annotation.Nonnull com.android.jack.ir.ast.JField coverageDataField , long classId ) { com.android.jack.ir.ast.JType returnType = com.android.jack.coverage.CodeCoverageTransformer.getCoverageDataType ( ) ; com.android.jack.ir.ast.JMethodId methodId = new com.android.jack.ir.ast.JMethodId ( new com.android.jack.ir.ast.JMethodIdWide ( com.android.jack.coverage.CodeCoverageTransformer.COVERAGE_DATA_INIT_METHOD_NAME , com.android.jack.ir.ast.MethodKind.STATIC ) , returnType ) ; com.android.jack.ir.ast.JMethod coverageInitMethod = new com.android.jack.ir.ast.JMethod ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , methodId , declaredType , com.android.jack.coverage.CodeCoverageTransformer.COVERAGE_DATA_INIT_METHOD_MODIFIERS ) ; fillCoverageInitMethodBody ( coverageInitMethod , declaredType , probeCount , transformationRequest , coverageDataField , classId ) ; return coverageInitMethod ; }
Source:
public boolean isConnected ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "isConnected " + device ) ) ; com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) return false ; return ( ( service.getState ( ) ) == ( android.bluetooth.BluetoothPbap.STATE_CONNECTED ) ) && ( service.getRemoteDevice ( ) . equals ( device ) ) ; }

Target:
void disconnect ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; synchronized ( this ) { if ( ( mState ) == ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) { if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } closeConnectionSocket ( ) ; setState ( BluetoothProfile.STATE_DISCONNECTED , BluetoothPbap.RESULT_CANCELED ) ; } } }
Source:
public com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config getUidTagConfig ( ) { return new com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config ( getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_TAG_BUCKET_DURATION , ( 2 * ( android.text.format.DateUtils.HOUR_IN_MILLIS ) ) ) , getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_TAG_ROTATE_AGE , ( 5 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) , getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_TAG_DELETE_AGE , ( 15 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) ) ; }

Target:
public boolean getReportXtOverDev ( ) { return getGlobalBoolean ( android.provider.Settings.Global.NETSTATS_REPORT_XT_OVER_DEV , true ) ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , float [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 4 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize , Element.DataType.FLOAT_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFrom ( int [ ] d ) { validateIsInt32 ( ) ; copyFromUnchecked ( d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public void testConstructorWithThreeDigitMnc ( ) { final java.lang.String mncWithThreeDigit = "061" ; android.telephony.CellIdentityLte ci = new android.telephony.CellIdentityLte ( com.android.internal.telephony.CellIdentityLteTest.CI , com.android.internal.telephony.CellIdentityLteTest.PCI , com.android.internal.telephony.CellIdentityLteTest.TAC , com.android.internal.telephony.CellIdentityLteTest.EARFCN , com.android.internal.telephony.CellIdentityLteTest.BANDWIDTH , com.android.internal.telephony.CellIdentityLteTest.MCC_STR , mncWithThreeDigit , com.android.internal.telephony.CellIdentityLteTest.ALPHA_LONG , com.android.internal.telephony.CellIdentityLteTest.ALPHA_SHORT ) ; assertEquals ( com.android.internal.telephony.CellIdentityLteTest.MCC , ci.getMcc ( ) ) ; assertEquals ( 61 , ci.getMnc ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityLteTest.MCC_STR , ci.getMccStr ( ) ) ; assertEquals ( mncWithThreeDigit , ci.getMncStr ( ) ) ; assertEquals ( ( ( com.android.internal.telephony.CellIdentityLteTest.MCC_STR ) + mncWithThreeDigit ) , ci.getMobileNetworkOperator ( ) ) ; }

Target:
public void testConstructorWithThreeDigitMnc ( ) { final java.lang.String mncWithThreeDigit = "061" ; android.telephony.CellIdentityLte ci = new android.telephony.CellIdentityLte ( com.android.internal.telephony.CellIdentityLteTest.CI , com.android.internal.telephony.CellIdentityLteTest.PCI , com.android.internal.telephony.CellIdentityLteTest.TAC , com.android.internal.telephony.CellIdentityLteTest.EARFCN , com.android.internal.telephony.CellIdentityLteTest.BANDWIDTH , com.android.internal.telephony.CellIdentityLteTest.MCC_STR , mncWithThreeDigit , com.android.internal.telephony.CellIdentityLteTest.ALPHA_LONG , com.android.internal.telephony.CellIdentityLteTest.ALPHA_SHORT ) ; assertEquals ( com.android.internal.telephony.CellIdentityLteTest.MCC , ci.getMcc ( ) ) ; assertEquals ( 61 , ci.getMnc ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityLteTest.MCC_STR , ci.getMccString ( ) ) ; assertEquals ( mncWithThreeDigit , ci.getMncString ( ) ) ; assertEquals ( ( ( com.android.internal.telephony.CellIdentityLteTest.MCC_STR ) + mncWithThreeDigit ) , ci.getMobileNetworkOperator ( ) ) ; }
Source:
public static int getAxisCount ( int sensorType ) { switch ( sensorType ) { case android.hardware.Sensor.TYPE_ACCELEROMETER : return 3 ; case android.hardware.Sensor.TYPE_MAGNETIC_FIELD : return 3 ; case android.hardware.Sensor.TYPE_GYROSCOPE : return 3 ; case android.hardware.Sensor.TYPE_GRAVITY : return 3 ; case android.hardware.Sensor.TYPE_LINEAR_ACCELERATION : return 3 ; default : throw new java.security.InvalidParameterException ( java.lang.String.format ( "Invalid sensorType:%d. Unable to find axis count." , sensorType ) ) ; } }

Target:
public static java.lang.String getSensorName ( int sensorType ) { return java.lang.String.format ( "%s (%d)" , android.hardware.cts.helpers.SensorTestInformation.getSimpleSensorName ( sensorType ) , sensorType ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { IsDefaultTest.test ( ) ; AnnotationTest.testAnnotationsByType ( ) ; AnnotationTest.testDeclaredAnnotation ( ) ; AnnotationTest.testDeclaredAnnotationsByType ( ) ; AnnotationTest.testMethodAnnotationsByType ( ) ; AnnotationTest.testMethodDeclaredAnnotations ( ) ; AnnotationTest.testMethodDeclaredAnnotationsByType ( ) ; }

Target:
default void sayHi ( ) { java.lang.System.out.println ( "hi default" ) ; }
Source:
private static com.android.ide.common.layout.Pair < com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode , java.lang.Integer > getPositionBefore ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode node ) { if ( node != null ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode parent = node.getUiParent ( ) ; if ( ( parent != null ) && ( parent instanceof com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ) ) { return com.android.ide.common.layout.Pair.of ( ( ( com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ) ( parent ) ) , node.getUiSiblingIndex ( ) ) ; } } return null ; }

Target:
private static com.android.sdklib.util.Pair < com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode , java.lang.Integer > getPositionBefore ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode node ) { if ( node != null ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode parent = node.getUiParent ( ) ; if ( ( parent != null ) && ( parent instanceof com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ) ) { return com.android.sdklib.util.Pair.of ( ( ( com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ) ( parent ) ) , node.getUiSiblingIndex ( ) ) ; } } return null ; }
Source:
public void setUp ( ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { if ( ( android.os.Looper.myLooper ( ) ) == null ) { android.os.Looper.prepare ( ) ; } org.junit.Assert.assertNotNull ( android.os.Looper.myLooper ( ) ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; mProfiles = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; java.lang.reflect.Method method = com.android.bluetooth.btservice.AdapterService.class . getDeclaredMethod ( "setAdapterService" , com.android.bluetooth.btservice.AdapterService.class ) ; method.setAccessible ( true ) ; method.invoke ( null , mMockAdapterService ) ; org.junit.Assert.assertNotNull ( com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { if ( ( android.os.Looper.myLooper ( ) ) == null ) { android.os.Looper.prepare ( ) ; } org.junit.Assert.assertNotNull ( android.os.Looper.myLooper ( ) ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; mProfiles = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; com.android.bluetooth.TestUtils.setAdapterService ( mMockAdapterService ) ; org.junit.Assert.assertNotNull ( com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; findViewById ( R.id.continue_button ) . setOnClickListener ( new android.view.View.OnClickListener ( ) { @ java.lang.Override public void onClick ( android.view.View v ) { startActivity ( new android.content.Intent ( com.android.cts.verifier.CtsVerifierActivity.this , com.android.cts.verifier.TestListActivity.class ) ) ; } } ) ; }
Source:
private com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder _addProjectResourceFolder ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository resources , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config , org.eclipse.core.resources.IFolder folder ) throws java.lang.Exception { java.lang.reflect.Method addMethod = com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository.class . getDeclaredMethod ( "add" , com.android.resources.ResourceFolderType.class , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.class , com.android.io.IAbstractFolder.class ) ; addMethod.setAccessible ( true ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder = ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder ) ( addMethod.invoke ( resources , ResourceFolderType.LAYOUT , config , new com.android.ide.eclipse.adt.io.IFolderWrapper ( folder ) ) ) ) ; return resFolder ; }

Target:
private com.android.ide.common.resources.ResourceFolder _addProjectResourceFolder ( com.android.ide.common.resources.ResourceRepository resources , com.android.ide.common.resources.configuration.FolderConfiguration config , org.eclipse.core.resources.IFolder folder ) throws java.lang.Exception { java.lang.reflect.Method addMethod = com.android.ide.common.resources.ResourceRepository.class . getDeclaredMethod ( "add" , com.android.resources.ResourceFolderType.class , com.android.ide.common.resources.configuration.FolderConfiguration.class , com.android.io.IAbstractFolder.class ) ; addMethod.setAccessible ( true ) ; com.android.ide.common.resources.ResourceFolder resFolder = ( ( com.android.ide.common.resources.ResourceFolder ) ( addMethod.invoke ( resources , ResourceFolderType.LAYOUT , config , new com.android.ide.eclipse.adt.io.IFolderWrapper ( folder ) ) ) ) ; return resFolder ; }
Source:
public java.lang.String getIsimDomain ( ) { com.android.internal.telephony.Phone phone = getPhone ( getDefaultSubscription ( ) ) ; mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = phone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimDomain ( ) ; } else { return null ; } }

Target:
public java.lang.String getIsimImpi ( int subId ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = phone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimImpi ( ) ; } else { return null ; } } else { loge ( ( "getIsimImpi phone is null for Subscription:" + subId ) ) ; return null ; } }
Source:
public void commit ( boolean onSave ) { if ( ( mUiElementNode ) != null ) { mEditor.editXmlModel ( new java.lang.Runnable ( ) { public void run ( ) { for ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode ui_attr : mUiElementNode.getUiAttributes ( ) ) { ui_attr.commit ( ) ; } } } ) ; } super . commit ( onSave ) ; }

Target:
public void commit ( boolean onSave ) { if ( ( mUiElementNode ) != null ) { mEditor.wrapEditXmlModel ( new java.lang.Runnable ( ) { public void run ( ) { for ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode ui_attr : mUiElementNode.getUiAttributes ( ) ) { ui_attr.commit ( ) ; } } } ) ; } super . commit ( onSave ) ; }
Source:
public void testFiveCount_L ( ) throws java.lang.Exception { java.util.TimeZone.setDefault ( java.util.TimeZone.getTimeZone ( "GMT" ) ) ; assertEquals ( "1" , formatDate ( java.util.Locale.ENGLISH , "L" ) ) ; assertEquals ( "01" , formatDate ( java.util.Locale.ENGLISH , "LL" ) ) ; assertEquals ( "Jan" , formatDate ( java.util.Locale.ENGLISH , "LLL" ) ) ; assertEquals ( "January" , formatDate ( java.util.Locale.ENGLISH , "LLLL" ) ) ; assertEquals ( "J" , formatDate ( java.util.Locale.ENGLISH , "LLLLL" ) ) ; }

Target:
public void testFiveCount_L ( ) throws java.lang.Exception { assertEquals ( "1" , formatDateUtc ( java.util.Locale.ENGLISH , "L" ) ) ; assertEquals ( "01" , formatDateUtc ( java.util.Locale.ENGLISH , "LL" ) ) ; assertEquals ( "Jan" , formatDateUtc ( java.util.Locale.ENGLISH , "LLL" ) ) ; assertEquals ( "January" , formatDateUtc ( java.util.Locale.ENGLISH , "LLLL" ) ) ; assertEquals ( "J" , formatDateUtc ( java.util.Locale.ENGLISH , "LLLLL" ) ) ; }
Source:
public static void scheduleUpdateOnBoot ( android.content.Context context , java.io.File packageFile ) throws java.io.IOException { java.lang.String filename = packageFile.getCanonicalPath ( ) ; boolean securityUpdate = filename.endsWith ( "_s.zip" ) ; if ( filename.startsWith ( "/data/" ) ) { filename = "@/cache/recovery/block.map" ; } final java.lang.String filenameArg = ( "--update_package=" + filename ) + "\n" ; final java.lang.String localeArg = ( "--locale=" + ( java.util.Locale.getDefault ( ) . toString ( ) ) ) + "\n" ; final java.lang.String securityArg = "--security\n" ; java.lang.String command = filenameArg + localeArg ; if ( securityUpdate ) { command += securityArg ; } android.os.RecoverySystem rs = ( ( android.os.RecoverySystem ) ( context.getSystemService ( Context.RECOVERY_SERVICE ) ) ) ; if ( ! ( rs.setupBcb ( command ) ) ) { throw new java.io.IOException ( "schedule update on boot failed" ) ; } }

Target:
public static void scheduleUpdateOnBoot ( android.content.Context context , java.io.File packageFile ) throws java.io.IOException { java.lang.String filename = packageFile.getCanonicalPath ( ) ; boolean securityUpdate = filename.endsWith ( "_s.zip" ) ; if ( filename.startsWith ( "/data/" ) ) { filename = "@/cache/recovery/block.map" ; } final java.lang.String filenameArg = ( "--update_package=" + filename ) + "\n" ; final java.lang.String localeArg = ( "--locale=" + ( java.util.Locale.getDefault ( ) . toLanguageTag ( ) ) ) + "\n" ; final java.lang.String securityArg = "--security\n" ; java.lang.String command = filenameArg + localeArg ; if ( securityUpdate ) { command += securityArg ; } android.os.RecoverySystem rs = ( ( android.os.RecoverySystem ) ( context.getSystemService ( Context.RECOVERY_SERVICE ) ) ) ; if ( ! ( rs.setupBcb ( command ) ) ) { throw new java.io.IOException ( "schedule update on boot failed" ) ; } }
Source:
public void testSMSSendingExploit ( ) throws java.lang.Exception { int inboxSizeBeforeExploit = getSMSInboxSize ( ) ; android.telephony.SmsManager manager = android.telephony.SmsManager.getDefault ( ) ; manager.sendTextMessage ( "25578" , null , "STOP" , null , null ) ; android.os.SystemClock.sleep ( 250 ) ; int inboxSizeAfterExploit = getSMSInboxSize ( ) ; assertTrue ( ( "Device is vulnerable to bug #22314646!! For more information " + ( "please refer - https://android.googlesource.com/platform/frameworks/" + "opt/telephony/+/ce058be%5E!/" ) ) , ( inboxSizeBeforeExploit == inboxSizeAfterExploit ) ) ; }

Target:
public void testSMSSendingExploit ( ) throws java.lang.Exception { android.telephony.TelephonyManager telephonyManager = ( ( android.telephony.TelephonyManager ) ( getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; if ( ! ( telephonyManager.isSmsCapable ( ) ) ) { return ; } int inboxSizeBeforeExploit = getSMSInboxSize ( ) ; android.telephony.SmsManager manager = android.telephony.SmsManager.getDefault ( ) ; manager.sendTextMessage ( "25578" , null , "STOP" , null , null ) ; android.os.SystemClock.sleep ( 250 ) ; int inboxSizeAfterExploit = getSMSInboxSize ( ) ; assertTrue ( ( "Device is vulnerable to bug #22314646!! For more information " + ( "please refer - https://android.googlesource.com/platform/frameworks/" + "opt/telephony/+/ce058be%5E!/" ) ) , ( inboxSizeBeforeExploit == inboxSizeAfterExploit ) ) ; }
Source:
private android.app.Notification.Builder createNotificationBuilder ( ) { return new android.app.Notification.Builder ( context ) . setGroup ( com.android.dialer.app.calllog.MissedCallNotifier.GROUP_KEY ) . setSmallIcon ( android.R.drawable.stat_notify_missed_call ) . setColor ( context.getResources ( ) . getColor ( R.color.dialer_theme_color , null ) ) . setAutoCancel ( true ) . setOnlyAlertOnce ( true ) . setShowWhen ( true ) . setDefaults ( Notification.DEFAULT_VIBRATE ) ; }

Target:
private android.app.Notification.Builder createNotificationBuilder ( ) { return new android.app.Notification.Builder ( context ) . setGroup ( MissedCallConstants.GROUP_KEY ) . setSmallIcon ( android.R.drawable.stat_notify_missed_call ) . setColor ( context.getResources ( ) . getColor ( R.color.dialer_theme_color , null ) ) . setAutoCancel ( true ) . setOnlyAlertOnce ( true ) . setShowWhen ( true ) . setDefaults ( Notification.DEFAULT_VIBRATE ) ; }
Source:
private java.security.cert.X509Certificate generateJcaObject ( org.bouncycastle.asn1.x509.TBSCertificate tbsCert , byte [ ] signature ) throws java.lang.Exception { org.bouncycastle.asn1.ASN1EncodableVector v = new org.bouncycastle.asn1.ASN1EncodableVector ( ) ; v.add ( tbsCert ) ; v.add ( sigAlgId ) ; v.add ( new org.bouncycastle.asn1.DERBitString ( signature ) ) ; org.bouncycastle.x509.fba1a1 Merge ; }

Target:
private java.security.cert.X509Certificate generateJcaObject ( org.bouncycastle.asn1.x509.TBSCertificate tbsCert , byte [ ] signature ) throws java.lang.Exception { org.bouncycastle.asn1.ASN1EncodableVector v = new org.bouncycastle.asn1.ASN1EncodableVector ( ) ; v.add ( tbsCert ) ; v.add ( sigAlgId ) ; v.add ( new org.bouncycastle.asn1.DERBitString ( signature ) ) ; return ( ( java.security.cert.X509Certificate ) ( certificateFactory.engineGenerateCertificate ( new java.io.ByteArrayInputStream ( new org.bouncycastle.asn1.DERSequence ( v ) . getEncoded ( ASN1Encoding.DER ) ) ) ) ) ; }
Source:
public static boolean isVoiceMailNumber ( java.lang.String number ) { java.lang.String vmNumber ; try { vmNumber = android.telephony.TelephonyManager.getDefault ( ) . getVoiceMailNumber ( ) ; } catch ( java.lang.SecurityException ex ) { return false ; } number = android.telephony.PhoneNumberUtils.extractNetworkPortion ( number ) ; return ( ! ( android.text.TextUtils.isEmpty ( number ) ) ) && ( android.telephony.PhoneNumberUtils.compare ( number , vmNumber ) ) ; }

Target:
public static boolean isVoiceMailNumber ( java.lang.String number ) { java.lang.String vmNumber ; try { vmNumber = android.telephony.TelephonyManager.getDefault ( ) . getVoiceMailNumber ( ) ; } catch ( java.lang.SecurityException ex ) { return false ; } number = android.telephony.PhoneNumberUtils.extractNetworkPortionAlt ( number ) ; return ( ! ( android.text.TextUtils.isEmpty ( number ) ) ) && ( android.telephony.PhoneNumberUtils.compare ( number , vmNumber ) ) ; }
Source:
public void testNotifyResponseCreateDataPath ( ) throws org.json.JSONException { final short transactionId = 48 ; final int reason = WifiNanNative.NAN_STATUS_TIMEOUT ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "status" , reason ) ; args.putInt ( "value" , 0 ) ; args.putInt ( "response_type" , WifiNanNative.NAN_RESPONSE_DP_INTERFACE_CREATE ) ; com.android.server.wifi.nan.WifiNanHalMock.callNotifyResponse ( transactionId , com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mNanStateManager ) . onCreateDataPathInterfaceResponse ( transactionId , false , reason ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNanStateManager ) ; }

Target:
public void testNotifyResponseCreateDataPath ( ) throws org.json.JSONException { final short transactionId = 48 ; final int reason = WifiAwareNative.AWARE_STATUS_TIMEOUT ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "status" , reason ) ; args.putInt ( "value" , 0 ) ; args.putInt ( "response_type" , WifiAwareNative.AWARE_RESPONSE_DP_INTERFACE_CREATE ) ; com.android.server.wifi.aware.WifiAwareHalMock.callNotifyResponse ( transactionId , com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onCreateDataPathInterfaceResponse ( transactionId , false , reason ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }
Source:
private void responseDataCallList ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.util.ArrayList < android.hardware.radio.V1_0.SetupDataCallResult > dcResponse ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.util.ArrayList < com.android.internal.telephony.dataconnection.DataCallResponse > ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = com.android.internal.telephony.RIL.convertHalDcList ( dcResponse ) ; sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseDataCallList ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.util.ArrayList < android.hardware.radio.V1_0.SetupDataCallResult > dcResponse ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.util.ArrayList < com.android.internal.telephony.dataconnection.DataCallResponse > ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = com.android.internal.telephony.RIL.convertHalDcList ( dcResponse ) ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
private void stopPlayback ( ) { mChannelDataManager.removeAllCallbacksAndMessages ( ) ; if ( ( mPlayer ) != null ) { mPlayer.setPlayWhenReady ( false ) ; mPlayer.release ( ) ; mPlayer = null ; mPlayerState = com.google.android.exoplayer.ExoPlayer.STATE_IDLE ; mPlaybackParams.setSpeed ( 1.0F ) ; mPlayerStarted = false ; mReportedDrawnToSurface = false ; mPreparingStartTimeMs = com.android.tv.tuner.tvinput.TunerSessionWorker.INVALID_TIME ; mBufferingStartTimeMs = com.android.tv.tuner.tvinput.TunerSessionWorker.INVALID_TIME ; mReadyStartTimeMs = com.android.tv.tuner.tvinput.TunerSessionWorker.INVALID_TIME ; mSession.sendUiMessage ( TunerSession.MSG_UI_HIDE_AUDIO_UNPLAYABLE ) ; mSession.notifyTimeShiftStatusChanged ( TvInputManager.TIME_SHIFT_STATUS_UNAVAILABLE ) ; } }

Target:
private void stopPlayback ( boolean removeChannelDataCallbacks ) { if ( removeChannelDataCallbacks ) { mChannelDataManager.removeAllCallbacksAndMessages ( ) ; } if ( ( mPlayer ) != null ) { mPlayer.setPlayWhenReady ( false ) ; mPlayer.release ( ) ; mPlayer = null ; mPlayerState = com.google.android.exoplayer.ExoPlayer.STATE_IDLE ; mPlaybackParams.setSpeed ( 1.0F ) ; mPlayerStarted = false ; mReportedDrawnToSurface = false ; mPreparingStartTimeMs = com.android.tv.tuner.tvinput.TunerSessionWorker.INVALID_TIME ; mBufferingStartTimeMs = com.android.tv.tuner.tvinput.TunerSessionWorker.INVALID_TIME ; mReadyStartTimeMs = com.android.tv.tuner.tvinput.TunerSessionWorker.INVALID_TIME ; mSession.sendUiMessage ( TunerSession.MSG_UI_HIDE_AUDIO_UNPLAYABLE ) ; mSession.notifyTimeShiftStatusChanged ( TvInputManager.TIME_SHIFT_STATUS_UNAVAILABLE ) ; } }
Source:
private static com.android.sched.util.file.Directory createTempDirForTypeDexFiles ( @ javax.annotation.Nonnull com.android.sched.util.RunnableHooks hooks ) { try { java.io.File tmp = com.google.common.io.Files.createTempDir ( ) ; com.android.sched.util.file.Directory dir = new com.android.sched.util.file.Directory ( tmp.getPath ( ) , hooks , com.android.sched.util.file.FileOrDirectory.Existence.MUST_EXIST , com.android.sched.util.file.FileOrDirectory.Permission.WRITE , com.android.sched.util.file.FileOrDirectory.ChangePermission.NOCHANGE ) ; hooks.addHook ( new com.android.jack.Options.TypeDexDirDeleter ( dir ) ) ; return dir ; } catch ( java.io.IOException e ) { throw new com.android.jack.JackUserException ( e ) ; } }

Target:
private static com.android.sched.util.file.Directory createTempDir ( @ javax.annotation.Nonnull com.android.sched.util.RunnableHooks hooks ) { try { java.io.File tmp = com.google.common.io.Files.createTempDir ( ) ; com.android.sched.util.file.Directory dir = new com.android.sched.util.file.Directory ( tmp.getPath ( ) , hooks , com.android.sched.util.file.FileOrDirectory.Existence.MUST_EXIST , com.android.sched.util.file.FileOrDirectory.Permission.WRITE , com.android.sched.util.file.FileOrDirectory.ChangePermission.NOCHANGE ) ; hooks.addHook ( new com.android.jack.Options.TempDirDeleter ( dir ) ) ; return dir ; } catch ( java.io.IOException e ) { throw new com.android.jack.JackUserException ( e ) ; } }
Source:
public void testContainsAll ( ) { java.util.concurrent.CopyOnWriteArrayList full = jsr166.CopyOnWriteArrayListTest.populatedArray ( 3 ) ; java.util.Vector v = new java.util.Vector ( ) ; v.add ( one ) ; v.add ( two ) ; assertTrue ( full.containsAll ( v ) ) ; v.add ( six ) ; assertFalse ( full.containsAll ( v ) ) ; }

Target:
public void testContainsAll ( ) { java.util.concurrent.CopyOnWriteArrayList full = jsr166.CopyOnWriteArrayListTest.populatedArray ( 3 ) ; assertTrue ( full.containsAll ( java.util.Arrays.asList ( ) ) ) ; assertTrue ( full.containsAll ( java.util.Arrays.asList ( one ) ) ) ; assertTrue ( full.containsAll ( java.util.Arrays.asList ( one , two ) ) ) ; assertFalse ( full.containsAll ( java.util.Arrays.asList ( one , two , six ) ) ) ; assertFalse ( full.containsAll ( java.util.Arrays.asList ( six ) ) ) ; }
Source:
private boolean isLegal ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { if ( expr.getType ( ) . equals ( JPrimitiveTypeEnum.VOID.getType ( ) ) ) { return true ; } return ( ( expr instanceof com.android.jack.ir.ast.JAsgOperation ) || ( expr instanceof com.android.jack.ir.ast.JVariableRef ) ) || ( expr instanceof com.android.jack.ir.ast.JMethodCall ) ; }

Target:
private boolean isLegal ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { if ( expr.getType ( ) . isSameType ( JPrimitiveTypeEnum.VOID.getType ( ) ) ) { return true ; } return ( ( expr instanceof com.android.jack.ir.ast.JAsgOperation ) || ( expr instanceof com.android.jack.ir.ast.JVariableRef ) ) || ( expr instanceof com.android.jack.ir.ast.JMethodCall ) ; }
Source:
public void schedule ( java.util.TimerTask task , java.util.Date when , long period ) { if ( ( period <= 0 ) || ( ( when.getTime ( ) ) < 0 ) ) { throw new java.lang.IllegalArgumentException ( ) ; } long delay = ( when.getTime ( ) ) - ( java.lang.System.currentTimeMillis ( ) ) ; scheduleImpl ( task , ( delay < 0 ? 0 : delay ) , period , false ) ; }

Target:
public void schedule ( java.util.TimerTask task , java.util.Date when ) { validateScheduling ( task , when , 1 , 1 ) ; doSchedule ( task , when.getTime ( ) , null ) ; }
Source:
private void runTaskResizeable ( ) throws java.lang.Exception { final java.lang.String taskIdStr = nextArgRequired ( ) ; final int taskId = java.lang.Integer.valueOf ( taskIdStr ) ; final java.lang.String resizeableStr = nextArgRequired ( ) ; final boolean resizeable = java.lang.Boolean.valueOf ( resizeableStr ) ; try { mAm.setTaskResizeable ( taskId , resizeable ) ; } catch ( android.os.RemoteException e ) { } }

Target:
private void runTaskResizeable ( ) throws java.lang.Exception { final java.lang.String taskIdStr = nextArgRequired ( ) ; final int taskId = java.lang.Integer.parseInt ( taskIdStr ) ; final java.lang.String resizeableStr = nextArgRequired ( ) ; final boolean resizeable = java.lang.Boolean.parseBoolean ( resizeableStr ) ; try { mAm.setTaskResizeable ( taskId , resizeable ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( int filter , com.android.sdklib.AndroidVersion version ) { assert ( ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_PLATFORMS ) ) || ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_SAMPLES ) ) ) || ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_SOURCES ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { if ( pkg instanceof com.android.sdklib.repository.local.LocalAndroidVersionPkgInfo ) { com.android.sdklib.repository.local.LocalAndroidVersionPkgInfo p = ( ( com.android.sdklib.repository.local.LocalAndroidVersionPkgInfo ) ( pkg ) ) ; if ( p.getAndroidVersion ( ) . equals ( version ) ) { return p ; } } } return null ; }

Target:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgType filter , @ com.android.annotations.NonNull java.lang.String vendorPath ) { assert ( ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_EXTRAS ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_ADDONS ) ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_PLATFORMS ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { if ( ( pkg.getDesc ( ) . hasPath ( ) ) && ( vendorPath.equals ( pkg.getDesc ( ) . getPath ( ) ) ) ) { return pkg ; } } return null ; }
Source:
synchronized void nAllocationRead2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationRead2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes , dt.mID ) ; }

Target:
synchronized void nAllocationElementRead ( long id , int xoff , int yoff , int zoff , int mip , int compIdx , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationElementRead ( mContext , id , xoff , yoff , zoff , mip , compIdx , d , sizeBytes ) ; }
Source:
public void showInCallScreen ( boolean showDialpad , java.lang.String callingPackage ) { try { com.android.server.telecom.Log.startSession ( "TSI.sICS" ) ; if ( ! ( canReadPhoneState ( callingPackage , "showInCallScreen" ) ) ) { return ; } synchronized ( mLock ) { long token = android.os.Binder.clearCallingIdentity ( ) ; try { mCallsManager.getInCallController ( ) . bringToForeground ( showDialpad ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } } finally { com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void showInCallScreen ( boolean showDialpad , java.lang.String callingPackage ) { try { android.telecom.Log.startSession ( "TSI.sICS" ) ; if ( ! ( canReadPhoneState ( callingPackage , "showInCallScreen" ) ) ) { return ; } synchronized ( mLock ) { long token = android.os.Binder.clearCallingIdentity ( ) ; try { mCallsManager.getInCallController ( ) . bringToForeground ( showDialpad ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
private java.lang.StackTraceElement [ ] getInternalStackTrace ( ) { if ( ( stackTrace ) == null ) { stackTrace = java.lang.Throwable.nativeGetStackTrace ( stackState ) ; stackState = null ; } return stackTrace ; }

Target:
public void setStackTrace ( java.lang.StackTraceElement [ ] trace ) { if ( ( stackTrace ) == null ) { return ; } java.lang.StackTraceElement [ ] newTrace = trace.clone ( ) ; for ( int i = 0 ; i < ( newTrace.length ) ; i ++ ) { if ( ( newTrace [ i ] ) == null ) { throw new java.lang.NullPointerException ( ( ( "trace[" + i ) + "] == null" ) ) ; } } stackTrace = newTrace ; }
Source:
public void testInnerClass ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { java.lang.reflect.Constructor < ? > constructor = com.android.jack.java8.parameter.test001.Tests.InnerClass.class . getDeclaredConstructor ( com.android.jack.java8.parameter.test001.Tests.class ) ; junit.framework.Assert.assertEquals ( 1 , constructor.getParameters ( ) . length ) ; check ( constructor.getParameters ( ) [ 0 ] , "this$0" , true , true , false , ( ( com.android.jack.java8.parameter.test001.Tests.MODIFIER_FINAL ) | ( com.android.jack.java8.parameter.test001.Tests.MODIFIER_IMPLICIT ) ) ) ; }

Target:
public void testInnerInnerClass ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { java.lang.reflect.Constructor < ? > constructor = com.android.jack.java8.parameter.test001.Tests.InnerClass.InnerInnerClass.class . getDeclaredConstructor ( com.android.jack.java8.parameter.test001.Tests.InnerClass.class , float . class ) ; junit.framework.Assert.assertEquals ( 2 , constructor.getParameters ( ) . length ) ; check ( constructor.getParameters ( ) [ 0 ] , "this$1" , true , true , false , ( ( com.android.jack.java8.parameter.common.ParameterTestModifier.MODIFIER_FINAL ) | ( com.android.jack.java8.parameter.common.ParameterTestModifier.MODIFIER_IMPLICIT ) ) ) ; check ( constructor.getParameters ( ) [ 1 ] , "f" , true , false , false , ParameterTestModifier.MODIFIER_NONE ) ; }
Source:
public void writeZeroes ( int count ) { if ( count < 0 ) { throw new java.lang.IllegalArgumentException ( "count < 0" ) ; } int end = ( cursor ) + count ; if ( stretchy ) { ensureCapacity ( end ) ; } else if ( end > ( data.length ) ) { com.android.dx.util.ByteArrayAnnotatedOutput.throwBounds ( ) ; return ; } cursor = end ; }

Target:
public void writeZeroes ( int count ) { if ( count < 0 ) { throw new java.lang.IllegalArgumentException ( "count < 0" ) ; } int end = ( cursor ) + count ; if ( stretchy ) { ensureCapacity ( end ) ; } else if ( end > ( data.length ) ) { com.android.dx.util.ByteArrayAnnotatedOutput.throwBounds ( ) ; return ; } java.util.Arrays.fill ( data , cursor , end , ( ( byte ) ( 0 ) ) ) ; cursor = end ; }
Source:
public void testInheritLocal ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/CustomViewTest.java: Warning: Custom view test/pkg/CustomViewTest is missing constructor used by tools: (Context) or (Context,AttributeSet) or (Context,AttributeSet,int) [ViewConstructor]\n" + ( "0 errors, 1 warnings\n" + "" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "apicheck/Intermediate.java.txt=>src/test/pkg/Intermediate.java.txt" , "src/test/pkg/CustomViewTest.java.txt=>src/test/pkg/CustomViewTest.java" , "bytecode/CustomViewTest.class.data=>bin/classes/test/pkg/CustomViewTest.class" , "apicheck/Intermediate.class.data=>bin/classes/test/pkg/Intermediate.class" , ( "apicheck/Intermediate$IntermediateCustomV.class.data=>" + "bin/classes/test/pkg/Intermediate$IntermediateCustomV.class" ) ) ) ; }

Target:
public void testInheritLocal ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/pkg/CustomViewTest.java:5: Warning: Custom view CustomViewTest is missing constructor used by tools: (Context) or (Context,AttributeSet) or (Context,AttributeSet,int) [ViewConstructor]\n" + "public class CustomViewTest extends IntermediateCustomV {\n" ) + " ~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "apicheck/Intermediate.java.txt=>src/test/pkg/Intermediate.java" , "src/test/pkg/CustomViewTest.java.txt=>src/test/pkg/CustomViewTest.java" , "bytecode/CustomViewTest.class.data=>bin/classes/test/pkg/CustomViewTest.class" , "apicheck/Intermediate.class.data=>bin/classes/test/pkg/Intermediate.class" , ( "apicheck/Intermediate$IntermediateCustomV.class.data=>" + "bin/classes/test/pkg/Intermediate$IntermediateCustomV.class" ) ) ) ; }
Source:
public void testIterator ( ) { com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode mode = com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode.VTS_REGRESSION_MODE_INCREASING ; com.android.vts.entity.ProfilingPointRunEntity pt = com.android.vts.util.ProfilingPointSummaryTest.createProfilingReport ( com.android.vts.util.ProfilingPointSummaryTest.labels , com.android.vts.util.ProfilingPointSummaryTest.values , mode ) ; com.android.vts.util.ProfilingPointSummaryTest.summary.update ( pt ) ; int i = 0 ; for ( com.android.vts.util.StatSummary stats : com.android.vts.util.ProfilingPointSummaryTest.summary ) { assertEquals ( com.android.vts.util.ProfilingPointSummaryTest.labels [ ( i ++ ) ] , stats.getLabel ( ) ) ; } }

Target:
public void testIterator ( ) { com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode mode = com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode.VTS_REGRESSION_MODE_INCREASING ; com.android.vts.entity.ProfilingPointSummaryEntity pt = com.android.vts.util.ProfilingPointSummaryTest.createProfilingReport ( com.android.vts.util.ProfilingPointSummaryTest.labels , com.android.vts.util.ProfilingPointSummaryTest.values , mode ) ; com.android.vts.util.ProfilingPointSummaryTest.summary.update ( pt ) ; int i = 0 ; for ( com.android.vts.util.StatSummary stats : com.android.vts.util.ProfilingPointSummaryTest.summary ) { assertEquals ( com.android.vts.util.ProfilingPointSummaryTest.labels [ ( i ++ ) ] , stats.getLabel ( ) ) ; } }