auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static java.lang.StringBuilder formatAndAppend ( java.lang.String compiledPattern , java.lang.StringBuilder appendTo , int [ ] offsets , java.lang.CharSequence ... values ) { int valuesLength = ( values != null ) ? values.length : 0 ; if ( valuesLength < ( android.icu.impl.SimplePatternFormatter.getPlaceholderCount ( compiledPattern ) ) ) { throw new java.lang.IllegalArgumentException ( "Too few values." ) ; } return android.icu.impl.SimplePatternFormatter.format ( compiledPattern , values , appendTo , null , true , offsets ) ; }

Target:
public static java.lang.String formatRawPattern ( java.lang.String pattern , int min , int max , java.lang.CharSequence ... values ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; java.lang.String compiledPattern = android.icu.impl.SimpleFormatterImpl.compileToStringMinMaxArguments ( pattern , sb , min , max ) ; sb.setLength ( 0 ) ; return android.icu.impl.SimpleFormatterImpl.formatAndAppend ( compiledPattern , sb , null , values ) . toString ( ) ; }
Source:
boolean matchesDescription ( org.junit.runner.Description description ) { return ( description.hashCode ( ) ) == ( uniqueMethodId.hashCode ( ) ) ; }

Target:
boolean matchesDescription ( org.junit.runner.Description description ) { java.lang.String displayName = description.getDisplayName ( ) ; int endIndex = displayName.lastIndexOf ( "(" , ( ( displayName.length ( ) ) - 1 ) ) ; java.lang.String uniqueName = ( endIndex == ( - 1 ) ) ? displayName : displayName.substring ( 0 , endIndex ) ; return uniqueName.equals ( uniqueMethodId ) ; }
Source:
public java.nio.ShortBuffer put ( java.nio.ShortBuffer src ) { if ( src == ( this ) ) { throw new java.lang.IllegalArgumentException ( "src == this" ) ; } if ( ( src.remaining ( ) ) > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } short [ ] contents = new short [ src.remaining ( ) ] ; src.get ( contents ) ; put ( contents ) ; return this ; }

Target:
public java.nio.ShortBuffer put ( java.nio.ShortBuffer src ) { if ( isReadOnly ( ) ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( src == ( this ) ) { throw new java.lang.IllegalArgumentException ( "src == this" ) ; } if ( ( src.remaining ( ) ) > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } short [ ] contents = new short [ src.remaining ( ) ] ; src.get ( contents ) ; put ( contents ) ; return this ; }
Source:
public boolean isVideoCallingEnabled ( java.lang.String callingPackage ) { if ( ! ( canReadPhoneState ( callingPackage , "isVideoCallingEnabled" ) ) ) { return false ; } return ( ( com.android.ims.ImsManager.isVtEnabledByPlatform ( mPhone.getContext ( ) ) ) && ( com.android.ims.ImsManager.isEnhanced4gLteModeSettingEnabledByUser ( mPhone.getContext ( ) ) ) ) && ( com.android.ims.ImsManager.isVtEnabledByUser ( mPhone.getContext ( ) ) ) ; }

Target:
public boolean isVideoCallingEnabled ( java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "isVideoCallingEnabled" ) ) ) { return false ; } com.android.ims.ImsManager imsManager = com.android.ims.ImsManager.getInstance ( mPhone.getContext ( ) , mPhone.getPhoneId ( ) ) ; return ( ( imsManager.isVtEnabledByPlatform ( ) ) && ( imsManager.isEnhanced4gLteModeSettingEnabledByUser ( ) ) ) && ( imsManager.isVtEnabledByUser ( ) ) ; }
Source:
java.util.Collection < ? extends com.android.sched.vfs.BaseVElement > list ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir dir ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
com.android.sched.vfs.VPath getPathFromDir ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile file ) { java.lang.StringBuffer path = getPathFromDirInternal ( parent , ( ( com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir ) ( file.getParent ( ) ) ) ) . append ( file.getName ( ) ) ; return new com.android.sched.vfs.VPath ( path.toString ( ) , '/' ) ; }
Source:
public void filterNodes ( java.lang.String filterText ) { this . filterText = filterText ; com.android.hierarchyviewerlib.ui.util.DrawableViewNode tree = com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . getTree ( ) ; if ( tree != null ) { tree.viewNode.filter ( filterText ) ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . notifySelectionChanged ( ) ; } }

Target:
public void filterNodes ( java.lang.String filterText ) { this . mFilterText = filterText ; com.android.hierarchyviewerlib.ui.util.DrawableViewNode tree = com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . getTree ( ) ; if ( tree != null ) { tree.viewNode.filter ( filterText ) ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . notifySelectionChanged ( ) ; } }
Source:
private void removeTransportModeTransforms ( android.os.ParcelFileDescriptor pfd , android.net.IpSecTransform transform ) { try { mService.removeTransportModeTransforms ( pfd , transform.getResourceId ( ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void removeTransportModeTransforms ( java.io.FileDescriptor socket , android.net.IpSecTransform transform ) throws java.io.IOException { try ( android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.dup ( socket ) ) { mService.removeTransportModeTransforms ( pfd , transform.getResourceId ( ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void setFocusedStack ( int stackId ) { if ( com.android.server.am.ActivityManagerService.DEBUG_FOCUS ) android.util.Slog.d ( com.android.server.am.ActivityManagerService.TAG , ( "setFocusedStack: stackId=" + stackId ) ) ; synchronized ( this ) { com.android.server.am.ActivityStack stack = mStackSupervisor.getStack ( stackId ) ; if ( stack != null ) { com.android.server.am.ActivityRecord r = stack.topRunningActivityLocked ( null ) ; if ( r != null ) { setFocusedActivityLocked ( r ) ; } } } }

Target:
public void setFocusedStack ( int stackId ) { if ( com.android.server.am.ActivityManagerService.DEBUG_FOCUS ) android.util.Slog.d ( com.android.server.am.ActivityManagerService.TAG , ( "setFocusedStack: stackId=" + stackId ) ) ; synchronized ( this ) { com.android.server.am.ActivityStack stack = mStackSupervisor.getStack ( stackId ) ; if ( stack != null ) { com.android.server.am.ActivityRecord r = stack.topRunningActivityLocked ( null ) ; if ( r != null ) { setFocusedActivityLocked ( r , "setFocusedStack" ) ; } } } }
Source:
public int getPriority ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; int priority = Settings.Global.getInt ( getContentResolver ( ) , Settings.Global.getBluetoothInputDevicePriorityKey ( device.getAddress ( ) ) , BluetoothProfile.PRIORITY_UNDEFINED ) ; return priority ; }

Target:
public int getPriority ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , ( "getPriority: " + ( device.getAddress ( ) ) ) ) ; } int priority = Settings.Global.getInt ( getContentResolver ( ) , Settings.Global.getBluetoothInputDevicePriorityKey ( device.getAddress ( ) ) , BluetoothProfile.PRIORITY_UNDEFINED ) ; return priority ; }
Source:
public boolean isIgnored ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message ) { return issue != ( com.android.tools.lint.client.api.IssueRegistry.LINT_ERROR ) ; }

Target:
public boolean isIgnored ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message ) { if ( ( issue == ( com.android.tools.lint.client.api.IssueRegistry.LINT_ERROR ) ) && ( new com.android.tools.lint.LintCliClient ( mFlags ) . isSuppressed ( IssueRegistry.LINT_ERROR ) ) ) { return true ; } return issue != ( com.android.tools.lint.client.api.IssueRegistry.LINT_ERROR ) ; }
Source:
public void checkValidity ( ) { if ( ! ( ( ( parent ) instanceof com.android.jack.ir.ast.JSwitchStatement ) || ( ( parent ) instanceof com.android.jack.ir.ast.JCaseStatement ) ) ) { super . checkValidity ( ) ; } }

Target:
public void checkValidity ( ) { if ( ! ( ( ( ( ( parent ) instanceof com.android.jack.ir.ast.JSwitchStatement ) || ( ( parent ) instanceof com.android.jack.ir.ast.cfg.JSwitchBlockElement ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JCaseStatement ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.cfg.JCaseBlockElement ) ) ) { super . checkValidity ( ) ; } }
Source:
public android.net.NetworkCapabilities getNetworkCapabilitiesSync ( ) { android.net.NetworkCapabilities value ; if ( isCallerOnDifferentThread ( ) ) { android.os.Message response = sendMessageSynchronously ( com.android.internal.telephony.dataconnection.DcAsyncChannel.REQ_GET_NETWORK_CAPABILITIES ) ; if ( ( response != null ) && ( ( response.what ) == ( com.android.internal.telephony.dataconnection.DcAsyncChannel.RSP_GET_NETWORK_CAPABILITIES ) ) ) { value = rspNetworkCapabilities ( response ) ; } else { value = null ; } } else { value = mDc.getCopyNetworkCapabilities ( ) ; } return value ; }

Target:
public android.net.NetworkCapabilities getNetworkCapabilitiesSync ( ) { android.net.NetworkCapabilities value ; if ( isCallerOnDifferentThread ( ) ) { android.os.Message response = sendMessageSynchronously ( com.android.internal.telephony.dataconnection.DcAsyncChannel.REQ_GET_NETWORK_CAPABILITIES ) ; if ( ( response != null ) && ( ( response.what ) == ( com.android.internal.telephony.dataconnection.DcAsyncChannel.RSP_GET_NETWORK_CAPABILITIES ) ) ) { value = rspNetworkCapabilities ( response ) ; } else { value = null ; } } else { value = mDc.getNetworkCapabilities ( ) ; } return value ; }
Source:
void logCallback ( java.lang.String callback , com.android.server.wifi.scanner.WifiScanningServiceImpl.ClientInfo ci , int id , java.lang.String extra ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( callback ) . append ( ": " ) . append ( ci.toString ( ) ) . append ( ",Id=" ) . append ( id ) ; if ( extra != null ) { sb.append ( "," ) . append ( extra ) ; } localLog ( sb.toString ( ) ) ; }

Target:
void logCallback ( java.lang.String callback , com.android.server.wifi.scanner.WifiScanningServiceImpl.ClientInfo ci , int id , java.lang.String extra ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( callback ) . append ( ": " ) . append ( ( ci == null ? "ClientInfo[unknown]" : ci.toString ( ) ) ) . append ( ",Id=" ) . append ( id ) ; if ( extra != null ) { sb.append ( "," ) . append ( extra ) ; } localLog ( sb.toString ( ) ) ; }
Source:
public java.nio.FloatBuffer put ( java.nio.FloatBuffer src ) { if ( src == ( this ) ) { throw new java.lang.IllegalArgumentException ( "src == this" ) ; } if ( ( src.remaining ( ) ) > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } float [ ] contents = new float [ src.remaining ( ) ] ; src.get ( contents ) ; put ( contents ) ; return this ; }

Target:
public java.nio.FloatBuffer put ( java.nio.FloatBuffer src ) { if ( isReadOnly ( ) ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( src == ( this ) ) { throw new java.lang.IllegalArgumentException ( "src == this" ) ; } if ( ( src.remaining ( ) ) > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } float [ ] contents = new float [ src.remaining ( ) ] ; src.get ( contents ) ; put ( contents ) ; return this ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField x ) { print ( com.android.jack.ir.ast.JModifier.getStringFieldModifier ( x.getModifier ( ) ) ) ; printType ( x ) ; space ( ) ; printName ( x ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField x ) { print ( com.android.jack.ir.ast.JModifier.getStringFieldModifier ( x.getModifier ( ) ) ) ; printType ( x ) ; space ( ) ; printTypeName ( x.getEnclosingType ( ) ) ; print ( '.' ) ; printName ( x ) ; return false ; }
Source:
public java.util.List < ? extends com.android.internal.telephony.MmiCode > getPendingMmiCodes ( com.android.internal.telephony.Phone phone ) { android.util.Log.e ( com.android.internal.telephony.CallManager.LOG_TAG , "getPendingMmiCodes not implemented" ) ; return null ; }

Target:
public void stopDtmf ( ) { if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , " stopDtmf()" ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } if ( hasActiveFgCall ( ) ) getFgPhone ( ) . stopDtmf ( ) ; if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , "End stopDtmf()" ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } }
Source:
public void setDataEnabled ( int subId , boolean enable ) { try { android.util.Log.d ( android.telephony.TelephonyManager.TAG , ( "setDataEnabled: enabled=" + enable ) ) ; com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setDataEnabled ( subId , enable ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setDataEnabled" , e ) ; } }

Target:
public void setDataEnabled ( int subId , boolean enable ) { try { android.util.Log.d ( android.telephony.TelephonyManager.TAG , ( "setDataEnabled: enabled=" + enable ) ) ; com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setUserDataEnabled ( subId , enable ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setUserDataEnabled" , e ) ; } }
Source:
public java.lang.String getVoiceMailNumberForSubscriber ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( checkReadPhoneState ( callingPackage , "getVoiceMailNumber" ) ) ) { return null ; } java.lang.String number = android.telephony.PhoneNumberUtils.extractNetworkPortion ( phone.getVoiceMailNumber ( ) ) ; if ( com.android.internal.telephony.PhoneSubInfoController.VDBG ) log ( ( "VM: getVoiceMailNUmber: " + number ) ) ; return number ; } else { loge ( ( "getVoiceMailNumber phone is null for Subscription:" + subId ) ) ; return null ; } }

Target:
public java.lang.String getVoiceMailNumberForSubscriber ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , "getVoiceMailNumber" ) ) ) { return null ; } java.lang.String number = android.telephony.PhoneNumberUtils.extractNetworkPortion ( phone.getVoiceMailNumber ( ) ) ; if ( com.android.internal.telephony.PhoneSubInfoController.VDBG ) log ( ( "VM: getVoiceMailNUmber: " + number ) ) ; return number ; } else { loge ( ( "getVoiceMailNumber phone is null for Subscription:" + subId ) ) ; return null ; } }
Source:
private static com.android.ddmlib.RawImage createRawImage ( java.lang.String name ) throws java.io.IOException , java.lang.ClassNotFoundException { java.io.ObjectInputStream is = new java.io.ObjectInputStream ( com.android.monkeyrunner.ImageUtilsTest.class . getResourceAsStream ( name ) ) ; com.android.monkeyrunner.adb.image.CaptureRawAndConvertedImage.MonkeyRunnerRawImage wrapper = ( ( com.android.monkeyrunner.adb.image.CaptureRawAndConvertedImage.MonkeyRunnerRawImage ) ( is.readObject ( ) ) ) ; is.close ( ) ; return wrapper.toRawImage ( ) ; }

Target:
private static com.android.ddmlib.RawImage createRawImage ( java.lang.String name ) throws java.io.IOException , java.lang.ClassNotFoundException { java.io.ObjectInputStream is = new java.io.ObjectInputStream ( com.android.chimpchat.ImageUtilsTest.class . getResourceAsStream ( name ) ) ; com.android.chimpchat.adb.image.CaptureRawAndConvertedImage.ChimpRawImage wrapper = ( ( com.android.chimpchat.adb.image.CaptureRawAndConvertedImage.ChimpRawImage ) ( is.readObject ( ) ) ) ; is.close ( ) ; return wrapper.toRawImage ( ) ; }
Source:
static com.google.devtools.common.options.OptionPriority nextOptionPriority ( com.google.devtools.common.options.OptionPriority priority ) { if ( priority.locked ) { return priority ; } return new com.google.devtools.common.options.OptionPriority ( priority.priorityCategory , ( ( priority.index ) + 1 ) , false ) ; }

Target:
static com.google.devtools.common.options.OptionPriority nextOptionPriority ( com.google.devtools.common.options.OptionPriority priority ) { int lastElementPosition = ( priority.priorityIndices.size ( ) ) - 1 ; return new com.google.devtools.common.options.OptionPriority ( priority.priorityCategory , com.google.common.collect.ImmutableList.< java.lang.Integer > builder ( ) . addAll ( priority.priorityIndices.subList ( 0 , lastElementPosition ) ) . add ( ( ( priority.priorityIndices.get ( lastElementPosition ) ) + 1 ) ) . build ( ) ) ; }
Source:
public dalvik.system.EmulatedStackFrame.StackFrameAccessor attach ( dalvik.system.EmulatedStackFrame stackFrame ) { frame = stackFrame ; frameBuf = java.nio.ByteBuffer.wrap ( frame.stackFrame ) . order ( java.nio.ByteOrder.LITTLE_ENDIAN ) ; numArgs = frame.type.ptypes ( ) . length ; referencesOffset = 0 ; argumentIdx = 0 ; return this ; }

Target:
public dalvik.system.EmulatedStackFrame.StackFrameAccessor attach ( dalvik.system.EmulatedStackFrame stackFrame , int argumentIdx , int referencesOffset , int frameOffset ) { frame = stackFrame ; frameBuf = java.nio.ByteBuffer.wrap ( frame.stackFrame ) . order ( java.nio.ByteOrder.LITTLE_ENDIAN ) ; numArgs = frame.type.ptypes ( ) . length ; if ( frameOffset != 0 ) { frameBuf.position ( frameOffset ) ; } this . referencesOffset = referencesOffset ; this . argumentIdx = argumentIdx ; return this ; }
Source:
public void goBackOrForward ( final int steps ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { goBackOrForward ( steps ) ; } } ) ; return ; } mAwContents.goBackOrForward ( steps ) ; }

Target:
public boolean pageUp ( final boolean top ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return pageUp ( top ) ; } } ) ; return ret ; } return mAwContents.pageUp ( top ) ; }
Source:
public void spawnDescendant ( com.android.apksig.SigningCertificateLineage.SignerConfig parent , com.android.apksig.SigningCertificateLineage.SignerConfig child ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.SignatureException , java.security.cert.CertificateEncodingException { int flags = calculateDefaultFlags ( ) ; spawnDescendant ( parent , flags , child , flags ) ; }

Target:
public com.android.apksig.SigningCertificateLineage spawnDescendant ( com.android.apksig.SigningCertificateLineage.SignerConfig parent , com.android.apksig.SigningCertificateLineage.SignerConfig child ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.SignatureException , java.security.cert.CertificateEncodingException { if ( ( parent == null ) || ( child == null ) ) { throw new java.lang.NullPointerException ( "can't add new descendant to lineage with null inputs" ) ; } com.android.apksig.SigningCertificateLineage.SignerCapabilities signerCapabilities = new com.android.apksig.SigningCertificateLineage.SignerCapabilities.Builder ( ) . build ( ) ; return spawnDescendant ( parent , child , signerCapabilities ) ; }
Source:
public void testUpdateBatteryLevel_errorNegativeValue ( ) { com.android.bluetooth.btservice.RemoteDevices remoteDevices = new com.android.bluetooth.btservice.RemoteDevices ( mAdapterService ) ; int batteryLevel = - 1 ; org.junit.Assert.assertNull ( remoteDevices.getDeviceProperties ( mDevice1 ) ) ; remoteDevices.updateBatteryLevel ( mDevice1 , batteryLevel ) ; org.mockito.Mockito.verify ( mAdapterService , org.mockito.Mockito.never ( ) ) . sendBroadcast ( org.mockito.Mockito.any ( ) , org.mockito.Mockito.anyString ( ) ) ; org.junit.Assert.assertNull ( remoteDevices.getDeviceProperties ( mDevice1 ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAdapterService ) ; }

Target:
public void testHfIndicatorParser_testCorrectValue ( ) { int batteryLevel = 10 ; org.junit.Assert.assertNull ( mRemoteDevices.getDeviceProperties ( mDevice1 ) ) ; mRemoteDevices.onHfIndicatorValueChanged ( com.android.bluetooth.btservice.RemoteDevicesTest.getHfIndicatorIntent ( mDevice1 , batteryLevel , HeadsetHalConstants.HF_INDICATOR_BATTERY_LEVEL_STATUS ) ) ; org.mockito.Mockito.verify ( mAdapterService ) . sendBroadcast ( mIntentArgument.capture ( ) , mStringArgument.capture ( ) ) ; com.android.bluetooth.btservice.RemoteDevicesTest.verfyBatteryLevelChangedIntent ( mDevice1 , batteryLevel , mIntentArgument ) ; org.junit.Assert.assertEquals ( AdapterService.BLUETOOTH_PERM , mStringArgument.getValue ( ) ) ; }
Source:
protected void configureShell ( org.eclipse.swt.widgets.Shell shell ) { super . configureShell ( shell ) ; shell.setText ( "Hierarchy Viewer" ) ; com.android.ddmuilib.ImageLoader imageLoader = com.android.ddmuilib.ImageLoader.getLoader ( com.android.hierarchyviewerlib.HierarchyViewerDirector.class ) ; org.eclipse.swt.graphics.Image image = imageLoader.loadImage ( "sdk-hierarchyviewer-128.png" , org.eclipse.swt.widgets.Display.getDefault ( ) ) ; shell.setImage ( image ) ; }

Target:
protected void configureShell ( org.eclipse.swt.widgets.Shell shell ) { super . configureShell ( shell ) ; shell.setText ( com.android.hierarchyviewer.HierarchyViewerApplication.APP_NAME ) ; com.android.ddmuilib.ImageLoader imageLoader = com.android.ddmuilib.ImageLoader.getLoader ( com.android.hierarchyviewerlib.HierarchyViewerDirector.class ) ; org.eclipse.swt.graphics.Image image = imageLoader.loadImage ( "sdk-hierarchyviewer-128.png" , org.eclipse.swt.widgets.Display.getDefault ( ) ) ; shell.setImage ( image ) ; }
Source:
public static java.lang.String getSyntheticSwitchMapFieldName ( com.android.jack.ir.ast.JDefinedEnum enumType ) { java.lang.String fullEnumName = com.android.jack.Jack.getLookupFormatter ( ) . getName ( enumType ) ; fullEnumName = fullEnumName.substring ( 1 , ( ( fullEnumName.length ( ) ) - 1 ) ) ; java.lang.String fieldName = ( ( com.android.jack.transformations.enums.OptimizationUtil.ShorterPrefix ) + ( fullEnumName.replace ( '/' , '_' ) ) ) + ( com.android.jack.transformations.enums.OptimizationUtil.Suffix ) ; return fieldName ; }

Target:
public static java.lang.String getSyntheticSwitchMapInitializerName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedEnum enumType ) { java.lang.String enumName = com.android.jack.util.NamingTools.getValidName ( com.android.jack.ir.formatter.BinaryQualifiedNameFormatter.getFormatter ( ) . getName ( enumType ) ) ; java.lang.String methodName = com.android.jack.util.NamingTools.getNonSourceConflictingName ( ( ( "get" + enumName ) + ( com.android.jack.transformations.enums.OptimizationUtil.Suffix ) ) ) ; return methodName ; }
Source:
private void expectSuccessfulHwDisconnectedPnoScan ( org.mockito.InOrder order , com.android.server.wifi.WifiNative.PnoSettings pnoSettings , com.android.server.wifi.WifiNative.PnoEventHandler eventHandler , com.android.server.wifi.ScanResults scanResults ) { expectHwDisconnectedPnoScanStart ( order , pnoSettings ) ; when ( mWifiNative.getScanResults ( ) ) . thenReturn ( scanResults.getScanDetailArrayList ( ) ) ; mWifiMonitor.sendMessage ( mWifiNative.getInterfaceName ( ) , WifiMonitor.SCAN_RESULTS_EVENT ) ; assertEquals ( "dispatch message after results event" , 1 , mLooper.dispatchAll ( ) ) ; order.verify ( eventHandler ) . onPnoNetworkFound ( scanResults.getRawScanResults ( ) ) ; }

Target:
private void expectSuccessfulHwDisconnectedPnoScan ( org.mockito.InOrder order , com.android.server.wifi.WifiNative.PnoSettings pnoSettings , com.android.server.wifi.WifiNative.PnoEventHandler eventHandler , com.android.server.wifi.ScanResults scanResults ) { expectHwDisconnectedPnoScanStart ( order , pnoSettings ) ; when ( mWifiNative.getScanResults ( ) ) . thenReturn ( scanResults.getScanDetailArrayList ( ) ) ; mWifiMonitor.sendMessage ( mWifiNative.getInterfaceName ( ) , WifiMonitor.PNO_SCAN_RESULTS_EVENT ) ; assertEquals ( "dispatch message after results event" , 1 , mLooper.dispatchAll ( ) ) ; order.verify ( eventHandler ) . onPnoNetworkFound ( scanResults.getRawScanResults ( ) ) ; }
Source:
public void sendRttRequest ( ) { try { android.telecom.Log.startSession ( "ICA.sRR" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } finally { android.telecom.Log.endSession ( ) ; } }

Target:
public void stopRtt ( java.lang.String callId ) { try { android.telecom.Log.startSession ( "ICA.sRTT" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.stopRtt ( ) ; } else { android.telecom.Log.w ( this , "stopRtt(): call %s not found" , callId ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
private java.lang.String formatNsn ( java.lang.String number , com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata metadata , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat numberFormat , java.lang.String carrierCode ) { com.google.i18n.phonenumbers.nano.Phonemetadata.NumberFormat [ ] intlNumberFormats = metadata.intlNumberFormat ; com.google.i18n.phonenumbers.nano.Phonemetadata.NumberFormat [ ] availableFormats = ( ( ( intlNumberFormats.length ) == 0 ) || ( numberFormat == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat.NATIONAL ) ) ) ? metadata.numberFormat : metadata.intlNumberFormat ; com.google.i18n.phonenumbers.nano.Phonemetadata.NumberFormat formattingPattern = chooseFormattingPatternForNumber ( availableFormats , number ) ; return formattingPattern == null ? number : formatNsnUsingPattern ( number , formattingPattern , numberFormat , carrierCode ) ; }

Target:
java.lang.String formatNsnUsingPattern ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.Phonemetadata.NumberFormat formattingPattern , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat numberFormat ) { return formatNsnUsingPattern ( nationalNumber , formattingPattern , numberFormat , null ) ; }
Source:
public boolean containsEntry ( java.lang.Object key , java.lang.Object value ) { java.util.Collection < V2 > values = get ( ( ( K ) ( key ) ) ) ; return values.contains ( value ) ; }

Target:
public static < K , V > java.util.Map < K , java.util.Set < V > > asMap ( com.google.common.collect.SetMultimap < K , V > multimap ) { return ( ( java.util.Map < K , java.util.Set < V > > ) ( ( java.util.Map < K , ? > ) ( multimap.asMap ( ) ) ) ) ; }
Source:
public com.android.incallui.incall.protocol.PrimaryCallState build ( ) { com.android.incallui.incall.protocol.PrimaryCallState primaryCallState = autoBuild ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( primaryCallState.customLabel ( ) ) ) ) { com.android.dialer.common.Assert.checkArgument ( ( ( primaryCallState.state ( ) ) == ( com.android.incallui.call.DialerCall.State.CALL_PENDING ) ) ) ; } return primaryCallState ; }

Target:
public com.android.incallui.incall.protocol.PrimaryCallState build ( ) { com.android.incallui.incall.protocol.PrimaryCallState primaryCallState = autoBuild ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( primaryCallState.customLabel ( ) ) ) ) { com.android.dialer.common.Assert.checkArgument ( ( ( primaryCallState.state ( ) ) == ( com.android.incallui.call.state.DialerCallState.CALL_PENDING ) ) ) ; } return primaryCallState ; }
Source:
private void beginObserveCoreSettings ( ) { for ( java.lang.String setting : com.android.server.am.CoreSettingsObserver.sCoreSettingToTypeMap.keySet ( ) ) { android.net.Uri uri = Settings.Secure.getUriFor ( setting ) ; mActivityManagerService.mContext.getContentResolver ( ) . registerContentObserver ( uri , false , this ) ; } }

Target:
private void beginObserveCoreSettings ( ) { for ( java.lang.String setting : com.android.server.am.CoreSettingsObserver.sSecureSettingToTypeMap.keySet ( ) ) { android.net.Uri uri = Settings.Secure.getUriFor ( setting ) ; mActivityManagerService.mContext.getContentResolver ( ) . registerContentObserver ( uri , false , this ) ; } for ( java.lang.String setting : com.android.server.am.CoreSettingsObserver.sSystemSettingToTypeMap.keySet ( ) ) { android.net.Uri uri = Settings.System.getUriFor ( setting ) ; mActivityManagerService.mContext.getContentResolver ( ) . registerContentObserver ( uri , false , this ) ; } }
Source:
public void test_unblock_Exception ( ) throws java.lang.Exception { setup ( false ) ; try { key.unblock ( sourceAddress ) ; fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } key.drop ( ) ; try { key.unblock ( sourceAddress ) ; fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } }

Target:
public void test_unblock_Exception ( ) throws java.lang.Exception { init ( false ) ; try { key.unblock ( sourceAddress ) ; fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } key.drop ( ) ; try { key.unblock ( sourceAddress ) ; fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } }
Source:
public void modemReset ( int indicationType , java.lang.String var2 ) { }

Target:
public void cdmaSubscriptionSourceChanged ( int indicationType , int cdmaSource ) { mRil.processIndication ( indicationType ) ; int [ ] response = new int [ 1 ] ; response [ 0 ] = cdmaSource ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED , response ) ; mRil.mCdmaSubscriptionChangedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; }
Source:
private java.lang.String dumpEntry ( int offset ) { if ( com.android.tools.lint.checks.ApiLookup.DEBUG_SEARCH ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( int i = offset ; i < ( mData.length ) ; i ++ ) { if ( ( mData [ i ] ) == 0 ) { break ; } char c = ( ( char ) ( com.google.common.primitives.UnsignedBytes.toInt ( mData [ i ] ) ) ) ; sb.append ( c ) ; } return sb.toString ( ) ; } else { return "<disabled>" ; } }

Target:
private java.lang.String dumpEntry ( int offset ) { if ( com.android.tools.lint.checks.ApiLookup.DEBUG_SEARCH ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 200 ) ; for ( int i = offset ; i < ( mData.length ) ; i ++ ) { if ( ( mData [ i ] ) == 0 ) { break ; } char c = ( ( char ) ( com.google.common.primitives.UnsignedBytes.toInt ( mData [ i ] ) ) ) ; sb.append ( c ) ; } return sb.toString ( ) ; } else { return "<disabled>" ; } }
Source:
private static java.lang.ref.WeakReference < java.lang.ClassLoader > setUpLoadLibrary ( java.lang.reflect.Constructor constructor ) throws java.lang.Exception { java.lang.ClassLoader loader = ( ( java.lang.ClassLoader ) ( constructor.newInstance ( Main.DEX_FILE , java.lang.ClassLoader.getSystemClassLoader ( ) ) ) ) ; java.lang.Class intHolder = loader.loadClass ( "IntHolder" ) ; java.lang.reflect.Method loadLibrary = intHolder.getDeclaredMethod ( "loadLibrary" , java.lang.String.class ) ; loadLibrary.invoke ( intHolder , Main.nativeLibraryName ) ; Main.waitForCompilation ( intHolder ) ; return new java.lang.ref.WeakReference ( loader ) ; }

Target:
private static java.lang.ref.WeakReference < java.lang.ClassLoader > setUpLoadLibrary ( java.lang.reflect.Constructor constructor ) throws java.lang.Exception { java.lang.ClassLoader loader = ( ( java.lang.ClassLoader ) ( constructor.newInstance ( Main.DEX_FILE , Main.LIBRARY_SEARCH_PATH , java.lang.ClassLoader.getSystemClassLoader ( ) ) ) ) ; java.lang.Class intHolder = loader.loadClass ( "IntHolder" ) ; java.lang.reflect.Method loadLibrary = intHolder.getDeclaredMethod ( "loadLibrary" , java.lang.String.class ) ; loadLibrary.invoke ( intHolder , Main.nativeLibraryName ) ; Main.waitForCompilation ( intHolder ) ; return new java.lang.ref.WeakReference ( loader ) ; }
Source:
private static boolean isCLDRFieldName ( int index ) { if ( ( index < 0 ) && ( index >= ( com.ibm.icu.text.DateTimePatternGenerator.TYPE_LIMIT ) ) ) { return false ; } if ( ( com.ibm.icu.text.DateTimePatternGenerator.CLDR_FIELD_NAME [ index ] . charAt ( 0 ) ) == '*' ) { return false ; } else { return true ; } }

Target:
public boolean isFieldEmpty ( int field ) { return ( lengths [ field ] ) == ( com.ibm.icu.text.DateTimePatternGenerator.SkeletonFields.DEFAULT_LENGTH ) ; }
Source:
public static java.lang.String externalClassVersion ( int classVersion ) { switch ( classVersion ) { case proguard.classfile.ClassConstants.INTERNAL_CLASS_VERSION_1_0 : return proguard.classfile.ClassConstants.EXTERNAL_CLASS_VERSION_1_0 ; case proguard.classfile.ClassConstants.INTERNAL_CLASS_VERSION_1_2 : return proguard.classfile.ClassConstants.EXTERNAL_CLASS_VERSION_1_2 ; case proguard.classfile.ClassConstants.INTERNAL_CLASS_VERSION_1_3 : return proguard.classfile.ClassConstants.EXTERNAL_CLASS_VERSION_1_3 ; case proguard.classfile.ClassConstants.INTERNAL_CLASS_VERSION_1_4 : return proguard.classfile.ClassConstants.EXTERNAL_CLASS_VERSION_1_4 ; case proguard.classfile.ClassConstants.INTERNAL_CLASS_VERSION_1_5 : return proguard.classfile.ClassConstants.EXTERNAL_CLASS_VERSION_1_5 ; case proguard.classfile.ClassConstants.INTERNAL_CLASS_VERSION_1_6 : return proguard.classfile.ClassConstants.EXTERNAL_CLASS_VERSION_1_6 ; case proguard.classfile.ClassConstants.INTERNAL_CLASS_VERSION_1_7 : return proguard.classfile.ClassConstants.EXTERNAL_CLASS_VERSION_1_7 ; default : return null ; } }

Target:
public static java.lang.String externalClassVersion ( int classVersion ) { switch ( classVersion ) { case ClassConstants.CLASS_VERSION_1_0 : return JavaConstants.CLASS_VERSION_1_0 ; case ClassConstants.CLASS_VERSION_1_2 : return JavaConstants.CLASS_VERSION_1_2 ; case ClassConstants.CLASS_VERSION_1_3 : return JavaConstants.CLASS_VERSION_1_3 ; case ClassConstants.CLASS_VERSION_1_4 : return JavaConstants.CLASS_VERSION_1_4 ; case ClassConstants.CLASS_VERSION_1_5 : return JavaConstants.CLASS_VERSION_1_5 ; case ClassConstants.CLASS_VERSION_1_6 : return JavaConstants.CLASS_VERSION_1_6 ; case ClassConstants.CLASS_VERSION_1_7 : return JavaConstants.CLASS_VERSION_1_7 ; case ClassConstants.CLASS_VERSION_1_8 : return JavaConstants.CLASS_VERSION_1_8 ; default : return null ; } }
Source:
public void write ( int b ) { if ( same ) { if ( ( ( myPageSize ) == ( address ) ) && ( ( address ) < ( myFileLength ) ) ) { base += address ; buffer = storage.getByteBuffer ( base , false ) ; address = 0 ; } same = ( ( address ) < ( myFileLength ) ) && ( ( buffer.get ( ( ( address ) ++ ) ) ) == ( ( byte ) ( b ) ) ) ; } }

Target:
public void write ( int b ) { if ( same ) { if ( ( ( myPageSize ) == ( address ) ) && ( ( address ) < ( myFileLength ) ) ) { base += address ; buffer = storage.getByteBuffer ( base , false ) . getCachedBuffer ( ) ; address = 0 ; } same = ( ( address ) < ( myFileLength ) ) && ( ( buffer.get ( ( ( address ) ++ ) ) ) == ( ( byte ) ( b ) ) ) ; } }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { android.content.Context context = getActivity ( ) ; com.android.tv.ApplicationSingletons app = com.android.tv.TvApplication.getSingletons ( context ) ; mInputManager = app.getTvInputManagerHelper ( ) ; mChannelDataManager = app.getChannelDataManager ( ) ; mSetupUtils = com.android.tv.util.SetupUtils.getInstance ( context ) ; buildInputs ( ) ; mInputManager.addCallback ( mInputCallback ) ; mChannelDataManager.addListener ( mChannelDataManagerListener ) ; super . onCreate ( savedInstanceState ) ; mParentFragment = ( ( com.android.tv.onboarding.SetupSourcesFragment ) ( getParentFragment ( ) ) ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { android.content.Context context = getActivity ( ) ; com.android.tv.ApplicationSingletons app = com.android.tv.TvApplication.getSingletons ( context ) ; mInputManager = app.getTvInputManagerHelper ( ) ; mChannelDataManager = app.getChannelDataManager ( ) ; mSetupUtils = com.android.tv.util.SetupUtils.getInstance ( context ) ; buildInputs ( ) ; mInputManager.addCallback ( mInputCallback ) ; mChannelDataManager.addListener ( mChannelDataManagerListener ) ; super . onCreate ( savedInstanceState ) ; mParentFragment = ( ( com.android.tv.onboarding.SetupSourcesFragment ) ( getParentFragment ( ) ) ) ; com.android.tv.tuner.TunerInputController.executeNetworkTunerDiscoveryAsyncTask ( getContext ( ) ) ; }
Source:
public boolean setCallTransitionFlag ( boolean flag ) { com.android.internal.telephony.ril_proto.RilCtrlCmds.CtrlSetCallTransitionFlag req = new com.android.internal.telephony.ril_proto.RilCtrlCmds.CtrlSetCallTransitionFlag ( ) ; req.setFlag ( flag ) ; if ( ! ( sendCtrlCommand ( RilCtrlCmds.CTRL_CMD_SET_CALL_TRANSITION_FLAG , 0 , 0 , req ) ) ) { android.util.Log.v ( com.android.internal.telephony.mockril.MockRilController.TAG , "send CTRL_CMD_SET_CALL_TRANSITION_FLAG request failed" ) ; return false ; } return true ; }

Target:
public boolean setCallTransitionFlag ( boolean flag ) { com.android.internal.telephony.ril_proto.RilCtrlCmds.CtrlSetCallTransitionFlag req = new com.android.internal.telephony.ril_proto.RilCtrlCmds.CtrlSetCallTransitionFlag ( ) ; req.setFlag ( flag ) ; if ( ! ( sendCtrlCommand ( RilCtrlCmds.CTRL_CMD_SET_CALL_TRANSITION_FLAG , 0 , 0 , req ) ) ) { android.telephony.Rlog.v ( com.android.internal.telephony.mockril.MockRilController.TAG , "send CTRL_CMD_SET_CALL_TRANSITION_FLAG request failed" ) ; return false ; } return true ; }
Source:
public void createOatDir ( java.lang.String oatDir , java.lang.String dexInstructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.createOatDir ( oatDir , dexInstructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void createOatDir ( java.lang.String oatDir , java.lang.String dexInstructionSet ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.createOatDir ( oatDir , dexInstructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNewArray expr ) { performCommonChecks ( expr ) ; com.android.jack.ir.ast.JNewArray other = otherOrMe ( expr ) ; ensure ( equal ( expr.getArrayType ( ) , other.getArrayType ( ) ) ) ; ensure ( ( ( expr.getDims ( ) . size ( ) ) == ( other.getDims ( ) . size ( ) ) ) ) ; ensure ( ( ( expr.getInitializers ( ) . size ( ) ) == ( other.getInitializers ( ) . size ( ) ) ) ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAlloc expr ) { performCommonChecks ( expr ) ; otherOrMe ( expr ) ; }
Source:
int getCount ( ) { int count = 0 ; if ( ( contactsCursor ) != null ) { count += contactsCursor.getCount ( ) ; } if ( ( nearbyPlacesCursor ) != null ) { count += nearbyPlacesCursor.getCount ( ) ; } if ( ( corpDirectoryCursor ) != null ) { count += corpDirectoryCursor.getCount ( ) ; } return count ; }

Target:
int getCount ( ) { int count = 0 ; if ( ( contactsCursor ) != null ) { count += contactsCursor.getCount ( ) ; } if ( ( nearbyPlacesCursor ) != null ) { count += nearbyPlacesCursor.getCount ( ) ; } if ( ( corpDirectoryCursor ) != null ) { count += corpDirectoryCursor.getCount ( ) ; } return count + ( searchActions.size ( ) ) ; }
Source:
public void copyFromUnchecked ( int [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } }

Target:
private void validateIsFloat64 ( ) { if ( ( mType.mElement.mType ) == ( Element.DataType.FLOAT_64 ) ) { return ; } throw new android.support.v8.renderscript.RSIllegalArgumentException ( ( "64 bit float source does not match allocation type " + ( mType.mElement.mType ) ) ) ; }
Source:
public java.util.Properties loadProperties ( @ com.android.annotations.NonNull java.io.File file ) { java.util.Properties props = new java.util.Properties ( ) ; java.io.FileInputStream fis = null ; try { fis = new java.io.FileInputStream ( file ) ; props.load ( fis ) ; } catch ( java.io.IOException ignore ) { } finally { if ( fis != null ) { try { fis.close ( ) ; } catch ( java.lang.Exception ignore ) { } } } return props ; }

Target:
public java.util.Properties loadProperties ( @ com.android.annotations.NonNull java.io.File file ) { java.util.Properties props = new java.util.Properties ( ) ; java.io.FileInputStream fis = null ; try { fis = new java.io.FileInputStream ( file ) ; props.load ( fis ) ; } catch ( java.io.IOException ignore ) { } finally { com.google.common.io.Closeables.closeQuietly ( fis ) ; } return props ; }
Source:
static void $opt$noinline$constantIndexing2 ( int [ ] array ) { array [ 1 ] = 1 ; array [ 2 ] = 1 ; array [ 3 ] = 1 ; array [ 4 ] = 1 ; array [ ( - 1 ) ] = 1 ; if ( ( array [ 1 ] ) == 1 ) { throw new java.lang.Error ( "" ) ; } }

Target:
static void constantIndexing2b ( int [ ] array ) { array [ 0 ] = 6 ; array [ 1 ] = 6 ; array [ 2 ] = 6 ; array [ 3 ] = 6 ; array [ ( - 1 ) ] = 1 ; }
Source:
public void testKeepPausedAfterVisitingHome ( ) { mDevice.pressKeyCode ( KeyEvent.KEYCODE_MEDIA_PAUSE ) ; mMenuHelper.assertWaitForMenu ( ) ; assertButtonHasFocus ( com.android.tv.tests.ui.PlayControlsRowViewTest.BUTTON_INDEX_PLAY_PAUSE ) ; mDevice.pressHome ( ) ; mDevice.waitForIdle ( ) ; mDevice.pressHome ( ) ; mDevice.waitForIdle ( ) ; mMenuHelper.assertWaitForMenu ( ) ; assertButtonHasFocus ( com.android.tv.tests.ui.PlayControlsRowViewTest.BUTTON_INDEX_PLAY_PAUSE ) ; }

Target:
public void testKeepPausedAfterVisitingHome ( ) { mDevice.pressKeyCode ( KeyEvent.KEYCODE_MEDIA_PAUSE ) ; mMenuHelper.assertWaitForMenu ( ) ; assertButtonHasFocus ( com.android.tv.tests.ui.PlayControlsRowViewTest.BUTTON_ID_PLAY_PAUSE ) ; mDevice.pressHome ( ) ; mDevice.waitForIdle ( ) ; mDevice.pressHome ( ) ; mDevice.waitForIdle ( ) ; mMenuHelper.assertWaitForMenu ( ) ; assertButtonHasFocus ( com.android.tv.tests.ui.PlayControlsRowViewTest.BUTTON_ID_PLAY_PAUSE ) ; }
Source:
private static void killProcessGroup ( int uid , int pid ) { android.os.Trace.traceBegin ( Trace.TRACE_TAG_ACTIVITY_MANAGER , "killProcessGroup" ) ; java.lang.Process.killProcessGroup ( uid , pid ) ; android.os.Trace.traceEnd ( Trace.TRACE_TAG_ACTIVITY_MANAGER ) ; }

Target:
static void killProcessGroup ( int uid , int pid ) { if ( ( com.android.server.am.ActivityManagerService.sKillHandler ) != null ) { com.android.server.am.ActivityManagerService.sKillHandler.sendMessage ( com.android.server.am.ActivityManagerService.sKillHandler.obtainMessage ( com.android.server.am.ActivityManagerService.KillHandler.KILL_PROCESS_GROUP_MSG , uid , pid ) ) ; } else { android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , "Asked to kill process group before system bringup!" ) ; java.lang.Process.killProcessGroup ( uid , pid ) ; } }
Source:
public void testPinEntryMalformedEntry ( ) throws java.lang.Exception { java.lang.String entry = "*.google.com=" ; try { new org.conscrypt.PinListEntry ( entry , new org.conscrypt.TrustedCertificateStore ( ) ) ; fail ( "Accepted an empty pin list entry." ) ; } catch ( org.conscrypt.PinEntryException expected ) { } }

Target:
public void testFailure ( ) throws java.lang.Exception { org.conscrypt.CertPinManager manager = new org.conscrypt.CertPinManager ( ) { @ java.lang.Override public void checkChainPinning ( java.lang.String hostname , java.util.List < java.security.cert.X509Certificate > chain ) throws java.security.cert.CertificateException { throw new java.security.cert.CertificateException ( "pin failure" ) ; } } ; try { callCheckServerTrusted ( null , manager ) ; fail ( "Invalid chain was trusted" ) ; } catch ( java.security.cert.CertificateException expected ) { assertEquals ( "pin failure" , expected.getMessage ( ) ) ; } }
Source:
public final void actionPerformed ( final com.intellij.ui.tabs.impl.AnActionEvent e ) { com.intellij.ui.tabs.impl.JBTabsImpl tabs = e.getData ( com.intellij.ui.tabs.impl.JBTabsImpl.NAVIGATION_ACTIONS_KEY ) ; tabs = findNavigatableTabs ( tabs ) ; if ( tabs == null ) return ; final int index = tabs.myVisibleInfos.indexOf ( tabs.getSelectedInfo ( ) ) ; if ( index == ( - 1 ) ) return ; _actionPerformed ( e , tabs , index ) ; }

Target:
private static boolean isNavigatable ( com.intellij.ui.tabs.impl.JBTabsImpl tabs ) { final int selectedIndex = tabs.getVisibleInfos ( ) . indexOf ( tabs.getSelectedInfo ( ) ) ; return ( ( tabs.isNavigationVisible ( ) ) && ( selectedIndex >= 0 ) ) && ( tabs.myNavigationActionsEnabled ) ; }
Source:
public boolean isOffhookForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( canReadPhoneState ( callingPackage , "isOffhookForSubscriber" ) ) ) { return false ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return ( phone.getState ( ) ) == ( PhoneConstants.State.OFFHOOK ) ; } else { return false ; } }

Target:
public boolean isIdleForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "isIdleForSubscriber" ) ) ) { return false ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return ( phone.getState ( ) ) == ( PhoneConstants.State.IDLE ) ; } else { return false ; } }
Source:
private void showUserSwitchDialog ( int userId , java.lang.String userName ) { android.app.Dialog d = new com.android.server.am.UserSwitchingDialog ( this , mContext , userId , userName , true ) ; d.show ( ) ; }

Target:
public void updatePersistentConfiguration ( android.content.res.Configuration values ) { enforceCallingPermission ( android.Manifest.permission.CHANGE_CONFIGURATION , "updateConfiguration()" ) ; enforceWriteSettingsPermission ( "updateConfiguration()" ) ; if ( values == null ) { throw new java.lang.NullPointerException ( "Configuration must not be null" ) ; } int userId = android.os.UserHandle.getCallingUserId ( ) ; synchronized ( this ) { final long origId = android.os.Binder.clearCallingIdentity ( ) ; updateConfigurationLocked ( values , null , false , true , userId ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; } }