auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static java.lang.Integer getOutputSizeBytes ( @ android.security.KeyStoreKeyConstraints.DigestEnum int digest ) { switch ( digest ) { case android.security.KeyStoreKeyConstraints.Digest.NONE : return null ; case android.security.KeyStoreKeyConstraints.Digest.SHA256 : return 256 / 8 ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown digest: " + digest ) ) ; } }

Target:
public static java.lang.Integer getOutputSizeBytes ( @ android.security.KeyStoreKeyConstraints.DigestEnum int digest ) { switch ( digest ) { case android.security.KeyStoreKeyConstraints.Digest.NONE : return null ; case android.security.KeyStoreKeyConstraints.Digest.MD5 : return 128 / 8 ; case android.security.KeyStoreKeyConstraints.Digest.SHA1 : return 160 / 8 ; case android.security.KeyStoreKeyConstraints.Digest.SHA224 : return 224 / 8 ; case android.security.KeyStoreKeyConstraints.Digest.SHA256 : return 256 / 8 ; case android.security.KeyStoreKeyConstraints.Digest.SHA384 : return 384 / 8 ; case android.security.KeyStoreKeyConstraints.Digest.SHA512 : return 512 / 8 ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown digest: " + digest ) ) ; } }
Source:
public void loggerFetchesRxFatesEvenIfFetchingTxFatesFails ( ) { final boolean verbosityToggle = true ; org.mockito.Mockito.when ( mWifiNative.getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ) . thenReturn ( false ) ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; org.mockito.Mockito.verify ( mWifiNative ) . getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; }

Target:
public void loggerFetchesTxFatesEvenIfFetchingRxFatesFails ( ) { final boolean verbosityToggle = true ; org.mockito.Mockito.when ( mWifiNative.getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ) . thenReturn ( false ) ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( com.android.server.wifi.WifiDiagnosticsTest.FAKE_CONNECTION_ID , WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; org.mockito.Mockito.verify ( mWifiNative ) . getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; }
Source:
public void testParcelUnparcel ( ) throws java.lang.Exception { assertParcelingIsLossless ( new android.telephony.SignalStrength ( ) ) ; android.telephony.SignalStrength s = new android.telephony.SignalStrength ( 20 , 5 , ( - 95 ) , 10 , ( - 98 ) , ( - 5 ) , ( - 2 ) , 45 , ( - 105 ) , ( - 110 ) , ( - 115 ) , 13 , ( - 90 ) , 2 , false , true ) ; assertParcelingIsLossless ( s ) ; }

Target:
public void testParcelUnparcel ( ) throws java.lang.Exception { assertParcelingIsLossless ( new android.telephony.SignalStrength ( ) ) ; android.telephony.SignalStrength s = new android.telephony.SignalStrength ( 20 , 5 , ( - 95 ) , 10 , ( - 98 ) , ( - 5 ) , ( - 2 ) , 45 , ( - 105 ) , ( - 110 ) , ( - 115 ) , 13 , ( - 90 ) , 45 , 20 , 2 , false , true , "rscp" ) ; assertParcelingIsLossless ( s ) ; }
Source:
protected java.util.List < org.eclipse.ltk.core.refactoring.Change > computeChanges ( ) { final com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler template = mValues.template ; template.setBackupMergedFiles ( false ) ; java.util.Map < java.lang.String , java.lang.Object > paramMap = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; addProjectInfo ( paramMap ) ; return template.render ( mProject , paramMap ) ; }

Target:
protected java.util.List < org.eclipse.ltk.core.refactoring.Change > computeChanges ( ) { final com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler template = mValues.template ; template.setBackupMergedFiles ( false ) ; java.util.Map < java.lang.String , java.lang.Object > paramMap = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; addProjectInfo ( paramMap ) ; com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler.addDirectoryParameters ( paramMap , getProject ( ) ) ; return template.render ( mProject , paramMap ) ; }
Source:
private boolean isUseOnlyRsrpForLteLevel ( ) { android.telephony.CarrierConfigManager configManager = ( ( android.telephony.CarrierConfigManager ) ( mPhone.getContext ( ) . getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; if ( configManager != null ) { android.os.PersistableBundle config = configManager.getConfigForSubId ( mPhone.getSubId ( ) ) ; if ( config != null ) { return config.getBoolean ( CarrierConfigManager.KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL ) ; } } return android.telephony.CarrierConfigManager.getDefaultConfig ( ) . getBoolean ( CarrierConfigManager.KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL ) ; }

Target:
private android.os.PersistableBundle getCarrierConfig ( ) { android.telephony.CarrierConfigManager configManager = ( ( android.telephony.CarrierConfigManager ) ( mPhone.getContext ( ) . getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; if ( configManager != null ) { android.os.PersistableBundle config = configManager.getConfigForSubId ( mPhone.getSubId ( ) ) ; if ( config != null ) { return config ; } } return android.telephony.CarrierConfigManager.getDefaultConfig ( ) ; }
Source:
public void test_ID ( ) { android.renderscript.cts.ScriptIntrinsicLUT s = android.renderscript.cts.ScriptIntrinsicLUT.create ( mRS , android.renderscript.cts.Element.U8_4 ( mRS ) ) ; android.renderscript.cts.Script.KernelID kid = s.getKernelID ( ) ; if ( kid == null ) { throw new java.lang.IllegalStateException ( "kid must be valid" ) ; } }

Target:
public void test_ID ( ) { android.renderscript.cts.ScriptIntrinsicLUT s = android.renderscript.cts.ScriptIntrinsicLUT.create ( mRS , android.renderscript.cts.Element.U8_4 ( mRS ) ) ; android.renderscript.cts.Script.KernelID kid = s.getKernelID ( ) ; if ( kid == null ) { throw new java.lang.IllegalStateException ( "kid must be valid" ) ; } s.destroy ( ) ; }
Source:
public static boolean isSupportedLocale ( android.content.Context context , java.util.Locale locale ) { java.lang.String [ ] locales = context.getAssets ( ) . getLocales ( ) ; for ( java.lang.String availableLocale : locales ) { if ( locale.toString ( ) . equals ( availableLocale ) ) { return true ; } } return false ; }

Target:
public static boolean isCurrentLocale ( android.content.Context context , java.util.Locale locale ) { java.util.Locale currentLocale = context.getResources ( ) . getConfiguration ( ) . locale ; return locale.equals ( currentLocale ) ; }
Source:
public static com.android.dialer.contactphoto.ContactPhotoManager getInstance ( android.content.Context context ) { if ( ( com.android.dialer.contactphoto.ContactPhotoManager.sInstance ) == null ) { android.content.Context applicationContext = context.getApplicationContext ( ) ; com.android.dialer.contactphoto.ContactPhotoManager.sInstance = com.android.dialer.contactphoto.ContactPhotoManager.createContactPhotoManager ( applicationContext ) ; applicationContext.registerComponentCallbacks ( com.android.dialer.contactphoto.ContactPhotoManager.sInstance ) ; if ( com.android.dialer.util.PermissionsUtil.hasContactsReadPermissions ( context ) ) { com.android.dialer.contactphoto.ContactPhotoManager.sInstance.preloadPhotosInBackground ( ) ; } } return com.android.dialer.contactphoto.ContactPhotoManager.sInstance ; }

Target:
public static com.android.dialer.contactphoto.ContactPhotoManager getInstance ( android.content.Context context ) { if ( ( com.android.dialer.contactphoto.ContactPhotoManager.instance ) == null ) { android.content.Context applicationContext = context.getApplicationContext ( ) ; com.android.dialer.contactphoto.ContactPhotoManager.instance = com.android.dialer.contactphoto.ContactPhotoManager.createContactPhotoManager ( applicationContext ) ; applicationContext.registerComponentCallbacks ( com.android.dialer.contactphoto.ContactPhotoManager.instance ) ; if ( com.android.dialer.util.PermissionsUtil.hasContactsReadPermissions ( context ) ) { com.android.dialer.contactphoto.ContactPhotoManager.instance.preloadPhotosInBackground ( ) ; } } return com.android.dialer.contactphoto.ContactPhotoManager.instance ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeString ( mPackageName ) ; dest.writeString ( mComponentName ) ; dest.writeString ( mMethodName ) ; dest.writeString ( mStatus ) ; dest.writeString ( mException ) ; dest.writeBoolean ( mInstantAppPackageInfoExposed ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeString ( mPackageName ) ; dest.writeString ( mComponentName ) ; dest.writeString ( mMethodName ) ; dest.writeString ( mStatus ) ; dest.writeString ( mException ) ; dest.writeInt ( ( mInstantAppPackageInfoExposed ? 1 : 0 ) ) ; }
Source:
private void queryCallsUpdate ( int id , int state , java.lang.String number , boolean multiParty , boolean outgoing ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "queryCallsUpdate: " + id ) ) ; } mCallsUpdate.put ( id , new android.bluetooth.BluetoothHeadsetClientCall ( mCurrentDevice , id , state , number , multiParty , outgoing ) ) ; }

Target:
private void queryCallsUpdate ( int id , int state , java.lang.String number , boolean multiParty , boolean outgoing ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "queryCallsUpdate: " + id ) ) ; } mCallsUpdate.put ( id , new android.bluetooth.BluetoothHeadsetClientCall ( mCurrentDevice , id , state , number , multiParty , outgoing , mInBandRing ) ) ; }
Source:
protected android.widget.CursorAdapter newAdapter ( ) { return new android.widget.SimpleCursorAdapter ( this , android.R.layout.simple_list_item_2 , mCursor , com.android.phone.ADNList.COLUMN_NAMES , com.android.phone.ADNList.VIEW_NAMES ) ; }

Target:
public boolean setViewValue ( android.view.View view , android.database.Cursor cursor , int columnIndex ) { view.setTextAlignment ( View.TEXT_ALIGNMENT_VIEW_START ) ; if ( columnIndex == ( com.android.phone.ADNList.NUMBER_COLUMN ) ) { java.lang.String num = cursor.getString ( com.android.phone.ADNList.NUMBER_COLUMN ) ; if ( num != null ) { android.text.BidiFormatter bf = android.text.BidiFormatter.getInstance ( ) ; num = bf.unicodeWrap ( num , TextDirectionHeuristics.LTR , true ) ; } if ( view instanceof android.widget.TextView ) { ( ( android.widget.TextView ) ( view ) ) . setText ( num ) ; } return true ; } return false ; }
Source:
private void initNetworkCapabilities ( ) { mNetworkCapabilities.addTransportType ( NetworkCapabilities.TRANSPORT_BLUETOOTH ) ; mNetworkCapabilities.addCapability ( NetworkCapabilities.NET_CAPABILITY_INTERNET ) ; mNetworkCapabilities.addCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED ) ; mNetworkCapabilities.setLinkUpstreamBandwidthKbps ( ( 24 * 1000 ) ) ; mNetworkCapabilities.setLinkDownstreamBandwidthKbps ( ( 24 * 1000 ) ) ; }

Target:
private void initNetworkCapabilities ( ) { mNetworkCapabilities.addTransportType ( NetworkCapabilities.TRANSPORT_BLUETOOTH ) ; mNetworkCapabilities.addCapability ( NetworkCapabilities.NET_CAPABILITY_INTERNET ) ; mNetworkCapabilities.addCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED ) ; mNetworkCapabilities.addCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING ) ; mNetworkCapabilities.setLinkUpstreamBandwidthKbps ( ( 24 * 1000 ) ) ; mNetworkCapabilities.setLinkDownstreamBandwidthKbps ( ( 24 * 1000 ) ) ; }
Source:
public void callOnDropped ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , java.lang.String fqcn , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback , com.android.ide.eclipse.adt.editors.layout.gscripts.Point where ) { com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onDropped ( targetNode , fqcn , feedback , where ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropped() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }

Target:
public void callOnDropped ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement [ ] elements , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback , com.android.ide.eclipse.adt.editors.layout.gscripts.Point where , boolean isCopy , boolean sameCanvas ) { com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onDropped ( targetNode , elements , feedback , where , isCopy , sameCanvas ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropped() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }
Source:
public static void startStreaming ( com.android.phone.testapps.embmsmw.FrontendAppIdentifier appIdentifier , java.lang.String serviceId , android.telephony.mbms.IStreamingServiceCallback callback , int reason ) { com.android.phone.testapps.embmsmw.AppActiveStreams appStreams = com.android.phone.testapps.embmsmw.StreamStateTracker.sPerAppStreamStates.get ( appIdentifier ) ; if ( appStreams == null ) { appStreams = new com.android.phone.testapps.embmsmw.AppActiveStreams ( appIdentifier ) ; com.android.phone.testapps.embmsmw.StreamStateTracker.sPerAppStreamStates.put ( appIdentifier , appStreams ) ; } appStreams.startStreaming ( serviceId , callback , reason ) ; }

Target:
public static void startStreaming ( com.android.phone.testapps.embmsmw.FrontendAppIdentifier appIdentifier , java.lang.String serviceId , android.telephony.mbms.StreamingServiceCallback callback , int reason ) { com.android.phone.testapps.embmsmw.AppActiveStreams appStreams = com.android.phone.testapps.embmsmw.StreamStateTracker.sPerAppStreamStates.get ( appIdentifier ) ; if ( appStreams == null ) { appStreams = new com.android.phone.testapps.embmsmw.AppActiveStreams ( appIdentifier ) ; com.android.phone.testapps.embmsmw.StreamStateTracker.sPerAppStreamStates.put ( appIdentifier , appStreams ) ; } appStreams.startStreaming ( serviceId , callback , reason ) ; }
Source:
private static boolean fallOnDifferentDates ( java.util.Calendar c1 , java.util.Calendar c2 ) { return ( ( ( c1.get ( java.util.Calendar.YEAR ) ) != ( c2.get ( java.util.Calendar.YEAR ) ) ) || ( ( c1.get ( java.util.Calendar.MONTH ) ) != ( c2.get ( java.util.Calendar.MONTH ) ) ) ) || ( ( c1.get ( java.util.Calendar.DAY_OF_MONTH ) ) != ( c2.get ( java.util.Calendar.DAY_OF_MONTH ) ) ) ; }

Target:
private static boolean fallOnDifferentDates ( com.ibm.icu.util.Calendar c1 , com.ibm.icu.util.Calendar c2 ) { return ( ( ( c1.get ( Calendar.YEAR ) ) != ( c2.get ( Calendar.YEAR ) ) ) || ( ( c1.get ( Calendar.MONTH ) ) != ( c2.get ( Calendar.MONTH ) ) ) ) || ( ( c1.get ( Calendar.DAY_OF_MONTH ) ) != ( c2.get ( Calendar.DAY_OF_MONTH ) ) ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mCm = new com.android.internal.telephony.gsm.UsimDataDownloadCommands ( mContext ) ; mHandlerThread = new com.android.internal.telephony.gsm.UsimDataDownloadTest.TestHandlerThread ( ) ; mHandlerThread.start ( ) ; mHandler = mHandlerThread.getHandler ( ) ; android.util.Log.d ( com.android.internal.telephony.gsm.UsimDataDownloadTest.TAG , "mHandler is constructed" ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mCm = new com.android.internal.telephony.gsm.UsimDataDownloadCommands ( mContext ) ; mHandlerThread = new com.android.internal.telephony.gsm.UsimDataDownloadTest.TestHandlerThread ( ) ; mHandlerThread.start ( ) ; mHandler = mHandlerThread.getHandler ( ) ; android.telephony.Rlog.d ( com.android.internal.telephony.gsm.UsimDataDownloadTest.TAG , "mHandler is constructed" ) ; }
Source:
public void onServiceDisconnected ( android.content.ComponentName name ) { synchronized ( mLock ) { mIsBinding = false ; } if ( isServiceControllerAvailable ( ) ) { mImsServiceControllerBinder.unlinkToDeath ( mImsDeathRecipient , 0 ) ; } notifyAllFeaturesRemoved ( ) ; cleanUpService ( ) ; android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( ( "ImsService(" + name ) + "): onServiceDisconnected. Rebinding..." ) ) ; startDelayedRebindToService ( ) ; }

Target:
private void cleanupConnection ( ) { if ( isServiceControllerAvailable ( ) ) { mImsServiceControllerBinder.unlinkToDeath ( mImsDeathRecipient , 0 ) ; } notifyAllFeaturesRemoved ( ) ; cleanUpService ( ) ; }
Source:
public void lceData ( int indicationType , android.hardware.radio.V1_0.LceDataInfo var2 ) { }

Target:
public void cdmaPrlChanged ( int indicationType , int version ) { mRil.processIndication ( indicationType ) ; int [ ] response = new int [ 1 ] ; response [ 0 ] = version ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOl_CDMA_PRL_CHANGED , response ) ; mRil.mCdmaPrlChangedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; }
Source:
private java.lang.String readNullTerminatedString ( ) throws java.io.IOException { java.lang.StringBuilder s = new java.lang.StringBuilder ( ) ; java.io.DataInputStream in = mInput ; for ( int c = in.read ( ) ; c != 0 ; c = in.read ( ) ) { s.append ( ( ( char ) ( c ) ) ) ; } return s.toString ( ) ; }

Target:
private java.lang.String readNullTerminatedString ( ) throws java.io.IOException { java.lang.StringBuilder s = new java.lang.StringBuilder ( ) ; for ( byte c = mInput.readByte ( ) ; c != 0 ; c = mInput.readByte ( ) ) { s.append ( ( ( char ) ( c ) ) ) ; } return s.toString ( ) ; }
Source:
private static boolean loadProfileDataRecursive ( com.android.hierarchyviewerlib.device.ViewNode node , java.io.BufferedReader in ) throws java.io.IOException { if ( ! ( com.android.hierarchyviewerlib.device.DeviceBridge.loadProfileData ( node , in ) ) ) { return false ; } for ( int i = 0 ; i < ( node.children.size ( ) ) ; i ++ ) { if ( ! ( com.android.hierarchyviewerlib.device.DeviceBridge.loadProfileDataRecursive ( node.children.get ( i ) , in ) ) ) { return false ; } } return true ; }

Target:
private static boolean loadProfileDataRecursive ( com.android.hierarchyviewerlib.models.ViewNode node , java.io.BufferedReader in ) throws java.io.IOException { if ( ! ( com.android.hierarchyviewerlib.device.DeviceBridge.loadProfileData ( node , in ) ) ) { return false ; } for ( int i = 0 ; i < ( node.children.size ( ) ) ; i ++ ) { if ( ! ( com.android.hierarchyviewerlib.device.DeviceBridge.loadProfileDataRecursive ( node.children.get ( i ) , in ) ) ) { return false ; } } return true ; }
Source:
public void testDescribeContents ( ) { android.bluetooth.BluetoothDevice device = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) . getRemoteDevice ( android.bluetooth.cts.ScanResultTest.DEVICE_ADDRESS ) ; android.bluetooth.le.ScanResult result = new android.bluetooth.le.ScanResult ( device , android.bluetooth.cts.TestUtils.parseScanRecord ( android.bluetooth.cts.ScanResultTest.SCAN_RECORD ) , android.bluetooth.cts.ScanResultTest.RSSI , android.bluetooth.cts.ScanResultTest.TIMESTAMP_NANOS ) ; assertEquals ( 0 , result.describeContents ( ) ) ; }

Target:
public void testDescribeContents ( ) { if ( ! ( mContext.getPackageManager ( ) . hasSystemFeature ( PackageManager.FEATURE_BLUETOOTH ) ) ) return ; android.bluetooth.BluetoothDevice device = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) . getRemoteDevice ( android.bluetooth.cts.ScanResultTest.DEVICE_ADDRESS ) ; android.bluetooth.le.ScanResult result = new android.bluetooth.le.ScanResult ( device , android.bluetooth.cts.TestUtils.parseScanRecord ( android.bluetooth.cts.ScanResultTest.SCAN_RECORD ) , android.bluetooth.cts.ScanResultTest.RSSI , android.bluetooth.cts.ScanResultTest.TIMESTAMP_NANOS ) ; assertEquals ( 0 , result.describeContents ( ) ) ; }
Source:
private void parseCallSpecificAppData ( ) { if ( isExternalCall ( ) ) { return ; } logState.callSpecificAppData = com.android.dialer.callintent.CallIntentParser.getCallSpecificAppData ( getIntentExtras ( ) ) ; if ( ( logState.callSpecificAppData ) == null ) { logState.callSpecificAppData = com.android.dialer.callintent.CallSpecificAppData.newBuilder ( ) . setCallInitiationType ( CallInitiationType.Type.EXTERNAL_INITIATION ) . build ( ) ; } if ( ( getState ( ) ) == ( com.android.incallui.call.DialerCall.State.INCOMING ) ) { logState.callSpecificAppData = logState.callSpecificAppData.toBuilder ( ) . setCallInitiationType ( CallInitiationType.Type.INCOMING_INITIATION ) . build ( ) ; } }

Target:
private void parseCallSpecificAppData ( ) { if ( isExternalCall ( ) ) { return ; } logState.callSpecificAppData = com.android.dialer.callintent.CallIntentParser.getCallSpecificAppData ( getIntentExtras ( ) ) ; if ( ( logState.callSpecificAppData ) == null ) { logState.callSpecificAppData = com.android.dialer.callintent.CallSpecificAppData.newBuilder ( ) . setCallInitiationType ( CallInitiationType.Type.EXTERNAL_INITIATION ) . build ( ) ; } if ( ( getState ( ) ) == ( com.android.incallui.call.state.DialerCallState.INCOMING ) ) { logState.callSpecificAppData = logState.callSpecificAppData.toBuilder ( ) . setCallInitiationType ( CallInitiationType.Type.INCOMING_INITIATION ) . build ( ) ; } }
Source:
private com.android.builder.VariantConfiguration getVariant ( ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override protected void validate ( ) { } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) ) ; return variant ; }

Target:
private com.android.builder.VariantConfiguration getVariant ( ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT , "test" ) { @ java.lang.Override protected void validate ( ) { } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) ) ; return variant ; }
Source:
public java.util.List < java.io.File > getAidlSourceList ( ) { java.util.List < java.io.File > sourceList = com.google.common.collect.Lists.newArrayList ( ) ; sourceList.add ( mDefaultSourceProvider.getAidlDir ( ) ) ; if ( ( mType ) != ( com.android.builder.VariantConfiguration.Type.TEST ) ) { sourceList.add ( mBuildTypeSourceProvider.getAidlDir ( ) ) ; } if ( hasFlavors ( ) ) { for ( com.android.builder.SourceProvider flavorSourceSet : mFlavorSourceProviders ) { sourceList.add ( flavorSourceSet.getAidlDir ( ) ) ; } } return sourceList ; }

Target:
public java.util.List < java.io.File > getAidlSourceList ( ) { java.util.List < java.io.File > sourceList = com.google.common.collect.Lists.newArrayList ( ) ; sourceList.addAll ( mDefaultSourceProvider.getAidlDirectories ( ) ) ; if ( ( mType ) != ( com.android.builder.VariantConfiguration.Type.TEST ) ) { sourceList.addAll ( mBuildTypeSourceProvider.getAidlDirectories ( ) ) ; } if ( hasFlavors ( ) ) { for ( com.android.builder.SourceProvider flavorSourceSet : mFlavorSourceProviders ) { sourceList.addAll ( flavorSourceSet.getAidlDirectories ( ) ) ; } } return sourceList ; }
Source:
private void makeFakeSysImgInternal ( java.io.File imagesDir , java.lang.String abiType ) throws java.io.IOException { imagesDir.mkdirs ( ) ; new java.io.File ( imagesDir , "userdata.img" ) . createNewFile ( ) ; java.io.File sourceProp = new java.io.File ( imagesDir , com.android.SdkConstants.FN_SOURCE_PROP ) ; sourceProp.createNewFile ( ) ; java.io.FileWriter out = new java.io.FileWriter ( sourceProp ) ; out.write ( ( ( com.android.sdklib.repository.PkgProps.VERSION_API_LEVEL ) + "=0\n" ) ) ; out.write ( ( ( ( ( com.android.sdklib.repository.PkgProps.SYS_IMG_ABI ) + "=" ) + abiType ) + "\n" ) ) ; out.close ( ) ; }

Target:
private void makeFakeSysImgInternal ( java.io.File imagesDir , java.lang.String abiType ) throws java.io.IOException { imagesDir.mkdirs ( ) ; new java.io.File ( imagesDir , "userdata.img" ) . createNewFile ( ) ; createTextFile ( imagesDir , SdkConstants.FN_SOURCE_PROP , ( ( com.android.sdklib.repository.PkgProps.VERSION_API_LEVEL ) + "=0\n" ) , ( ( ( ( com.android.sdklib.repository.PkgProps.SYS_IMG_ABI ) + "=" ) + abiType ) + "\n" ) ) ; }
Source:
public java.util.List < com.android.sdklib.devices.Device > getVendorAndUserDevices ( java.lang.String sdkLocation ) { java.util.List < com.android.sdklib.devices.Device > devices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( getVendorDevices ( sdkLocation ) ) ; devices.addAll ( getUserDevices ( ) ) ; return devices ; }

Target:
public java.util.List < com.android.sdklib.devices.Device > getDevices ( java.lang.String sdkLocation ) { java.util.List < com.android.sdklib.devices.Device > devices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( getVendorDevices ( sdkLocation ) ) ; devices.addAll ( getDefaultDevices ( ) ) ; devices.addAll ( getUserDevices ( ) ) ; return devices ; }
Source:
public void handleMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( com.android.systemui.qs.QSPanel.H.SHOW_DETAIL ) ) { handleShowDetail ( ( ( com.android.systemui.qs.QSPanel.Record ) ( msg.obj ) ) , ( ( msg.arg1 ) != 0 ) ) ; } }

Target:
public void handleMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( com.android.systemui.qs.QSPanel.H.SHOW_DETAIL ) ) { handleShowDetail ( ( ( com.android.systemui.qs.QSPanel.Record ) ( msg.obj ) ) , ( ( msg.arg1 ) != 0 ) ) ; } else if ( ( msg.what ) == ( com.android.systemui.qs.QSPanel.H.ANNOUNCE_FOR_ACCESSIBILITY ) ) { announceForAccessibility ( ( ( java.lang.CharSequence ) ( msg.obj ) ) ) ; } }
Source:
public void testPreloadDensity ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final android.content.res.Resources res = getContext ( ) . getResources ( ) ; final int densityDpi = res.getConfiguration ( ) . densityDpi ; try { testPreloadDensityInner ( res , densityDpi ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; } }

Target:
public void testPreloadDensity ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final android.content.res.Resources res = getContext ( ) . getResources ( ) ; final int densityDpi = res.getConfiguration ( ) . densityDpi ; try { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; verifyPreloadDensityInner ( res , densityDpi ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; } }
Source:
public void testContextFailToBind ( ) { org.mockito.Mockito.when ( mContext.bindServiceAsUser ( org.mockito.Matchers.any ( android.content.Intent.class ) , org.mockito.Matchers.any ( android.content.ServiceConnection.class ) , org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.eq ( UserHandle.CURRENT ) ) ) . thenReturn ( false ) ; mFilter.startFilterLookup ( mCall , mCallback ) ; org.mockito.Mockito.verify ( mCallback ) . onCallFilteringComplete ( org.mockito.Matchers.eq ( mCall ) , org.mockito.Matchers.eq ( com.android.server.telecom.tests.CallScreeningServiceFilterTest.PASS_RESULT ) ) ; }

Target:
public void testContextFailToBind ( ) { org.mockito.Mockito.when ( mContext.bindServiceAsUser ( org.mockito.ArgumentMatchers.nullable ( android.content.Intent.class ) , org.mockito.ArgumentMatchers.nullable ( android.content.ServiceConnection.class ) , org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.eq ( UserHandle.CURRENT ) ) ) . thenReturn ( false ) ; mFilter.startFilterLookup ( mCall , mCallback ) ; org.mockito.Mockito.verify ( mCallback ) . onCallFilteringComplete ( org.mockito.Matchers.eq ( mCall ) , org.mockito.Matchers.eq ( com.android.server.telecom.tests.CallScreeningServiceFilterTest.PASS_RESULT ) ) ; }
Source:
public void visitInnerClassType ( java.lang.String name ) { className = ( ( className ) + '$' ) + name ; java.lang.String remappedName = remapper.mapType ( className ) ; v.visitInnerClassType ( remappedName.substring ( ( ( remappedName.lastIndexOf ( '$' ) ) + 1 ) ) ) ; }

Target:
public void visitInnerClassType ( java.lang.String name ) { java.lang.String remappedOuter = ( remapper.mapType ( className ) ) + '$' ; className = ( ( className ) + '$' ) + name ; java.lang.String remappedName = remapper.mapType ( className ) ; int index = ( remappedName.startsWith ( remappedOuter ) ) ? remappedOuter.length ( ) : ( remappedName.lastIndexOf ( '$' ) ) + 1 ; v.visitInnerClassType ( remappedName.substring ( index ) ) ; }
Source:
public java.lang.String getIanaVersion ( ) { try ( java.io.Reader reader = xmlSource.get ( ) ) { org.xmlpull.v1.XmlPullParserFactory xmlPullParserFactory = org.xmlpull.v1.XmlPullParserFactory.newInstance ( ) ; xmlPullParserFactory.setNamespaceAware ( false ) ; org.xmlpull.v1.XmlPullParser parser = xmlPullParserFactory.newPullParser ( ) ; parser.setInput ( reader ) ; libcore.util.TimeZoneFinder.findRequiredStartTag ( parser , libcore.util.TimeZoneFinder.TIMEZONES_ELEMENT ) ; return parser.getAttributeValue ( null , libcore.util.TimeZoneFinder.IANA_VERSION_ATTRIBUTE ) ; } catch ( org.xmlpull.v1.XmlPullParserException | java.io.IOException e ) { return null ; } }

Target:
public java.lang.String getIanaVersion ( ) { libcore.util.TimeZoneFinder.IanaVersionExtractor ianaVersionExtractor = new libcore.util.TimeZoneFinder.IanaVersionExtractor ( ) ; try { processXml ( ianaVersionExtractor ) ; return ianaVersionExtractor.getIanaVersion ( ) ; } catch ( org.xmlpull.v1.XmlPullParserException | java.io.IOException e ) { return null ; } }
Source:
public void testSetEntityResolver ( ) { org.xml.sax.EntityResolver resolver = new tests.api.org.xml.sax.support.MockResolver ( ) ; adapter.setEntityResolver ( resolver ) ; assertEquals ( resolver , reader.getEntityResolver ( ) ) ; adapter.setEntityResolver ( null ) ; assertEquals ( null , reader.getEntityResolver ( ) ) ; }

Target:
public void testSetEntityResolver ( ) { org.xml.sax.EntityResolver resolver = new org.apache.harmony.tests.org.xml.sax.support.MockResolver ( ) ; adapter.setEntityResolver ( resolver ) ; assertEquals ( resolver , reader.getEntityResolver ( ) ) ; adapter.setEntityResolver ( null ) ; assertEquals ( null , reader.getEntityResolver ( ) ) ; }
Source:
public static org.conscrypt.OpenSSLKey getInstance ( java.security.interfaces.ECPublicKey ecPublicKey ) throws java.security.InvalidKeyException { try { org.conscrypt.OpenSSLECGroupContext group = org.conscrypt.OpenSSLECGroupContext.getInstance ( ecPublicKey.getParams ( ) ) ; org.conscrypt.OpenSSLECPointContext pubKey = org.conscrypt.OpenSSLECPointContext.getInstance ( org.conscrypt.NativeCrypto.get_EC_GROUP_type ( group.getContext ( ) ) , group , ecPublicKey.getW ( ) ) ; return new org.conscrypt.OpenSSLKey ( org.conscrypt.NativeCrypto.EVP_PKEY_new_EC_KEY ( group.getContext ( ) , pubKey.getContext ( ) , null ) ) ; } catch ( java.lang.Exception e ) { throw new java.security.InvalidKeyException ( e ) ; } }

Target:
public static org.conscrypt.OpenSSLKey getInstance ( java.security.interfaces.ECPublicKey ecPublicKey ) throws java.security.InvalidKeyException { try { org.conscrypt.OpenSSLECGroupContext group = org.conscrypt.OpenSSLECGroupContext.getInstance ( ecPublicKey.getParams ( ) ) ; org.conscrypt.OpenSSLECPointContext pubKey = org.conscrypt.OpenSSLECPointContext.getInstance ( org.conscrypt.NativeCrypto.get_EC_GROUP_type ( group.getNativeRef ( ) ) , group , ecPublicKey.getW ( ) ) ; return new org.conscrypt.OpenSSLKey ( org.conscrypt.NativeCrypto.EVP_PKEY_new_EC_KEY ( group.getNativeRef ( ) , pubKey.getNativeRef ( ) , null ) ) ; } catch ( java.lang.Exception e ) { throw new java.security.InvalidKeyException ( e ) ; } }
Source:
java.lang.String getBasePattern ( ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; for ( int i = 0 ; i < ( android.icu.text.DateTimePatternGenerator.TYPE_LIMIT ) ; ++ i ) { if ( ( baseOriginal [ i ] . length ( ) ) != 0 ) result.append ( baseOriginal [ i ] ) ; } return result.toString ( ) ; }

Target:
public void put ( android.icu.impl.UResource.Key key , android.icu.impl.UResource.Value value , boolean isRoot ) { android.icu.impl.UResource.Table formatsTable = value.getTable ( ) ; for ( int i = 0 ; formatsTable.getKeyAndValue ( i , key , value ) ; ++ i ) { java.lang.String formatKey = key.toString ( ) ; if ( ! ( isAvailableFormatSet ( formatKey ) ) ) { setAvailableFormat ( formatKey ) ; java.lang.String formatValue = value.toString ( ) ; addPatternWithSkeleton ( formatValue , formatKey , ( ! isRoot ) , returnInfo ) ; } } }
Source:
public void enablingVerboseLoggingIncreasesLogRecSize ( ) { org.junit.Assert.assertTrue ( ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) > ( WifiStateMachine.NUM_LOG_RECS_NORMAL ) ) ) ; mWsm.enableVerboseLogging ( 1 ) ; for ( int i = 0 ; i < ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) * 2 ) ; i ++ ) { mWsm.sendMessage ( WifiStateMachine.CMD_BOOT_COMPLETED ) ; } mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE , mWsm.getLogRecSize ( ) ) ; }

Target:
public void enablingVerboseLoggingIncreasesLogRecSize ( ) { org.junit.Assert.assertTrue ( ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) > ( WifiStateMachine.NUM_LOG_RECS_NORMAL ) ) ) ; mWsm.enableVerboseLogging ( 1 ) ; for ( int i = 0 ; i < ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) * 2 ) ; i ++ ) { mWsm.sendMessage ( WifiStateMachine.CMD_DISCONNECT ) ; } mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE , mWsm.getLogRecSize ( ) ) ; }
Source:
public void deviceDetached ( android.hardware.usb.UsbDevice device ) { mDevicePermissionMap.remove ( device.getDeviceName ( ) ) ; android.content.Intent intent = new android.content.Intent ( android.hardware.usb.UsbManager.ACTION_USB_DEVICE_DETACHED ) ; intent.putExtra ( UsbManager.EXTRA_DEVICE , device ) ; if ( com.android.server.usb.UsbSettingsManager.DEBUG ) android.util.Slog.d ( com.android.server.usb.UsbSettingsManager.TAG , ( "usbDeviceRemoved, sending " + intent ) ) ; mContext.sendBroadcast ( intent ) ; }

Target:
public void deviceDetached ( android.hardware.usb.UsbDevice device ) { mDevicePermissionMap.remove ( device.getDeviceName ( ) ) ; android.content.Intent intent = new android.content.Intent ( android.hardware.usb.UsbManager.ACTION_USB_DEVICE_DETACHED ) ; intent.putExtra ( UsbManager.EXTRA_DEVICE , device ) ; if ( com.android.server.usb.UsbSettingsManager.DEBUG ) android.util.Slog.d ( com.android.server.usb.UsbSettingsManager.TAG , ( "usbDeviceRemoved, sending " + intent ) ) ; mContext.sendBroadcastAsUser ( intent , UserHandle.ALL ) ; }
Source:
public void checkValidity ( ) { if ( ! ( ( ( ( ( ( parent ) instanceof com.android.jack.ir.ast.JExpression ) || ( ( parent ) instanceof com.android.jack.ir.ast.JThrowStatement ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JNameValuePair ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JReturnStatement ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JFieldInitializer ) ) ) { super . checkValidity ( ) ; } }

Target:
public void checkValidity ( ) { if ( ! ( ( ( ( ( ( ( parent ) instanceof com.android.jack.ir.ast.JExpression ) || ( ( parent ) instanceof com.android.jack.ir.ast.JThrowStatement ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JNameValuePair ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JReturnStatement ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.cfg.JReturnBlockElement ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JFieldInitializer ) ) ) { super . checkValidity ( ) ; } }
Source:
public static int waitpid ( int pid , android.util.MutableInt status , int options ) throws android.system.ErrnoException { if ( status == null ) { return Libcore.os.waitpid ( pid , null , options ) ; } else { android.util.MutableInt internalStatus = new android.util.MutableInt ( status.value ) ; try { return Libcore.os.waitpid ( pid , internalStatus , options ) ; } finally { status.value = internalStatus.value ; } } }

Target:
public static int waitpid ( int pid , android.system.Int32Ref status , int options ) throws android.system.ErrnoException { if ( status == null ) { return Libcore.os.waitpid ( pid , null , options ) ; } else { android.system.MutableInt internalStatus = new android.system.MutableInt ( status.value ) ; try { return Libcore.os.waitpid ( pid , internalStatus , options ) ; } finally { status.value = internalStatus.value ; } } }
Source:
private static android.net.Uri getContactUri ( com.android.dialer.searchfragment.common.SearchCursor cursor ) { long contactId = cursor.getLong ( Projections.PHONE_ID ) ; java.lang.String lookupKey = cursor.getString ( Projections.PHONE_LOOKUP_KEY ) ; return android.provider.ContactsContract.Contacts.getLookupUri ( contactId , lookupKey ) . buildUpon ( ) . appendQueryParameter ( ContactsContract.DIRECTORY_PARAM_KEY , java.lang.String.valueOf ( cursor.getDirectoryId ( ) ) ) . build ( ) ; }

Target:
private static android.net.Uri getContactUri ( com.android.dialer.searchfragment.common.SearchCursor cursor ) { long contactId = cursor.getLong ( Projections.ID ) ; java.lang.String lookupKey = cursor.getString ( Projections.LOOKUP_KEY ) ; return android.provider.ContactsContract.Contacts.getLookupUri ( contactId , lookupKey ) . buildUpon ( ) . appendQueryParameter ( ContactsContract.DIRECTORY_PARAM_KEY , java.lang.String.valueOf ( cursor.getDirectoryId ( ) ) ) . build ( ) ; }
Source:
public void testFailed ( com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { java.lang.String statusString ; if ( status == ( TestFailure.ERROR ) ) { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_ERROR ; } else { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_FAILED ; } org.eclipse.jdt.internal.junit.runner.TestReferenceFailure failure = new org.eclipse.jdt.internal.junit.runner.TestReferenceFailure ( new com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestCaseReference ( mDeviceName , test ) , statusString , trace , null ) ; mNotifier.testFailed ( failure ) ; }

Target:
public void testAssumptionFailure ( com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { org.eclipse.jdt.internal.junit.runner.TestReferenceFailure failure = new org.eclipse.jdt.internal.junit.runner.TestReferenceFailure ( new com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestCaseReference ( mDeviceName , test ) , org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_FAILED , trace , null ) ; mNotifier.testFailed ( failure ) ; }
Source:
public void onDevicesChange ( ) { final com.android.ide.eclipse.adt.internal.sdk.Sdk sdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; mDeviceList = sdk.getDevices ( ) ; }

Target:
public void onDevicesChanged ( ) { final com.android.ide.eclipse.adt.internal.sdk.Sdk sdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( sdk != null ) { mDeviceList = sdk.getDeviceManager ( ) . getDevices ( DeviceManager.ALL_DEVICES ) ; } else { mDeviceList = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; } }
Source:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { try { for ( com.android.sched.vfs.InputVFS currentSectionVFS : sectionVFS.values ( ) ) { currentSectionVFS.close ( ) ; } vfs.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } }

Target:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { if ( ! ( originalVFS.isClosed ( ) ) ) { try { for ( com.android.sched.vfs.InputVFS currentSectionVFS : sectionVFS.values ( ) ) { currentSectionVFS.close ( ) ; } vfs.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } } }
Source:
private static com.android.server.wifi.aware.Capabilities getCapabilities ( ) { com.android.server.wifi.aware.Capabilities cap = new com.android.server.wifi.aware.Capabilities ( ) ; cap.maxConcurrentAwareClusters = 1 ; cap.maxPublishes = 2 ; cap.maxSubscribes = 2 ; cap.maxServiceNameLen = 255 ; cap.maxMatchFilterLen = 255 ; cap.maxTotalMatchFilterLen = 255 ; cap.maxServiceSpecificInfoLen = 255 ; cap.maxVsaDataLen = 255 ; cap.maxNdiInterfaces = 1 ; cap.maxNdpSessions = 1 ; cap.maxAppInfoLen = 255 ; cap.maxQueuedTransmitMessages = 6 ; return cap ; }

Target:
private static com.android.server.wifi.aware.Capabilities getCapabilities ( ) { com.android.server.wifi.aware.Capabilities cap = new com.android.server.wifi.aware.Capabilities ( ) ; cap.maxConcurrentAwareClusters = 1 ; cap.maxPublishes = 2 ; cap.maxSubscribes = 2 ; cap.maxServiceNameLen = 255 ; cap.maxMatchFilterLen = 255 ; cap.maxTotalMatchFilterLen = 255 ; cap.maxServiceSpecificInfoLen = 255 ; cap.maxExtendedServiceSpecificInfoLen = 255 ; cap.maxNdiInterfaces = 1 ; cap.maxNdpSessions = 1 ; cap.maxAppInfoLen = 255 ; cap.maxQueuedTransmitMessages = 6 ; return cap ; }
Source:
private void readObject ( java.io.ObjectInputStream in ) throws java.io.IOException , java.lang.ClassNotFoundException { in.defaultReadObject ( ) ; try { algorithmIdentifier = org.bouncycastle.asn1.x509.AlgorithmIdentifier.getInstance ( in.readObject ( ) ) ; } catch ( java.io.OptionalDataException e ) { algorithmIdentifier = org.bouncycastle.jcajce.provider.asymmetric.rsa.BCRSAPublicKey.DEFAULT_ALGORITHM_IDENTIFIER ; } }

Target:
private void readObject ( java.io.ObjectInputStream in ) throws java.io.IOException , java.lang.ClassNotFoundException { in.defaultReadObject ( ) ; try { algorithmIdentifier = org.bouncycastle.asn1.x509.AlgorithmIdentifier.getInstance ( in.readObject ( ) ) ; } catch ( java.io.OptionalDataException e ) { algorithmIdentifier = org.bouncycastle.jcajce.provider.asymmetric.rsa.BCRSAPublicKey.DEFAULT_ALGORITHM_IDENTIFIER ; } catch ( java.io.EOFException e ) { algorithmIdentifier = org.bouncycastle.jcajce.provider.asymmetric.rsa.BCRSAPublicKey.DEFAULT_ALGORITHM_IDENTIFIER ; } }
Source:
public void testNonFullscreenActivityPermitted ( ) throws java.lang.Exception { setComponentName ( android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_CURRENT_PACKAGE ) ; setDeviceRotation ( 0 ) ; launchActivity ( android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_ACTIVITY ) ; mAmWmState.assertResumedActivity ( "target SDK non-fullscreen activity should be allowed to launch" , android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_ACTIVITY ) ; assertEquals ( "non-fullscreen activity requested landscape orientation" , 0 , mAmWmState.getWmState ( ) . getLastOrientation ( ) ) ; }

Target:
public void testNonFullscreenActivityProhibited ( ) throws java.lang.Exception { setComponentName ( android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_CURRENT_PACKAGE ) ; launchActivityNoWait ( android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_ACTIVITY ) ; setDefaultComponentName ( ) ; launchActivity ( android.server.cts.ActivityManagerAppConfigurationTests.PORTRAIT_ACTIVITY_NAME ) ; assertFalse ( "target SDK > 26 non-fullscreen activity should not reach onResume" , mAmWmState.getAmState ( ) . containsActivity ( android.server.cts.ActivityManagerTestBase.getActivityComponentName ( android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_ACTIVITY , android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_ACTIVITY ) ) ) ; }
Source:
private boolean shouldStubAsDefaultMethod ( int access , java.lang.String name , java.lang.String desc ) { return ( com.google.devtools.build.android.desugar.BitFlags.noneSet ( access , ( ( ( ( org.objectweb.asm.Opcodes.ACC_ABSTRACT ) | ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) | ( org.objectweb.asm.Opcodes.ACC_BRIDGE ) ) | ( org.objectweb.asm.Opcodes.ACC_PRIVATE ) ) ) ) && ( ! ( instanceMethods.contains ( ( ( name + ":" ) + desc ) ) ) ) ; }

Target:
private boolean shouldStubAsDefaultMethod ( int access , java.lang.String name , java.lang.String desc ) { return ( com.google.devtools.build.android.desugar.DefaultMethodClassFixer.isNonBridgeDefaultMethod ( access ) ) && ( ! ( instanceMethods.contains ( ( ( name + ":" ) + desc ) ) ) ) ; }
Source:
public void accept ( int result ) { if ( result == ( android.app.Activity.RESULT_OK ) ) { status = PASS ; next ( ) ; } else { logFail ( ) ; status = RETEST ; delay ( ) ; } }

Target:
void test ( ) { if ( ( status ) == ( READY ) ) { com.android.cts.verifier.notifications.MockListener.MockListener.requestRebind ( MockListener.COMPONENT_NAME ) ; status = RETEST ; } else { if ( com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . isConnected ) { status = PASS ; next ( ) ; } else { if ( ( -- ( mRetries ) ) > 0 ) { status = RETEST ; next ( ) ; } else { logFail ( ) ; status = FAIL ; } } } }
Source:
public void run ( ) { synchronized ( CpuThread.mSyncable ) { for ( int i = 0 ; i < 10 ; i ++ ) { output ( mNumber ) ; } java.lang.System.out.print ( "Final result: " ) ; java.lang.System.out.println ( CpuThread.mCount ) ; } }

Target:
public void run ( ) { synchronized ( CpuThread.mSyncable ) { synchronized ( this ) { this . notify ( ) ; } for ( int i = 0 ; i < 10 ; i ++ ) { output ( mNumber ) ; } java.lang.System.out.print ( "Final result: " ) ; java.lang.System.out.println ( CpuThread.mCount ) ; } }
Source:
public void animateExpandNotificationsPanel ( ) { if ( com.android.systemui.statusbar.phone.PhoneStatusBar.SPEW ) android.util.Slog.d ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( "animateExpand: mExpandedVisible=" + ( mExpandedVisible ) ) ) ; if ( ( ( mDisabled ) & ( android.app.StatusBarManager.DISABLE_EXPAND ) ) != 0 ) { return ; } mNotificationPanel.expand ( ) ; if ( ( mHasFlipSettings ) && ( ( mScrollView.getVisibility ( ) ) != ( android.view.View.VISIBLE ) ) ) { flipToNotifications ( ) ; } if ( false ) postStartTracing ( ) ; }

Target:
boolean panelsEnabled ( ) { return ( ( mDisabled ) & ( android.app.StatusBarManager.DISABLE_EXPAND ) ) == 0 ; }
Source:
public java.lang.String getProperty ( @ javax.annotation.Nonnull java.lang.String key ) throws com.android.jack.library.LibraryFormatException { if ( ! ( libraryProperties.containsKey ( key ) ) ) { com.android.jack.library.CommonJackLibrary.logger.log ( java.util.logging.Level.SEVERE , ( ( ( ( "Property " + key ) + " from the library " ) + ( getLocation ( ) ) ) + " does not exist" ) ) ; throw new com.android.jack.library.LibraryFormatException ( getLocation ( ) ) ; } return ( ( java.lang.String ) ( libraryProperties.get ( key ) ) ) ; }

Target:
public java.lang.String getProperty ( @ javax.annotation.Nonnull java.lang.String key ) throws com.android.jack.library.LibraryFormatException { if ( ! ( libraryProperties.containsKey ( key ) ) ) { com.android.jack.library.CommonJackLibrary.logger.log ( java.util.logging.Level.SEVERE , ( ( ( ( "Property " + key ) + " from the library " ) + ( getLocation ( ) . getDescription ( ) ) ) + " does not exist" ) ) ; throw new com.android.jack.library.LibraryFormatException ( getLocation ( ) ) ; } return ( ( java.lang.String ) ( libraryProperties.get ( key ) ) ) ; }